equal
deleted
inserted
replaced
102 } |
102 } |
103 |
103 |
104 void append(JSValue v) |
104 void append(JSValue v) |
105 { |
105 { |
106 ASSERT(!m_isReadOnly); |
106 ASSERT(!m_isReadOnly); |
107 |
107 |
|
108 #if ENABLE(JSC_ZOMBIES) |
|
109 ASSERT(!v.isZombie()); |
|
110 #endif |
|
111 |
108 if (m_isUsingInlineBuffer && m_size < inlineCapacity) { |
112 if (m_isUsingInlineBuffer && m_size < inlineCapacity) { |
109 m_vector.uncheckedAppend(v); |
113 m_vector.uncheckedAppend(v); |
110 ++m_size; |
114 ++m_size; |
111 } else { |
115 } else { |
112 // Putting this case all in one function measurably improves |
116 // Putting this case all in one function measurably improves |
185 |
189 |
186 ArgList(JSValue* args, unsigned argCount) |
190 ArgList(JSValue* args, unsigned argCount) |
187 : m_args(args) |
191 : m_args(args) |
188 , m_argCount(argCount) |
192 , m_argCount(argCount) |
189 { |
193 { |
|
194 #if ENABLE(JSC_ZOMBIES) |
|
195 for (size_t i = 0; i < argCount; i++) |
|
196 ASSERT(!m_args[i].isZombie()); |
|
197 #endif |
190 } |
198 } |
191 |
199 |
192 ArgList(Register* args, int argCount) |
200 ArgList(Register* args, int argCount) |
193 : m_args(reinterpret_cast<JSValue*>(args)) |
201 : m_args(reinterpret_cast<JSValue*>(args)) |
194 , m_argCount(argCount) |
202 , m_argCount(argCount) |