Changeset 36264 in webkit
- Timestamp:
- Sep 7, 2008 9:25:32 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r36263 r36264 1 2008-09-07 Cameron Zwarich <cwzwarich@uwaterloo.ca> 2 3 Reviewed by Oliver Hunt. 4 5 Bug 20711: Change KJS prefix on preprocessor macros to JSC 6 <https://bugs.webkit.org/show_bug.cgi?id=20711> 7 8 * kjs/CommonIdentifiers.cpp: 9 (JSC::CommonIdentifiers::CommonIdentifiers): 10 * kjs/CommonIdentifiers.h: 11 * kjs/PropertySlot.h: 12 (JSC::PropertySlot::getValue): 13 (JSC::PropertySlot::putValue): 14 (JSC::PropertySlot::setValueSlot): 15 (JSC::PropertySlot::setValue): 16 (JSC::PropertySlot::setRegisterSlot): 17 * kjs/lookup.h: 18 * kjs/nodes.cpp: 19 * kjs/nodes.h: 20 (JSC::Node::): 21 (JSC::ExpressionNode::): 22 (JSC::StatementNode::): 23 (JSC::NullNode::): 24 (JSC::BooleanNode::): 25 (JSC::NumberNode::): 26 (JSC::ImmediateNumberNode::): 27 (JSC::StringNode::): 28 (JSC::RegExpNode::): 29 (JSC::ThisNode::): 30 (JSC::ResolveNode::): 31 (JSC::ElementNode::): 32 (JSC::ArrayNode::): 33 (JSC::PropertyNode::): 34 (JSC::PropertyListNode::): 35 (JSC::ObjectLiteralNode::): 36 (JSC::BracketAccessorNode::): 37 (JSC::DotAccessorNode::): 38 (JSC::ArgumentListNode::): 39 (JSC::ArgumentsNode::): 40 (JSC::NewExprNode::): 41 (JSC::EvalFunctionCallNode::): 42 (JSC::FunctionCallValueNode::): 43 (JSC::FunctionCallResolveNode::): 44 (JSC::FunctionCallBracketNode::): 45 (JSC::FunctionCallDotNode::): 46 (JSC::PrePostResolveNode::): 47 (JSC::PostfixResolveNode::): 48 (JSC::PostfixBracketNode::): 49 (JSC::PostfixDotNode::): 50 (JSC::PostfixErrorNode::): 51 (JSC::DeleteResolveNode::): 52 (JSC::DeleteBracketNode::): 53 (JSC::DeleteDotNode::): 54 (JSC::DeleteValueNode::): 55 (JSC::VoidNode::): 56 (JSC::TypeOfResolveNode::): 57 (JSC::TypeOfValueNode::): 58 (JSC::PrefixResolveNode::): 59 (JSC::PrefixBracketNode::): 60 (JSC::PrefixDotNode::): 61 (JSC::PrefixErrorNode::): 62 (JSC::UnaryPlusNode::): 63 (JSC::NegateNode::): 64 (JSC::BitwiseNotNode::): 65 (JSC::LogicalNotNode::): 66 (JSC::MultNode::): 67 (JSC::DivNode::): 68 (JSC::ModNode::): 69 (JSC::AddNode::): 70 (JSC::SubNode::): 71 (JSC::LeftShiftNode::): 72 (JSC::RightShiftNode::): 73 (JSC::UnsignedRightShiftNode::): 74 (JSC::LessNode::): 75 (JSC::GreaterNode::): 76 (JSC::LessEqNode::): 77 (JSC::GreaterEqNode::): 78 (JSC::ThrowableBinaryOpNode::): 79 (JSC::InstanceOfNode::): 80 (JSC::InNode::): 81 (JSC::EqualNode::): 82 (JSC::NotEqualNode::): 83 (JSC::StrictEqualNode::): 84 (JSC::NotStrictEqualNode::): 85 (JSC::BitAndNode::): 86 (JSC::BitOrNode::): 87 (JSC::BitXOrNode::): 88 (JSC::LogicalOpNode::): 89 (JSC::ConditionalNode::): 90 (JSC::ReadModifyResolveNode::): 91 (JSC::AssignResolveNode::): 92 (JSC::ReadModifyBracketNode::): 93 (JSC::AssignBracketNode::): 94 (JSC::AssignDotNode::): 95 (JSC::ReadModifyDotNode::): 96 (JSC::AssignErrorNode::): 97 (JSC::CommaNode::): 98 (JSC::VarDeclCommaNode::): 99 (JSC::ConstDeclNode::): 100 (JSC::ConstStatementNode::): 101 (JSC::EmptyStatementNode::): 102 (JSC::DebuggerStatementNode::): 103 (JSC::ExprStatementNode::): 104 (JSC::VarStatementNode::): 105 (JSC::IfNode::): 106 (JSC::IfElseNode::): 107 (JSC::DoWhileNode::): 108 (JSC::WhileNode::): 109 (JSC::ForNode::): 110 (JSC::ContinueNode::): 111 (JSC::BreakNode::): 112 (JSC::ReturnNode::): 113 (JSC::WithNode::): 114 (JSC::LabelNode::): 115 (JSC::ThrowNode::): 116 (JSC::TryNode::): 117 (JSC::ParameterNode::): 118 (JSC::ScopeNode::): 119 (JSC::ProgramNode::): 120 (JSC::EvalNode::): 121 (JSC::FunctionBodyNode::): 122 (JSC::FuncExprNode::): 123 (JSC::FuncDeclNode::): 124 (JSC::CaseClauseNode::): 125 (JSC::ClauseListNode::): 126 (JSC::CaseBlockNode::): 127 (JSC::SwitchNode::): 128 1 129 2008-09-07 Cameron Zwarich <cwzwarich@uwaterloo.ca> 2 130 -
trunk/JavaScriptCore/kjs/CommonIdentifiers.cpp
r36263 r36264 32 32 , underscoreProto(globalData, "__proto__") 33 33 , thisIdentifier(globalData, "this") 34 KJS_COMMON_IDENTIFIERS_EACH_PROPERTY_NAME(INITIALIZE_PROPERTY_NAME)34 JSC_COMMON_IDENTIFIERS_EACH_PROPERTY_NAME(INITIALIZE_PROPERTY_NAME) 35 35 { 36 36 } -
trunk/JavaScriptCore/kjs/CommonIdentifiers.h
r36263 r36264 27 27 // ArgList of property names, passed to a macro so we can do set them up various 28 28 // ways without repeating the list. 29 #define KJS_COMMON_IDENTIFIERS_EACH_PROPERTY_NAME(macro) \29 #define JSC_COMMON_IDENTIFIERS_EACH_PROPERTY_NAME(macro) \ 30 30 macro(__defineGetter__) \ 31 31 macro(__defineSetter__) \ … … 78 78 const Identifier thisIdentifier; 79 79 80 #define KJS_IDENTIFIER_DECLARE_PROPERTY_NAME_GLOBAL(name) const Identifier name;81 KJS_COMMON_IDENTIFIERS_EACH_PROPERTY_NAME(KJS_IDENTIFIER_DECLARE_PROPERTY_NAME_GLOBAL)82 #undef KJS_IDENTIFIER_DECLARE_PROPERTY_NAME_GLOBAL80 #define JSC_IDENTIFIER_DECLARE_PROPERTY_NAME_GLOBAL(name) const Identifier name; 81 JSC_COMMON_IDENTIFIERS_EACH_PROPERTY_NAME(JSC_IDENTIFIER_DECLARE_PROPERTY_NAME_GLOBAL) 82 #undef JSC_IDENTIFIER_DECLARE_PROPERTY_NAME_GLOBAL 83 83 }; 84 84 -
trunk/JavaScriptCore/kjs/PropertySlot.h
r36263 r36264 34 34 struct HashEntry; 35 35 36 #define KJS_VALUE_SLOT_MARKER 037 #define KJS_REGISTER_SLOT_MARKER reinterpret_cast<GetValueFunc>(1)36 #define JSC_VALUE_SLOT_MARKER 0 37 #define JSC_REGISTER_SLOT_MARKER reinterpret_cast<GetValueFunc>(1) 38 38 39 39 class PropertySlot { … … 57 57 JSValue* getValue(ExecState* exec, const Identifier& propertyName) const 58 58 { 59 if (m_getValue == KJS_VALUE_SLOT_MARKER)59 if (m_getValue == JSC_VALUE_SLOT_MARKER) 60 60 return *m_data.valueSlot; 61 if (m_getValue == KJS_REGISTER_SLOT_MARKER)61 if (m_getValue == JSC_REGISTER_SLOT_MARKER) 62 62 return (*m_data.registerSlot).jsValue(exec); 63 63 return m_getValue(exec, propertyName, *this); … … 66 66 JSValue* getValue(ExecState* exec, unsigned propertyName) const 67 67 { 68 if (m_getValue == KJS_VALUE_SLOT_MARKER)68 if (m_getValue == JSC_VALUE_SLOT_MARKER) 69 69 return *m_data.valueSlot; 70 if (m_getValue == KJS_REGISTER_SLOT_MARKER)70 if (m_getValue == JSC_REGISTER_SLOT_MARKER) 71 71 return (*m_data.registerSlot).jsValue(exec); 72 72 return m_getValue(exec, Identifier::from(exec, propertyName), *this); … … 82 82 void putValue(JSValue* value) 83 83 { 84 if (m_getValue == KJS_VALUE_SLOT_MARKER) {84 if (m_getValue == JSC_VALUE_SLOT_MARKER) { 85 85 *m_data.valueSlot = value; 86 86 return; 87 87 } 88 ASSERT(m_getValue == KJS_REGISTER_SLOT_MARKER);88 ASSERT(m_getValue == JSC_REGISTER_SLOT_MARKER); 89 89 *m_data.registerSlot = value; 90 90 } … … 93 93 { 94 94 ASSERT(valueSlot); 95 m_getValue = KJS_VALUE_SLOT_MARKER;95 m_getValue = JSC_VALUE_SLOT_MARKER; 96 96 clearBase(); 97 97 m_data.valueSlot = valueSlot; … … 101 101 { 102 102 ASSERT(valueSlot); 103 m_getValue = KJS_VALUE_SLOT_MARKER;103 m_getValue = JSC_VALUE_SLOT_MARKER; 104 104 m_slotBase = slotBase; 105 105 m_data.valueSlot = valueSlot; … … 109 109 { 110 110 ASSERT(valueSlot); 111 m_getValue = KJS_VALUE_SLOT_MARKER;111 m_getValue = JSC_VALUE_SLOT_MARKER; 112 112 m_slotBase = slotBase; 113 113 m_data.valueSlot = valueSlot; … … 118 118 { 119 119 ASSERT(value); 120 m_getValue = KJS_VALUE_SLOT_MARKER;120 m_getValue = JSC_VALUE_SLOT_MARKER; 121 121 clearBase(); 122 122 m_value = value; … … 127 127 { 128 128 ASSERT(registerSlot); 129 m_getValue = KJS_REGISTER_SLOT_MARKER;129 m_getValue = JSC_REGISTER_SLOT_MARKER; 130 130 clearBase(); 131 131 m_data.registerSlot = registerSlot; -
trunk/JavaScriptCore/kjs/lookup.h
r36263 r36264 256 256 * 257 257 * Using those macros is very simple: define the hashtable (e.g. "DOMNodePrototypeTable"), then 258 * KJS_DEFINE_PROTOTYPE(DOMNodePrototype)259 * KJS_IMPLEMENT_PROTOTYPE("DOMNode", DOMNodePrototype, DOMNodePrototypeFunction)258 * JSC_DEFINE_PROTOTYPE(DOMNodePrototype) 259 * JSC_IMPLEMENT_PROTOTYPE("DOMNode", DOMNodePrototype, DOMNodePrototypeFunction) 260 260 * and use DOMNodePrototype::self(exec) as prototype in the DOMNode constructor. 261 261 * If the prototype has a "parent prototype", e.g. DOMElementPrototype falls back on DOMNodePrototype, 262 * then the first line will use KJS_DEFINE_PROTOTYPE_WITH_PROTOTYPE, with DOMNodePrototype as the second argument.262 * then the first line will use JSC_DEFINE_PROTOTYPE_WITH_PROTOTYPE, with DOMNodePrototype as the second argument. 263 263 */ 264 264 265 265 // These macros assume that a prototype's only properties are functions 266 #define KJS_DEFINE_PROTOTYPE(ClassPrototype) \266 #define JSC_DEFINE_PROTOTYPE(ClassPrototype) \ 267 267 class ClassPrototype : public JSC::JSObject { \ 268 268 public: \ … … 276 276 }; 277 277 278 #define KJS_DEFINE_PROTOTYPE_WITH_PROTOTYPE(ClassPrototype, ClassPrototypePrototype) \278 #define JSC_DEFINE_PROTOTYPE_WITH_PROTOTYPE(ClassPrototype, ClassPrototypePrototype) \ 279 279 class ClassPrototype : public JSC::JSObject { \ 280 280 public: \ … … 288 288 }; 289 289 290 #define KJS_IMPLEMENT_PROTOTYPE(ClassName, ClassPrototype) \290 #define JSC_IMPLEMENT_PROTOTYPE(ClassName, ClassPrototype) \ 291 291 const ClassInfo ClassPrototype::info = { ClassName"Prototype", 0, &ClassPrototype##Table, 0 }; \ 292 292 JSObject* ClassPrototype::self(ExecState* exec) \ -
trunk/JavaScriptCore/kjs/nodes.cpp
r36263 r36264 154 154 } 155 155 156 static void substitute(UString& string, const UString& substring) KJS_FAST_CALL;156 static void substitute(UString& string, const UString& substring) JSC_FAST_CALL; 157 157 static void substitute(UString& string, const UString& substring) 158 158 { -
trunk/JavaScriptCore/kjs/nodes.h
r36263 r36264 43 43 44 44 #if PLATFORM(X86) && COMPILER(GCC) 45 #define KJS_FAST_CALL __attribute__((regparm(3)))45 #define JSC_FAST_CALL __attribute__((regparm(3))) 46 46 #else 47 #define KJS_FAST_CALL47 #define JSC_FAST_CALL 48 48 #endif 49 49 … … 132 132 class ParserRefCounted : Noncopyable { 133 133 protected: 134 ParserRefCounted(JSGlobalData*) KJS_FAST_CALL;134 ParserRefCounted(JSGlobalData*) JSC_FAST_CALL; 135 135 136 136 JSGlobalData* m_globalData; 137 137 138 138 public: 139 void ref() KJS_FAST_CALL;140 void deref() KJS_FAST_CALL;141 bool hasOneRef() KJS_FAST_CALL;142 143 static void deleteNewObjects(JSGlobalData*) KJS_FAST_CALL;139 void ref() JSC_FAST_CALL; 140 void deref() JSC_FAST_CALL; 141 bool hasOneRef() JSC_FAST_CALL; 142 143 static void deleteNewObjects(JSGlobalData*) JSC_FAST_CALL; 144 144 145 145 virtual ~ParserRefCounted(); … … 152 152 typedef DeclarationStacks::FunctionStack FunctionStack; 153 153 154 Node(JSGlobalData*) KJS_FAST_CALL;154 Node(JSGlobalData*) JSC_FAST_CALL; 155 155 156 156 /* … … 176 176 node, "1". 177 177 */ 178 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* dst = 0) KJS_FAST_CALL178 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* dst = 0) JSC_FAST_CALL 179 179 { 180 180 ASSERT_WITH_MESSAGE(0, "Don't know how to generate code for:\n%s\n", toString().ascii()); … … 183 183 } // FIXME: Make this pure virtual. 184 184 185 UString toString() const KJS_FAST_CALL;185 UString toString() const JSC_FAST_CALL; 186 186 int lineNo() const { return m_line; } 187 187 188 virtual bool isReturnNode() const KJS_FAST_CALL { return false; }188 virtual bool isReturnNode() const JSC_FAST_CALL { return false; } 189 189 190 190 // Serialization. 191 virtual void streamTo(SourceStream&) const KJS_FAST_CALL = 0;191 virtual void streamTo(SourceStream&) const JSC_FAST_CALL = 0; 192 192 virtual Precedence precedence() const = 0; 193 193 virtual bool needsParensIfLeftmost() const { return false; } 194 194 195 195 protected: 196 Node(JSGlobalData*, JSType) KJS_FAST_CALL; // used by ExpressionNode196 Node(JSGlobalData*, JSType) JSC_FAST_CALL; // used by ExpressionNode 197 197 198 198 int m_line : 28; … … 202 202 class ExpressionNode : public Node { 203 203 public: 204 ExpressionNode(JSGlobalData* globalData) KJS_FAST_CALL : Node(globalData) {}205 ExpressionNode(JSGlobalData* globalData, JSType expectedReturn) KJS_FAST_CALL204 ExpressionNode(JSGlobalData* globalData) JSC_FAST_CALL : Node(globalData) {} 205 ExpressionNode(JSGlobalData* globalData, JSType expectedReturn) JSC_FAST_CALL 206 206 : Node(globalData, expectedReturn) 207 207 { 208 208 } 209 209 210 virtual bool isNumber() const KJS_FAST_CALL { return false; }211 virtual bool isString() const KJS_FAST_CALL { return false; }212 virtual bool isNull() const KJS_FAST_CALL { return false; }213 virtual bool isPure(CodeGenerator&) const KJS_FAST_CALL { return false; }214 virtual bool isLocation() const KJS_FAST_CALL { return false; }215 virtual bool isResolveNode() const KJS_FAST_CALL { return false; }216 virtual bool isBracketAccessorNode() const KJS_FAST_CALL { return false; }217 virtual bool isDotAccessorNode() const KJS_FAST_CALL { return false; }218 219 JSType expectedReturnType() const KJS_FAST_CALL { return static_cast<JSType>(m_expectedReturnType); }210 virtual bool isNumber() const JSC_FAST_CALL { return false; } 211 virtual bool isString() const JSC_FAST_CALL { return false; } 212 virtual bool isNull() const JSC_FAST_CALL { return false; } 213 virtual bool isPure(CodeGenerator&) const JSC_FAST_CALL { return false; } 214 virtual bool isLocation() const JSC_FAST_CALL { return false; } 215 virtual bool isResolveNode() const JSC_FAST_CALL { return false; } 216 virtual bool isBracketAccessorNode() const JSC_FAST_CALL { return false; } 217 virtual bool isDotAccessorNode() const JSC_FAST_CALL { return false; } 218 219 JSType expectedReturnType() const JSC_FAST_CALL { return static_cast<JSType>(m_expectedReturnType); } 220 220 221 221 // This needs to be in public in order to compile using GCC 3.x … … 225 225 class StatementNode : public Node { 226 226 public: 227 StatementNode(JSGlobalData*) KJS_FAST_CALL;228 void setLoc(int line0, int line1) KJS_FAST_CALL;229 int firstLine() const KJS_FAST_CALL { return lineNo(); }230 int lastLine() const KJS_FAST_CALL { return m_lastLine; }231 232 virtual void pushLabel(const Identifier& ident) KJS_FAST_CALL { m_labelStack.push(ident); }227 StatementNode(JSGlobalData*) JSC_FAST_CALL; 228 void setLoc(int line0, int line1) JSC_FAST_CALL; 229 int firstLine() const JSC_FAST_CALL { return lineNo(); } 230 int lastLine() const JSC_FAST_CALL { return m_lastLine; } 231 232 virtual void pushLabel(const Identifier& ident) JSC_FAST_CALL { m_labelStack.push(ident); } 233 233 virtual Precedence precedence() const { ASSERT_NOT_REACHED(); return PrecExpression; } 234 virtual bool isEmptyStatement() const KJS_FAST_CALL { return false; }234 virtual bool isEmptyStatement() const JSC_FAST_CALL { return false; } 235 235 236 236 protected: … … 243 243 class NullNode : public ExpressionNode { 244 244 public: 245 NullNode(JSGlobalData* globalData) KJS_FAST_CALL245 NullNode(JSGlobalData* globalData) JSC_FAST_CALL 246 246 : ExpressionNode(globalData, NullType) 247 247 { 248 248 } 249 249 250 virtual bool isNull() const KJS_FAST_CALL { return true; }251 252 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;253 254 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;250 virtual bool isNull() const JSC_FAST_CALL { return true; } 251 252 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 253 254 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 255 255 virtual Precedence precedence() const { return PrecPrimary; } 256 256 }; … … 258 258 class BooleanNode : public ExpressionNode { 259 259 public: 260 BooleanNode(JSGlobalData* globalData, bool value) KJS_FAST_CALL260 BooleanNode(JSGlobalData* globalData, bool value) JSC_FAST_CALL 261 261 : ExpressionNode(globalData, BooleanType) 262 262 , m_value(value) … … 264 264 } 265 265 266 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;267 268 virtual bool isPure(CodeGenerator&) const KJS_FAST_CALL { return true; }269 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;266 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 267 268 virtual bool isPure(CodeGenerator&) const JSC_FAST_CALL { return true; } 269 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 270 270 virtual Precedence precedence() const { return PrecPrimary; } 271 271 … … 276 276 class NumberNode : public ExpressionNode { 277 277 public: 278 NumberNode(JSGlobalData* globalData, double v) KJS_FAST_CALL278 NumberNode(JSGlobalData* globalData, double v) JSC_FAST_CALL 279 279 : ExpressionNode(globalData, NumberType) 280 280 , m_double(v) … … 282 282 } 283 283 284 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;285 286 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;284 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 285 286 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 287 287 virtual Precedence precedence() const { return signbit(m_double) ? PrecUnary : PrecPrimary; } 288 288 289 virtual bool isNumber() const KJS_FAST_CALL { return true; }290 virtual bool isPure(CodeGenerator&) const KJS_FAST_CALL { return true; }291 double value() const KJS_FAST_CALL { return m_double; }292 virtual void setValue(double d) KJS_FAST_CALL { m_double = d; }289 virtual bool isNumber() const JSC_FAST_CALL { return true; } 290 virtual bool isPure(CodeGenerator&) const JSC_FAST_CALL { return true; } 291 double value() const JSC_FAST_CALL { return m_double; } 292 virtual void setValue(double d) JSC_FAST_CALL { m_double = d; } 293 293 294 294 protected: … … 298 298 class ImmediateNumberNode : public NumberNode { 299 299 public: 300 ImmediateNumberNode(JSGlobalData* globalData, JSValue* v, double d) KJS_FAST_CALL300 ImmediateNumberNode(JSGlobalData* globalData, JSValue* v, double d) JSC_FAST_CALL 301 301 : NumberNode(globalData, d) 302 302 , m_value(v) … … 305 305 } 306 306 307 virtual void setValue(double d) KJS_FAST_CALL { m_double = d; m_value = JSImmediate::from(d); ASSERT(m_value); }307 virtual void setValue(double d) JSC_FAST_CALL { m_double = d; m_value = JSImmediate::from(d); ASSERT(m_value); } 308 308 309 309 private: … … 313 313 class StringNode : public ExpressionNode { 314 314 public: 315 StringNode(JSGlobalData* globalData, const UString* v) KJS_FAST_CALL315 StringNode(JSGlobalData* globalData, const UString* v) JSC_FAST_CALL 316 316 : ExpressionNode(globalData, StringType) 317 317 , m_value(*v) … … 319 319 } 320 320 321 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;321 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 322 322 323 virtual bool isString() const KJS_FAST_CALL { return true; }323 virtual bool isString() const JSC_FAST_CALL { return true; } 324 324 UString& value() { return m_value; } 325 virtual bool isPure(CodeGenerator&) const KJS_FAST_CALL { return true; }326 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;325 virtual bool isPure(CodeGenerator&) const JSC_FAST_CALL { return true; } 326 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 327 327 virtual Precedence precedence() const { return PrecPrimary; } 328 328 … … 426 426 class RegExpNode : public ExpressionNode, public ThrowableExpressionData { 427 427 public: 428 RegExpNode(JSGlobalData* globalData, const UString& pattern, const UString& flags) KJS_FAST_CALL428 RegExpNode(JSGlobalData* globalData, const UString& pattern, const UString& flags) JSC_FAST_CALL 429 429 : ExpressionNode(globalData) 430 430 , m_pattern(pattern) … … 433 433 } 434 434 435 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;436 437 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;435 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 436 437 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 438 438 virtual Precedence precedence() const { return PrecPrimary; } 439 439 … … 445 445 class ThisNode : public ExpressionNode { 446 446 public: 447 ThisNode(JSGlobalData* globalData) KJS_FAST_CALL448 : ExpressionNode(globalData) 449 { 450 } 451 452 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;453 454 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;447 ThisNode(JSGlobalData* globalData) JSC_FAST_CALL 448 : ExpressionNode(globalData) 449 { 450 } 451 452 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 453 454 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 455 455 virtual Precedence precedence() const { return PrecPrimary; } 456 456 }; … … 458 458 class ResolveNode : public ExpressionNode { 459 459 public: 460 ResolveNode(JSGlobalData* globalData, const Identifier& ident, int startOffset) KJS_FAST_CALL460 ResolveNode(JSGlobalData* globalData, const Identifier& ident, int startOffset) JSC_FAST_CALL 461 461 : ExpressionNode(globalData) 462 462 , m_ident(ident) … … 465 465 } 466 466 467 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;468 469 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;467 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 468 469 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 470 470 virtual Precedence precedence() const { return PrecPrimary; } 471 471 472 virtual bool isPure(CodeGenerator&) const KJS_FAST_CALL;473 virtual bool isLocation() const KJS_FAST_CALL { return true; }474 virtual bool isResolveNode() const KJS_FAST_CALL { return true; }475 const Identifier& identifier() const KJS_FAST_CALL { return m_ident; }472 virtual bool isPure(CodeGenerator&) const JSC_FAST_CALL; 473 virtual bool isLocation() const JSC_FAST_CALL { return true; } 474 virtual bool isResolveNode() const JSC_FAST_CALL { return true; } 475 const Identifier& identifier() const JSC_FAST_CALL { return m_ident; } 476 476 477 477 protected: … … 483 483 class ElementNode : public Node { 484 484 public: 485 ElementNode(JSGlobalData* globalData, int elision, ExpressionNode* node) KJS_FAST_CALL485 ElementNode(JSGlobalData* globalData, int elision, ExpressionNode* node) JSC_FAST_CALL 486 486 : Node(globalData) 487 487 , m_elision(elision) … … 490 490 } 491 491 492 ElementNode(JSGlobalData* globalData, ElementNode* l, int elision, ExpressionNode* node) KJS_FAST_CALL492 ElementNode(JSGlobalData* globalData, ElementNode* l, int elision, ExpressionNode* node) JSC_FAST_CALL 493 493 : Node(globalData) 494 494 , m_elision(elision) … … 499 499 500 500 virtual Precedence precedence() const { ASSERT_NOT_REACHED(); return PrecExpression; } 501 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;501 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 502 502 503 503 int elision() const { return m_elision; } … … 505 505 506 506 ElementNode* next() { return m_next.get(); } 507 PassRefPtr<ElementNode> releaseNext() KJS_FAST_CALL { return m_next.release(); }507 PassRefPtr<ElementNode> releaseNext() JSC_FAST_CALL { return m_next.release(); } 508 508 509 509 private: … … 515 515 class ArrayNode : public ExpressionNode { 516 516 public: 517 ArrayNode(JSGlobalData* globalData, int elision) KJS_FAST_CALL517 ArrayNode(JSGlobalData* globalData, int elision) JSC_FAST_CALL 518 518 : ExpressionNode(globalData) 519 519 , m_elision(elision) … … 522 522 } 523 523 524 ArrayNode(JSGlobalData* globalData, ElementNode* element) KJS_FAST_CALL524 ArrayNode(JSGlobalData* globalData, ElementNode* element) JSC_FAST_CALL 525 525 : ExpressionNode(globalData) 526 526 , m_element(element) … … 530 530 } 531 531 532 ArrayNode(JSGlobalData* globalData, int elision, ElementNode* element) KJS_FAST_CALL532 ArrayNode(JSGlobalData* globalData, int elision, ElementNode* element) JSC_FAST_CALL 533 533 : ExpressionNode(globalData) 534 534 , m_element(element) … … 538 538 } 539 539 540 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;541 542 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;540 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 541 542 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 543 543 virtual Precedence precedence() const { return PrecPrimary; } 544 544 … … 553 553 enum Type { Constant, Getter, Setter }; 554 554 555 PropertyNode(JSGlobalData* globalData, const Identifier& name, ExpressionNode* assign, Type type) KJS_FAST_CALL555 PropertyNode(JSGlobalData* globalData, const Identifier& name, ExpressionNode* assign, Type type) JSC_FAST_CALL 556 556 : Node(globalData) 557 557 , m_name(name) … … 561 561 } 562 562 563 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;563 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 564 564 virtual Precedence precedence() const { ASSERT_NOT_REACHED(); return PrecExpression; } 565 565 … … 575 575 class PropertyListNode : public Node { 576 576 public: 577 PropertyListNode(JSGlobalData* globalData, PropertyNode* node) KJS_FAST_CALL577 PropertyListNode(JSGlobalData* globalData, PropertyNode* node) JSC_FAST_CALL 578 578 : Node(globalData) 579 579 , m_node(node) … … 581 581 } 582 582 583 PropertyListNode(JSGlobalData* globalData, PropertyNode* node, PropertyListNode* list) KJS_FAST_CALL583 PropertyListNode(JSGlobalData* globalData, PropertyNode* node, PropertyListNode* list) JSC_FAST_CALL 584 584 : Node(globalData) 585 585 , m_node(node) … … 588 588 } 589 589 590 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;591 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;590 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 591 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 592 592 virtual Precedence precedence() const { ASSERT_NOT_REACHED(); return PrecExpression; } 593 593 594 PassRefPtr<PropertyListNode> releaseNext() KJS_FAST_CALL { return m_next.release(); }594 PassRefPtr<PropertyListNode> releaseNext() JSC_FAST_CALL { return m_next.release(); } 595 595 596 596 private: … … 602 602 class ObjectLiteralNode : public ExpressionNode { 603 603 public: 604 ObjectLiteralNode(JSGlobalData* globalData) KJS_FAST_CALL605 : ExpressionNode(globalData) 606 { 607 } 608 609 ObjectLiteralNode(JSGlobalData* globalData, PropertyListNode* list) KJS_FAST_CALL604 ObjectLiteralNode(JSGlobalData* globalData) JSC_FAST_CALL 605 : ExpressionNode(globalData) 606 { 607 } 608 609 ObjectLiteralNode(JSGlobalData* globalData, PropertyListNode* list) JSC_FAST_CALL 610 610 : ExpressionNode(globalData) 611 611 , m_list(list) … … 613 613 } 614 614 615 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;616 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;615 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 616 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 617 617 virtual Precedence precedence() const { return PrecPrimary; } 618 618 virtual bool needsParensIfLeftmost() const { return true; } … … 624 624 class BracketAccessorNode : public ExpressionNode, public ThrowableExpressionData { 625 625 public: 626 BracketAccessorNode(JSGlobalData* globalData, ExpressionNode* base, ExpressionNode* subscript, bool subscriptHasAssignments) KJS_FAST_CALL626 BracketAccessorNode(JSGlobalData* globalData, ExpressionNode* base, ExpressionNode* subscript, bool subscriptHasAssignments) JSC_FAST_CALL 627 627 : ExpressionNode(globalData) 628 628 , m_base(base) … … 632 632 } 633 633 634 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;635 636 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;634 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 635 636 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 637 637 virtual Precedence precedence() const { return PrecMember; } 638 638 639 virtual bool isLocation() const KJS_FAST_CALL { return true; }640 virtual bool isBracketAccessorNode() const KJS_FAST_CALL { return true; }641 ExpressionNode* base() KJS_FAST_CALL { return m_base.get(); }642 ExpressionNode* subscript() KJS_FAST_CALL { return m_subscript.get(); }639 virtual bool isLocation() const JSC_FAST_CALL { return true; } 640 virtual bool isBracketAccessorNode() const JSC_FAST_CALL { return true; } 641 ExpressionNode* base() JSC_FAST_CALL { return m_base.get(); } 642 ExpressionNode* subscript() JSC_FAST_CALL { return m_subscript.get(); } 643 643 644 644 private: … … 650 650 class DotAccessorNode : public ExpressionNode, public ThrowableExpressionData { 651 651 public: 652 DotAccessorNode(JSGlobalData* globalData, ExpressionNode* base, const Identifier& ident) KJS_FAST_CALL652 DotAccessorNode(JSGlobalData* globalData, ExpressionNode* base, const Identifier& ident) JSC_FAST_CALL 653 653 : ExpressionNode(globalData) 654 654 , m_base(base) … … 657 657 } 658 658 659 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;660 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;659 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 660 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 661 661 virtual Precedence precedence() const { return PrecMember; } 662 662 663 virtual bool isLocation() const KJS_FAST_CALL { return true; }664 virtual bool isDotAccessorNode() const KJS_FAST_CALL { return true; }665 ExpressionNode* base() const KJS_FAST_CALL { return m_base.get(); }666 const Identifier& identifier() const KJS_FAST_CALL { return m_ident; }663 virtual bool isLocation() const JSC_FAST_CALL { return true; } 664 virtual bool isDotAccessorNode() const JSC_FAST_CALL { return true; } 665 ExpressionNode* base() const JSC_FAST_CALL { return m_base.get(); } 666 const Identifier& identifier() const JSC_FAST_CALL { return m_ident; } 667 667 668 668 private: … … 673 673 class ArgumentListNode : public Node { 674 674 public: 675 ArgumentListNode(JSGlobalData* globalData, ExpressionNode* expr) KJS_FAST_CALL675 ArgumentListNode(JSGlobalData* globalData, ExpressionNode* expr) JSC_FAST_CALL 676 676 : Node(globalData) 677 677 , m_expr(expr) … … 679 679 } 680 680 681 ArgumentListNode(JSGlobalData* globalData, ArgumentListNode* listNode, ExpressionNode* expr) KJS_FAST_CALL681 ArgumentListNode(JSGlobalData* globalData, ArgumentListNode* listNode, ExpressionNode* expr) JSC_FAST_CALL 682 682 : Node(globalData) 683 683 , m_expr(expr) … … 686 686 } 687 687 688 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;689 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;688 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 689 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 690 690 virtual Precedence precedence() const { ASSERT_NOT_REACHED(); return PrecExpression; } 691 691 692 PassRefPtr<ArgumentListNode> releaseNext() KJS_FAST_CALL { return m_next.release(); }692 PassRefPtr<ArgumentListNode> releaseNext() JSC_FAST_CALL { return m_next.release(); } 693 693 694 694 ListRefPtr<ArgumentListNode> m_next; … … 698 698 class ArgumentsNode : public Node { 699 699 public: 700 ArgumentsNode(JSGlobalData* globalData) KJS_FAST_CALL700 ArgumentsNode(JSGlobalData* globalData) JSC_FAST_CALL 701 701 : Node(globalData) 702 702 { 703 703 } 704 704 705 ArgumentsNode(JSGlobalData* globalData, ArgumentListNode* listNode) KJS_FAST_CALL705 ArgumentsNode(JSGlobalData* globalData, ArgumentListNode* listNode) JSC_FAST_CALL 706 706 : Node(globalData) 707 707 , m_listNode(listNode) … … 709 709 } 710 710 711 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;711 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 712 712 virtual Precedence precedence() const { ASSERT_NOT_REACHED(); return PrecExpression; } 713 713 … … 717 717 class NewExprNode : public ExpressionNode, public ThrowableExpressionData { 718 718 public: 719 NewExprNode(JSGlobalData* globalData, ExpressionNode* expr) KJS_FAST_CALL719 NewExprNode(JSGlobalData* globalData, ExpressionNode* expr) JSC_FAST_CALL 720 720 : ExpressionNode(globalData) 721 721 , m_expr(expr) … … 723 723 } 724 724 725 NewExprNode(JSGlobalData* globalData, ExpressionNode* expr, ArgumentsNode* args) KJS_FAST_CALL725 NewExprNode(JSGlobalData* globalData, ExpressionNode* expr, ArgumentsNode* args) JSC_FAST_CALL 726 726 : ExpressionNode(globalData) 727 727 , m_expr(expr) … … 730 730 } 731 731 732 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;733 734 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;732 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 733 734 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 735 735 virtual Precedence precedence() const { return PrecLeftHandSide; } 736 736 … … 742 742 class EvalFunctionCallNode : public ExpressionNode, public ThrowableExpressionData { 743 743 public: 744 EvalFunctionCallNode(JSGlobalData* globalData, ArgumentsNode* args, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL744 EvalFunctionCallNode(JSGlobalData* globalData, ArgumentsNode* args, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 745 745 : ExpressionNode(globalData) 746 746 , ThrowableExpressionData(divot, startOffset, endOffset) … … 749 749 } 750 750 751 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;752 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;751 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 752 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 753 753 virtual Precedence precedence() const { return PrecCall; } 754 754 … … 759 759 class FunctionCallValueNode : public ExpressionNode, public ThrowableExpressionData { 760 760 public: 761 FunctionCallValueNode(JSGlobalData* globalData, ExpressionNode* expr, ArgumentsNode* args, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL761 FunctionCallValueNode(JSGlobalData* globalData, ExpressionNode* expr, ArgumentsNode* args, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 762 762 : ExpressionNode(globalData) 763 763 , ThrowableExpressionData(divot, startOffset, endOffset) … … 767 767 } 768 768 769 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;770 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;769 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 770 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 771 771 virtual Precedence precedence() const { return PrecCall; } 772 772 … … 778 778 class FunctionCallResolveNode : public ExpressionNode, public ThrowableExpressionData { 779 779 public: 780 FunctionCallResolveNode(JSGlobalData* globalData, const Identifier& ident, ArgumentsNode* args, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL780 FunctionCallResolveNode(JSGlobalData* globalData, const Identifier& ident, ArgumentsNode* args, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 781 781 : ExpressionNode(globalData) 782 782 , ThrowableExpressionData(divot, startOffset, endOffset) … … 786 786 } 787 787 788 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;789 790 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;788 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 789 790 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 791 791 virtual Precedence precedence() const { return PrecCall; } 792 792 … … 800 800 class FunctionCallBracketNode : public ExpressionNode, public ThrowableSubExpressionData { 801 801 public: 802 FunctionCallBracketNode(JSGlobalData* globalData, ExpressionNode* base, ExpressionNode* subscript, ArgumentsNode* args, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL802 FunctionCallBracketNode(JSGlobalData* globalData, ExpressionNode* base, ExpressionNode* subscript, ArgumentsNode* args, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 803 803 : ExpressionNode(globalData) 804 804 , ThrowableSubExpressionData(divot, startOffset, endOffset) … … 809 809 } 810 810 811 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;812 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;811 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 812 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 813 813 virtual Precedence precedence() const { return PrecCall; } 814 814 … … 821 821 class FunctionCallDotNode : public ExpressionNode, public ThrowableSubExpressionData { 822 822 public: 823 FunctionCallDotNode(JSGlobalData* globalData, ExpressionNode* base, const Identifier& ident, ArgumentsNode* args, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL823 FunctionCallDotNode(JSGlobalData* globalData, ExpressionNode* base, const Identifier& ident, ArgumentsNode* args, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 824 824 : ExpressionNode(globalData) 825 825 , ThrowableSubExpressionData(divot, startOffset, endOffset) … … 830 830 } 831 831 832 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;833 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;832 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 833 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 834 834 virtual Precedence precedence() const { return PrecCall; } 835 835 … … 842 842 class PrePostResolveNode : public ExpressionNode, public ThrowableExpressionData { 843 843 public: 844 PrePostResolveNode(JSGlobalData* globalData, const Identifier& ident, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL844 PrePostResolveNode(JSGlobalData* globalData, const Identifier& ident, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 845 845 : ExpressionNode(globalData, NumberType) 846 846 , ThrowableExpressionData(divot, startOffset, endOffset) … … 855 855 class PostfixResolveNode : public PrePostResolveNode { 856 856 public: 857 PostfixResolveNode(JSGlobalData* globalData, const Identifier& ident, Operator oper, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL857 PostfixResolveNode(JSGlobalData* globalData, const Identifier& ident, Operator oper, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 858 858 : PrePostResolveNode(globalData, ident, divot, startOffset, endOffset) 859 859 , m_operator(oper) … … 861 861 } 862 862 863 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;864 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;863 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 864 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 865 865 virtual Precedence precedence() const { return PrecPostfix; } 866 866 … … 871 871 class PostfixBracketNode : public ExpressionNode, public ThrowableSubExpressionData { 872 872 public: 873 PostfixBracketNode(JSGlobalData* globalData, ExpressionNode* base, ExpressionNode* subscript, Operator oper, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL873 PostfixBracketNode(JSGlobalData* globalData, ExpressionNode* base, ExpressionNode* subscript, Operator oper, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 874 874 : ExpressionNode(globalData) 875 875 , ThrowableSubExpressionData(divot, startOffset, endOffset) … … 880 880 } 881 881 882 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;883 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;882 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 883 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 884 884 virtual Precedence precedence() const { return PrecPostfix; } 885 885 … … 892 892 class PostfixDotNode : public ExpressionNode, public ThrowableSubExpressionData { 893 893 public: 894 PostfixDotNode(JSGlobalData* globalData, ExpressionNode* base, const Identifier& ident, Operator oper, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL894 PostfixDotNode(JSGlobalData* globalData, ExpressionNode* base, const Identifier& ident, Operator oper, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 895 895 : ExpressionNode(globalData) 896 896 , ThrowableSubExpressionData(divot, startOffset, endOffset) … … 901 901 } 902 902 903 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;904 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;903 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 904 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 905 905 virtual Precedence precedence() const { return PrecPostfix; } 906 906 … … 913 913 class PostfixErrorNode : public ExpressionNode, public ThrowableSubExpressionData { 914 914 public: 915 PostfixErrorNode(JSGlobalData* globalData, ExpressionNode* expr, Operator oper, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL915 PostfixErrorNode(JSGlobalData* globalData, ExpressionNode* expr, Operator oper, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 916 916 : ExpressionNode(globalData) 917 917 , ThrowableSubExpressionData(divot, startOffset, endOffset) … … 921 921 } 922 922 923 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;924 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;923 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 924 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 925 925 virtual Precedence precedence() const { return PrecPostfix; } 926 926 … … 932 932 class DeleteResolveNode : public ExpressionNode, public ThrowableExpressionData { 933 933 public: 934 DeleteResolveNode(JSGlobalData* globalData, const Identifier& ident, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL934 DeleteResolveNode(JSGlobalData* globalData, const Identifier& ident, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 935 935 : ExpressionNode(globalData) 936 936 , ThrowableExpressionData(divot, startOffset, endOffset) … … 939 939 } 940 940 941 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;942 943 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;941 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 942 943 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 944 944 virtual Precedence precedence() const { return PrecUnary; } 945 945 … … 950 950 class DeleteBracketNode : public ExpressionNode, public ThrowableExpressionData { 951 951 public: 952 DeleteBracketNode(JSGlobalData* globalData, ExpressionNode* base, ExpressionNode* subscript, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL952 DeleteBracketNode(JSGlobalData* globalData, ExpressionNode* base, ExpressionNode* subscript, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 953 953 : ExpressionNode(globalData) 954 954 , ThrowableExpressionData(divot, startOffset, endOffset) … … 958 958 } 959 959 960 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;961 962 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;960 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 961 962 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 963 963 virtual Precedence precedence() const { return PrecUnary; } 964 964 … … 970 970 class DeleteDotNode : public ExpressionNode, public ThrowableExpressionData { 971 971 public: 972 DeleteDotNode(JSGlobalData* globalData, ExpressionNode* base, const Identifier& ident, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL972 DeleteDotNode(JSGlobalData* globalData, ExpressionNode* base, const Identifier& ident, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 973 973 : ExpressionNode(globalData) 974 974 , ThrowableExpressionData(divot, startOffset, endOffset) … … 978 978 } 979 979 980 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;981 982 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;980 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 981 982 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 983 983 virtual Precedence precedence() const { return PrecUnary; } 984 984 … … 990 990 class DeleteValueNode : public ExpressionNode { 991 991 public: 992 DeleteValueNode(JSGlobalData* globalData, ExpressionNode* expr) KJS_FAST_CALL992 DeleteValueNode(JSGlobalData* globalData, ExpressionNode* expr) JSC_FAST_CALL 993 993 : ExpressionNode(globalData) 994 994 , m_expr(expr) … … 996 996 } 997 997 998 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;999 1000 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;998 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 999 1000 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1001 1001 virtual Precedence precedence() const { return PrecUnary; } 1002 1002 … … 1007 1007 class VoidNode : public ExpressionNode { 1008 1008 public: 1009 VoidNode(JSGlobalData* globalData, ExpressionNode* expr) KJS_FAST_CALL1009 VoidNode(JSGlobalData* globalData, ExpressionNode* expr) JSC_FAST_CALL 1010 1010 : ExpressionNode(globalData) 1011 1011 , m_expr(expr) … … 1013 1013 } 1014 1014 1015 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1016 1017 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1015 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1016 1017 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1018 1018 virtual Precedence precedence() const { return PrecUnary; } 1019 1019 … … 1024 1024 class TypeOfResolveNode : public ExpressionNode { 1025 1025 public: 1026 TypeOfResolveNode(JSGlobalData* globalData, const Identifier& ident) KJS_FAST_CALL1026 TypeOfResolveNode(JSGlobalData* globalData, const Identifier& ident) JSC_FAST_CALL 1027 1027 : ExpressionNode(globalData, StringType) 1028 1028 , m_ident(ident) … … 1030 1030 } 1031 1031 1032 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1033 1034 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1032 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1033 1034 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1035 1035 virtual Precedence precedence() const { return PrecUnary; } 1036 1036 1037 const Identifier& identifier() const KJS_FAST_CALL { return m_ident; }1037 const Identifier& identifier() const JSC_FAST_CALL { return m_ident; } 1038 1038 1039 1039 protected: … … 1044 1044 class TypeOfValueNode : public ExpressionNode { 1045 1045 public: 1046 TypeOfValueNode(JSGlobalData* globalData, ExpressionNode* expr) KJS_FAST_CALL1046 TypeOfValueNode(JSGlobalData* globalData, ExpressionNode* expr) JSC_FAST_CALL 1047 1047 : ExpressionNode(globalData, StringType) 1048 1048 , m_expr(expr) … … 1050 1050 } 1051 1051 1052 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1053 1054 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1052 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1053 1054 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1055 1055 virtual Precedence precedence() const { return PrecUnary; } 1056 1056 … … 1061 1061 class PrefixResolveNode : public PrePostResolveNode { 1062 1062 public: 1063 PrefixResolveNode(JSGlobalData* globalData, const Identifier& ident, Operator oper, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL1063 PrefixResolveNode(JSGlobalData* globalData, const Identifier& ident, Operator oper, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 1064 1064 : PrePostResolveNode(globalData, ident, divot, startOffset, endOffset) 1065 1065 , m_operator(oper) … … 1067 1067 } 1068 1068 1069 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1070 1071 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1069 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1070 1071 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1072 1072 virtual Precedence precedence() const { return PrecUnary; } 1073 1073 … … 1078 1078 class PrefixBracketNode : public ExpressionNode, public ThrowablePrefixedSubExpressionData { 1079 1079 public: 1080 PrefixBracketNode(JSGlobalData* globalData, ExpressionNode* base, ExpressionNode* subscript, Operator oper, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL1080 PrefixBracketNode(JSGlobalData* globalData, ExpressionNode* base, ExpressionNode* subscript, Operator oper, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 1081 1081 : ExpressionNode(globalData) 1082 1082 , ThrowablePrefixedSubExpressionData(divot, startOffset, endOffset) … … 1087 1087 } 1088 1088 1089 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1090 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1089 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1090 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1091 1091 virtual Precedence precedence() const { return PrecUnary; } 1092 1092 … … 1099 1099 class PrefixDotNode : public ExpressionNode, public ThrowablePrefixedSubExpressionData { 1100 1100 public: 1101 PrefixDotNode(JSGlobalData* globalData, ExpressionNode* base, const Identifier& ident, Operator oper, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL1101 PrefixDotNode(JSGlobalData* globalData, ExpressionNode* base, const Identifier& ident, Operator oper, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 1102 1102 : ExpressionNode(globalData) 1103 1103 , ThrowablePrefixedSubExpressionData(divot, startOffset, endOffset) … … 1108 1108 } 1109 1109 1110 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1111 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1110 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1111 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1112 1112 virtual Precedence precedence() const { return PrecPostfix; } 1113 1113 … … 1120 1120 class PrefixErrorNode : public ExpressionNode, public ThrowableExpressionData { 1121 1121 public: 1122 PrefixErrorNode(JSGlobalData* globalData, ExpressionNode* expr, Operator oper, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL1122 PrefixErrorNode(JSGlobalData* globalData, ExpressionNode* expr, Operator oper, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 1123 1123 : ExpressionNode(globalData) 1124 1124 , ThrowableExpressionData(divot, startOffset, endOffset) … … 1128 1128 } 1129 1129 1130 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1131 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1130 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1131 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1132 1132 virtual Precedence precedence() const { return PrecUnary; } 1133 1133 … … 1151 1151 } 1152 1152 1153 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1154 virtual OpcodeID opcode() const KJS_FAST_CALL = 0;1153 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1154 virtual OpcodeID opcode() const JSC_FAST_CALL = 0; 1155 1155 1156 1156 protected: … … 1160 1160 class UnaryPlusNode : public UnaryOpNode { 1161 1161 public: 1162 UnaryPlusNode(JSGlobalData* globalData, ExpressionNode* expr) KJS_FAST_CALL1162 UnaryPlusNode(JSGlobalData* globalData, ExpressionNode* expr) JSC_FAST_CALL 1163 1163 : UnaryOpNode(globalData, NumberType, expr) 1164 1164 { 1165 1165 } 1166 1166 1167 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_to_jsnumber; }1168 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1167 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_to_jsnumber; } 1168 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1169 1169 virtual Precedence precedence() const { return PrecUnary; } 1170 1170 }; … … 1172 1172 class NegateNode : public UnaryOpNode { 1173 1173 public: 1174 NegateNode(JSGlobalData* globalData, ExpressionNode* expr) KJS_FAST_CALL1174 NegateNode(JSGlobalData* globalData, ExpressionNode* expr) JSC_FAST_CALL 1175 1175 : UnaryOpNode(globalData, NumberType, expr) 1176 1176 { 1177 1177 } 1178 1178 1179 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_negate; }1180 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1179 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_negate; } 1180 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1181 1181 virtual Precedence precedence() const { return PrecUnary; } 1182 1182 }; … … 1184 1184 class BitwiseNotNode : public UnaryOpNode { 1185 1185 public: 1186 BitwiseNotNode(JSGlobalData* globalData, ExpressionNode* expr) KJS_FAST_CALL1186 BitwiseNotNode(JSGlobalData* globalData, ExpressionNode* expr) JSC_FAST_CALL 1187 1187 : UnaryOpNode(globalData, NumberType, expr) 1188 1188 { 1189 1189 } 1190 1190 1191 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_bitnot; }1192 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1191 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_bitnot; } 1192 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1193 1193 virtual Precedence precedence() const { return PrecUnary; } 1194 1194 }; … … 1196 1196 class LogicalNotNode : public UnaryOpNode { 1197 1197 public: 1198 LogicalNotNode(JSGlobalData* globalData, ExpressionNode* expr) KJS_FAST_CALL1198 LogicalNotNode(JSGlobalData* globalData, ExpressionNode* expr) JSC_FAST_CALL 1199 1199 : UnaryOpNode(globalData, BooleanType, expr) 1200 1200 { 1201 1201 } 1202 1202 1203 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_not; }1204 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1203 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_not; } 1204 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1205 1205 virtual Precedence precedence() const { return PrecUnary; } 1206 1206 }; … … 1224 1224 } 1225 1225 1226 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1227 virtual OpcodeID opcode() const KJS_FAST_CALL = 0;1226 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1227 virtual OpcodeID opcode() const JSC_FAST_CALL = 0; 1228 1228 1229 1229 protected: … … 1251 1251 } 1252 1252 1253 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1254 virtual OpcodeID opcode() const KJS_FAST_CALL = 0;1253 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1254 virtual OpcodeID opcode() const JSC_FAST_CALL = 0; 1255 1255 1256 1256 protected: … … 1262 1262 class MultNode : public BinaryOpNode { 1263 1263 public: 1264 MultNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1264 MultNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1265 1265 : BinaryOpNode(globalData, NumberType, expr1, expr2, rightHasAssignments) 1266 1266 { 1267 1267 } 1268 1268 1269 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_mul; }1270 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1269 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_mul; } 1270 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1271 1271 virtual Precedence precedence() const { return PrecMultiplicative; } 1272 1272 }; … … 1274 1274 class DivNode : public BinaryOpNode { 1275 1275 public: 1276 DivNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1276 DivNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1277 1277 : BinaryOpNode(globalData, NumberType, expr1, expr2, rightHasAssignments) 1278 1278 { 1279 1279 } 1280 1280 1281 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_div; }1282 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1281 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_div; } 1282 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1283 1283 virtual Precedence precedence() const { return PrecMultiplicative; } 1284 1284 }; … … 1286 1286 class ModNode : public BinaryOpNode { 1287 1287 public: 1288 ModNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1288 ModNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1289 1289 : BinaryOpNode(globalData, NumberType, expr1, expr2, rightHasAssignments) 1290 1290 { 1291 1291 } 1292 1292 1293 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_mod; }1294 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1293 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_mod; } 1294 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1295 1295 virtual Precedence precedence() const { return PrecMultiplicative; } 1296 1296 }; … … 1298 1298 class AddNode : public BinaryOpNode { 1299 1299 public: 1300 AddNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1300 AddNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1301 1301 : BinaryOpNode(globalData, expr1, expr2, rightHasAssignments) 1302 1302 { 1303 1303 } 1304 1304 1305 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_add; }1306 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1305 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_add; } 1306 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1307 1307 virtual Precedence precedence() const { return PrecAdditive; } 1308 1308 }; … … 1310 1310 class SubNode : public BinaryOpNode { 1311 1311 public: 1312 SubNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1312 SubNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1313 1313 : BinaryOpNode(globalData, expr1, expr2, rightHasAssignments) 1314 1314 { 1315 1315 } 1316 1316 1317 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_sub; }1318 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1317 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_sub; } 1318 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1319 1319 virtual Precedence precedence() const { return PrecAdditive; } 1320 1320 }; … … 1322 1322 class LeftShiftNode : public BinaryOpNode { 1323 1323 public: 1324 LeftShiftNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1324 LeftShiftNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1325 1325 : BinaryOpNode(globalData, NumberType, expr1, expr2, rightHasAssignments) 1326 1326 { 1327 1327 } 1328 1328 1329 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_lshift; }1330 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1329 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_lshift; } 1330 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1331 1331 virtual Precedence precedence() const { return PrecShift; } 1332 1332 }; … … 1334 1334 class RightShiftNode : public BinaryOpNode { 1335 1335 public: 1336 RightShiftNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1336 RightShiftNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1337 1337 : BinaryOpNode(globalData, NumberType, expr1, expr2, rightHasAssignments) 1338 1338 { 1339 1339 } 1340 1340 1341 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_rshift; }1342 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1341 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_rshift; } 1342 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1343 1343 virtual Precedence precedence() const { return PrecShift; } 1344 1344 }; … … 1346 1346 class UnsignedRightShiftNode : public BinaryOpNode { 1347 1347 public: 1348 UnsignedRightShiftNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1348 UnsignedRightShiftNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1349 1349 : BinaryOpNode(globalData, NumberType, expr1, expr2, rightHasAssignments) 1350 1350 { 1351 1351 } 1352 1352 1353 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_urshift; }1354 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1353 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_urshift; } 1354 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1355 1355 virtual Precedence precedence() const { return PrecShift; } 1356 1356 }; … … 1358 1358 class LessNode : public BinaryOpNode { 1359 1359 public: 1360 LessNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1360 LessNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1361 1361 : BinaryOpNode(globalData, BooleanType, expr1, expr2, rightHasAssignments) 1362 1362 { 1363 1363 } 1364 1364 1365 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_less; }1366 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1365 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_less; } 1366 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1367 1367 virtual Precedence precedence() const { return PrecRelational; } 1368 1368 }; … … 1370 1370 class GreaterNode : public ReverseBinaryOpNode { 1371 1371 public: 1372 GreaterNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1372 GreaterNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1373 1373 : ReverseBinaryOpNode(globalData, BooleanType, expr1, expr2, rightHasAssignments) 1374 1374 { 1375 1375 } 1376 1376 1377 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_less; }1378 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1377 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_less; } 1378 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1379 1379 virtual Precedence precedence() const { return PrecRelational; } 1380 1380 }; … … 1382 1382 class LessEqNode : public BinaryOpNode { 1383 1383 public: 1384 LessEqNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1384 LessEqNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1385 1385 : BinaryOpNode(globalData, BooleanType, expr1, expr2, rightHasAssignments) 1386 1386 { 1387 1387 } 1388 1388 1389 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_lesseq; }1390 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1389 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_lesseq; } 1390 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1391 1391 virtual Precedence precedence() const { return PrecRelational; } 1392 1392 }; … … 1394 1394 class GreaterEqNode : public ReverseBinaryOpNode { 1395 1395 public: 1396 GreaterEqNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1396 GreaterEqNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1397 1397 : ReverseBinaryOpNode(globalData, BooleanType, expr1, expr2, rightHasAssignments) 1398 1398 { 1399 1399 } 1400 1400 1401 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_lesseq; }1402 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1401 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_lesseq; } 1402 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1403 1403 virtual Precedence precedence() const { return PrecRelational; } 1404 1404 }; … … 1406 1406 class ThrowableBinaryOpNode : public BinaryOpNode, public ThrowableExpressionData { 1407 1407 public: 1408 ThrowableBinaryOpNode(JSGlobalData* globalData, JSType type, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1408 ThrowableBinaryOpNode(JSGlobalData* globalData, JSType type, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1409 1409 : BinaryOpNode(globalData, type, expr1, expr2, rightHasAssignments) 1410 1410 { 1411 1411 } 1412 ThrowableBinaryOpNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1412 ThrowableBinaryOpNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1413 1413 : BinaryOpNode(globalData, expr1, expr2, rightHasAssignments) 1414 1414 { 1415 1415 } 1416 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1416 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1417 1417 }; 1418 1418 1419 1419 class InstanceOfNode : public ThrowableBinaryOpNode { 1420 1420 public: 1421 InstanceOfNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1421 InstanceOfNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1422 1422 : ThrowableBinaryOpNode(globalData, BooleanType, expr1, expr2, rightHasAssignments) 1423 1423 { 1424 1424 } 1425 1425 1426 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_instanceof; }1427 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1426 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_instanceof; } 1427 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1428 1428 virtual Precedence precedence() const { return PrecRelational; } 1429 1429 }; … … 1431 1431 class InNode : public ThrowableBinaryOpNode { 1432 1432 public: 1433 InNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1433 InNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1434 1434 : ThrowableBinaryOpNode(globalData, expr1, expr2, rightHasAssignments) 1435 1435 { 1436 1436 } 1437 1437 1438 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_in; }1439 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1438 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_in; } 1439 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1440 1440 virtual Precedence precedence() const { return PrecRelational; } 1441 1441 }; … … 1443 1443 class EqualNode : public BinaryOpNode { 1444 1444 public: 1445 EqualNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1445 EqualNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1446 1446 : BinaryOpNode(globalData, BooleanType, expr1, expr2, rightHasAssignments) 1447 1447 { 1448 1448 } 1449 1449 1450 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_eq; }1451 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1450 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_eq; } 1451 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1452 1452 virtual Precedence precedence() const { return PrecEquality; } 1453 1453 }; … … 1455 1455 class NotEqualNode : public BinaryOpNode { 1456 1456 public: 1457 NotEqualNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1457 NotEqualNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1458 1458 : BinaryOpNode(globalData, BooleanType, expr1, expr2, rightHasAssignments) 1459 1459 { 1460 1460 } 1461 1461 1462 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_neq; }1463 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1462 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_neq; } 1463 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1464 1464 virtual Precedence precedence() const { return PrecEquality; } 1465 1465 }; … … 1467 1467 class StrictEqualNode : public BinaryOpNode { 1468 1468 public: 1469 StrictEqualNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1469 StrictEqualNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1470 1470 : BinaryOpNode(globalData, BooleanType, expr1, expr2, rightHasAssignments) 1471 1471 { 1472 1472 } 1473 1473 1474 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_stricteq; }1475 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1474 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_stricteq; } 1475 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1476 1476 virtual Precedence precedence() const { return PrecEquality; } 1477 1477 }; … … 1479 1479 class NotStrictEqualNode : public BinaryOpNode { 1480 1480 public: 1481 NotStrictEqualNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1481 NotStrictEqualNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1482 1482 : BinaryOpNode(globalData, BooleanType, expr1, expr2, rightHasAssignments) 1483 1483 { 1484 1484 } 1485 1485 1486 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_nstricteq; }1487 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1486 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_nstricteq; } 1487 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1488 1488 virtual Precedence precedence() const { return PrecEquality; } 1489 1489 }; … … 1491 1491 class BitAndNode : public BinaryOpNode { 1492 1492 public: 1493 BitAndNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1493 BitAndNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1494 1494 : BinaryOpNode(globalData, NumberType, expr1, expr2, rightHasAssignments) 1495 1495 { 1496 1496 } 1497 1497 1498 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_bitand; }1499 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1498 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_bitand; } 1499 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1500 1500 virtual Precedence precedence() const { return PrecBitwiseAnd; } 1501 1501 }; … … 1503 1503 class BitOrNode : public BinaryOpNode { 1504 1504 public: 1505 BitOrNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1505 BitOrNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1506 1506 : BinaryOpNode(globalData, NumberType, expr1, expr2, rightHasAssignments) 1507 1507 { 1508 1508 } 1509 1509 1510 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_bitor; }1511 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1510 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_bitor; } 1511 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1512 1512 virtual Precedence precedence() const { return PrecBitwiseOr; } 1513 1513 }; … … 1515 1515 class BitXOrNode : public BinaryOpNode { 1516 1516 public: 1517 BitXOrNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) KJS_FAST_CALL1517 BitXOrNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, bool rightHasAssignments) JSC_FAST_CALL 1518 1518 : BinaryOpNode(globalData, NumberType, expr1, expr2, rightHasAssignments) 1519 1519 { 1520 1520 } 1521 1521 1522 virtual OpcodeID opcode() const KJS_FAST_CALL { return op_bitxor; }1523 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1522 virtual OpcodeID opcode() const JSC_FAST_CALL { return op_bitxor; } 1523 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1524 1524 virtual Precedence precedence() const { return PrecBitwiseXor; } 1525 1525 }; … … 1530 1530 class LogicalOpNode : public ExpressionNode { 1531 1531 public: 1532 LogicalOpNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, LogicalOperator oper) KJS_FAST_CALL1532 LogicalOpNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, LogicalOperator oper) JSC_FAST_CALL 1533 1533 : ExpressionNode(globalData, BooleanType) 1534 1534 , m_expr1(expr1) … … 1538 1538 } 1539 1539 1540 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1541 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1540 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1541 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1542 1542 virtual Precedence precedence() const { return (m_operator == OpLogicalAnd) ? PrecLogicalAnd : PrecLogicalOr; } 1543 1543 … … 1553 1553 class ConditionalNode : public ExpressionNode { 1554 1554 public: 1555 ConditionalNode(JSGlobalData* globalData, ExpressionNode* logical, ExpressionNode* expr1, ExpressionNode* expr2) KJS_FAST_CALL1555 ConditionalNode(JSGlobalData* globalData, ExpressionNode* logical, ExpressionNode* expr1, ExpressionNode* expr2) JSC_FAST_CALL 1556 1556 : ExpressionNode(globalData) 1557 1557 , m_logical(logical) … … 1561 1561 } 1562 1562 1563 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1564 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1563 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1564 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1565 1565 virtual Precedence precedence() const { return PrecConditional; } 1566 1566 … … 1573 1573 class ReadModifyResolveNode : public ExpressionNode, public ThrowableExpressionData { 1574 1574 public: 1575 ReadModifyResolveNode(JSGlobalData* globalData, const Identifier& ident, Operator oper, ExpressionNode* right, bool rightHasAssignments, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL1575 ReadModifyResolveNode(JSGlobalData* globalData, const Identifier& ident, Operator oper, ExpressionNode* right, bool rightHasAssignments, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 1576 1576 : ExpressionNode(globalData) 1577 1577 , ThrowableExpressionData(divot, startOffset, endOffset) … … 1583 1583 } 1584 1584 1585 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1586 1587 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1585 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1586 1587 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1588 1588 virtual Precedence precedence() const { return PrecAssignment; } 1589 1589 … … 1598 1598 class AssignResolveNode : public ExpressionNode, public ThrowableExpressionData { 1599 1599 public: 1600 AssignResolveNode(JSGlobalData* globalData, const Identifier& ident, ExpressionNode* right, bool rightHasAssignments) KJS_FAST_CALL1600 AssignResolveNode(JSGlobalData* globalData, const Identifier& ident, ExpressionNode* right, bool rightHasAssignments) JSC_FAST_CALL 1601 1601 : ExpressionNode(globalData) 1602 1602 , m_ident(ident) … … 1606 1606 } 1607 1607 1608 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1609 1610 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1608 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1609 1610 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1611 1611 virtual Precedence precedence() const { return PrecAssignment; } 1612 1612 … … 1620 1620 class ReadModifyBracketNode : public ExpressionNode, public ThrowableSubExpressionData { 1621 1621 public: 1622 ReadModifyBracketNode(JSGlobalData* globalData, ExpressionNode* base, ExpressionNode* subscript, Operator oper, ExpressionNode* right, bool subscriptHasAssignments, bool rightHasAssignments, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL1622 ReadModifyBracketNode(JSGlobalData* globalData, ExpressionNode* base, ExpressionNode* subscript, Operator oper, ExpressionNode* right, bool subscriptHasAssignments, bool rightHasAssignments, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 1623 1623 : ExpressionNode(globalData) 1624 1624 , ThrowableSubExpressionData(divot, startOffset, endOffset) … … 1632 1632 } 1633 1633 1634 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1635 1636 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1634 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1635 1636 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1637 1637 virtual Precedence precedence() const { return PrecAssignment; } 1638 1638 … … 1648 1648 class AssignBracketNode : public ExpressionNode, public ThrowableExpressionData { 1649 1649 public: 1650 AssignBracketNode(JSGlobalData* globalData, ExpressionNode* base, ExpressionNode* subscript, ExpressionNode* right, bool subscriptHasAssignments, bool rightHasAssignments, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL1650 AssignBracketNode(JSGlobalData* globalData, ExpressionNode* base, ExpressionNode* subscript, ExpressionNode* right, bool subscriptHasAssignments, bool rightHasAssignments, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 1651 1651 : ExpressionNode(globalData) 1652 1652 , ThrowableExpressionData(divot, startOffset, endOffset) … … 1659 1659 } 1660 1660 1661 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1662 1663 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1661 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1662 1663 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1664 1664 virtual Precedence precedence() const { return PrecAssignment; } 1665 1665 … … 1674 1674 class AssignDotNode : public ExpressionNode, public ThrowableExpressionData { 1675 1675 public: 1676 AssignDotNode(JSGlobalData* globalData, ExpressionNode* base, const Identifier& ident, ExpressionNode* right, bool rightHasAssignments, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL1676 AssignDotNode(JSGlobalData* globalData, ExpressionNode* base, const Identifier& ident, ExpressionNode* right, bool rightHasAssignments, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 1677 1677 : ExpressionNode(globalData) 1678 1678 , ThrowableExpressionData(divot, startOffset, endOffset) … … 1684 1684 } 1685 1685 1686 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1687 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1686 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1687 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1688 1688 virtual Precedence precedence() const { return PrecAssignment; } 1689 1689 … … 1697 1697 class ReadModifyDotNode : public ExpressionNode, public ThrowableSubExpressionData { 1698 1698 public: 1699 ReadModifyDotNode(JSGlobalData* globalData, ExpressionNode* base, const Identifier& ident, Operator oper, ExpressionNode* right, bool rightHasAssignments, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL1699 ReadModifyDotNode(JSGlobalData* globalData, ExpressionNode* base, const Identifier& ident, Operator oper, ExpressionNode* right, bool rightHasAssignments, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 1700 1700 : ExpressionNode(globalData) 1701 1701 , ThrowableSubExpressionData(divot, startOffset, endOffset) … … 1708 1708 } 1709 1709 1710 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1711 1712 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1710 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1711 1712 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1713 1713 virtual Precedence precedence() const { return PrecAssignment; } 1714 1714 … … 1723 1723 class AssignErrorNode : public ExpressionNode, public ThrowableExpressionData { 1724 1724 public: 1725 AssignErrorNode(JSGlobalData* globalData, ExpressionNode* left, Operator oper, ExpressionNode* right, unsigned divot, unsigned startOffset, unsigned endOffset) KJS_FAST_CALL1725 AssignErrorNode(JSGlobalData* globalData, ExpressionNode* left, Operator oper, ExpressionNode* right, unsigned divot, unsigned startOffset, unsigned endOffset) JSC_FAST_CALL 1726 1726 : ExpressionNode(globalData) 1727 1727 , ThrowableExpressionData(divot, startOffset, endOffset) … … 1732 1732 } 1733 1733 1734 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1735 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1734 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1735 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1736 1736 virtual Precedence precedence() const { return PrecAssignment; } 1737 1737 … … 1744 1744 class CommaNode : public ExpressionNode { 1745 1745 public: 1746 CommaNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2) KJS_FAST_CALL1746 CommaNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2) JSC_FAST_CALL 1747 1747 : ExpressionNode(globalData) 1748 1748 , m_expr1(expr1) … … 1751 1751 } 1752 1752 1753 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1754 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1753 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1754 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1755 1755 virtual Precedence precedence() const { return PrecExpression; } 1756 1756 … … 1762 1762 class VarDeclCommaNode : public CommaNode { 1763 1763 public: 1764 VarDeclCommaNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2) KJS_FAST_CALL1764 VarDeclCommaNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2) JSC_FAST_CALL 1765 1765 : CommaNode(globalData, expr1, expr2) 1766 1766 { … … 1771 1771 class ConstDeclNode : public ExpressionNode { 1772 1772 public: 1773 ConstDeclNode(JSGlobalData* globalData, const Identifier& ident, ExpressionNode* in) KJS_FAST_CALL;1774 1775 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1773 ConstDeclNode(JSGlobalData* globalData, const Identifier& ident, ExpressionNode* in) JSC_FAST_CALL; 1774 1775 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1776 1776 virtual Precedence precedence() const { ASSERT_NOT_REACHED(); return PrecExpression; } 1777 PassRefPtr<ConstDeclNode> releaseNext() KJS_FAST_CALL { return m_next.release(); }1777 PassRefPtr<ConstDeclNode> releaseNext() JSC_FAST_CALL { return m_next.release(); } 1778 1778 1779 1779 Identifier m_ident; … … 1781 1781 RefPtr<ExpressionNode> m_init; 1782 1782 1783 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1784 virtual RegisterID* emitCodeSingle(CodeGenerator&) KJS_FAST_CALL;1783 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1784 virtual RegisterID* emitCodeSingle(CodeGenerator&) JSC_FAST_CALL; 1785 1785 }; 1786 1786 1787 1787 class ConstStatementNode : public StatementNode { 1788 1788 public: 1789 ConstStatementNode(JSGlobalData* globalData, ConstDeclNode* next) KJS_FAST_CALL1789 ConstStatementNode(JSGlobalData* globalData, ConstDeclNode* next) JSC_FAST_CALL 1790 1790 : StatementNode(globalData) 1791 1791 , m_next(next) … … 1793 1793 } 1794 1794 1795 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1795 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1796 1796 1797 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1797 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1798 1798 1799 1799 private: … … 1820 1820 class BlockNode : public StatementNode { 1821 1821 public: 1822 BlockNode(JSGlobalData*, SourceElements* children) KJS_FAST_CALL;1823 1824 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1825 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1822 BlockNode(JSGlobalData*, SourceElements* children) JSC_FAST_CALL; 1823 1824 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1825 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1826 1826 1827 1827 StatementVector& children() { return m_children; } … … 1833 1833 class EmptyStatementNode : public StatementNode { 1834 1834 public: 1835 EmptyStatementNode(JSGlobalData* globalData) KJS_FAST_CALL // debug1835 EmptyStatementNode(JSGlobalData* globalData) JSC_FAST_CALL // debug 1836 1836 : StatementNode(globalData) 1837 1837 { 1838 1838 } 1839 1839 1840 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1841 1842 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1843 virtual bool isEmptyStatement() const KJS_FAST_CALL { return true; }1840 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1841 1842 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1843 virtual bool isEmptyStatement() const JSC_FAST_CALL { return true; } 1844 1844 }; 1845 1845 1846 1846 class DebuggerStatementNode : public StatementNode { 1847 1847 public: 1848 DebuggerStatementNode(JSGlobalData* globalData) KJS_FAST_CALL1848 DebuggerStatementNode(JSGlobalData* globalData) JSC_FAST_CALL 1849 1849 : StatementNode(globalData) 1850 1850 { 1851 1851 } 1852 1852 1853 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1854 1855 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1853 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1854 1855 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1856 1856 }; 1857 1857 1858 1858 class ExprStatementNode : public StatementNode { 1859 1859 public: 1860 ExprStatementNode(JSGlobalData* globalData, ExpressionNode* expr) KJS_FAST_CALL1860 ExprStatementNode(JSGlobalData* globalData, ExpressionNode* expr) JSC_FAST_CALL 1861 1861 : StatementNode(globalData) 1862 1862 , m_expr(expr) … … 1864 1864 } 1865 1865 1866 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1867 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1866 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1867 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1868 1868 1869 1869 private: … … 1873 1873 class VarStatementNode : public StatementNode { 1874 1874 public: 1875 VarStatementNode(JSGlobalData* globalData, ExpressionNode* expr) KJS_FAST_CALL1875 VarStatementNode(JSGlobalData* globalData, ExpressionNode* expr) JSC_FAST_CALL 1876 1876 : StatementNode(globalData) 1877 1877 , m_expr(expr) … … 1879 1879 } 1880 1880 1881 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1882 1883 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1881 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1882 1883 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1884 1884 1885 1885 private: … … 1889 1889 class IfNode : public StatementNode { 1890 1890 public: 1891 IfNode(JSGlobalData* globalData, ExpressionNode* condition, StatementNode* ifBlock) KJS_FAST_CALL1891 IfNode(JSGlobalData* globalData, ExpressionNode* condition, StatementNode* ifBlock) JSC_FAST_CALL 1892 1892 : StatementNode(globalData) 1893 1893 , m_condition(condition) … … 1896 1896 } 1897 1897 1898 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1899 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1898 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1899 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1900 1900 1901 1901 protected: … … 1906 1906 class IfElseNode : public IfNode { 1907 1907 public: 1908 IfElseNode(JSGlobalData* globalData, ExpressionNode* condition, StatementNode* ifBlock, StatementNode* elseBlock) KJS_FAST_CALL1908 IfElseNode(JSGlobalData* globalData, ExpressionNode* condition, StatementNode* ifBlock, StatementNode* elseBlock) JSC_FAST_CALL 1909 1909 : IfNode(globalData, condition, ifBlock) 1910 1910 , m_elseBlock(elseBlock) … … 1912 1912 } 1913 1913 1914 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1915 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1914 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1915 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1916 1916 1917 1917 private: … … 1921 1921 class DoWhileNode : public StatementNode { 1922 1922 public: 1923 DoWhileNode(JSGlobalData* globalData, StatementNode* statement, ExpressionNode* expr) KJS_FAST_CALL1923 DoWhileNode(JSGlobalData* globalData, StatementNode* statement, ExpressionNode* expr) JSC_FAST_CALL 1924 1924 : StatementNode(globalData) 1925 1925 , m_statement(statement) … … 1928 1928 } 1929 1929 1930 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1931 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1930 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1931 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1932 1932 1933 1933 private: … … 1938 1938 class WhileNode : public StatementNode { 1939 1939 public: 1940 WhileNode(JSGlobalData* globalData, ExpressionNode* expr, StatementNode* statement) KJS_FAST_CALL1940 WhileNode(JSGlobalData* globalData, ExpressionNode* expr, StatementNode* statement) JSC_FAST_CALL 1941 1941 : StatementNode(globalData) 1942 1942 , m_expr(expr) … … 1945 1945 } 1946 1946 1947 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1948 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1947 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1948 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1949 1949 1950 1950 private: … … 1955 1955 class ForNode : public StatementNode { 1956 1956 public: 1957 ForNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, ExpressionNode* expr3, StatementNode* statement, bool expr1WasVarDecl) KJS_FAST_CALL1957 ForNode(JSGlobalData* globalData, ExpressionNode* expr1, ExpressionNode* expr2, ExpressionNode* expr3, StatementNode* statement, bool expr1WasVarDecl) JSC_FAST_CALL 1958 1958 : StatementNode(globalData) 1959 1959 , m_expr1(expr1) … … 1966 1966 } 1967 1967 1968 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1969 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1968 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1969 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1970 1970 1971 1971 private: … … 1979 1979 class ForInNode : public StatementNode, public ThrowableExpressionData { 1980 1980 public: 1981 ForInNode(JSGlobalData*, ExpressionNode*, ExpressionNode*, StatementNode*) KJS_FAST_CALL;1982 ForInNode(JSGlobalData*, const Identifier&, ExpressionNode*, ExpressionNode*, StatementNode*, int divot, int startOffset, int endOffset) KJS_FAST_CALL;1981 ForInNode(JSGlobalData*, ExpressionNode*, ExpressionNode*, StatementNode*) JSC_FAST_CALL; 1982 ForInNode(JSGlobalData*, const Identifier&, ExpressionNode*, ExpressionNode*, StatementNode*, int divot, int startOffset, int endOffset) JSC_FAST_CALL; 1983 1983 1984 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;1985 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;1984 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 1985 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 1986 1986 1987 1987 private: … … 1996 1996 class ContinueNode : public StatementNode, public ThrowableExpressionData { 1997 1997 public: 1998 ContinueNode(JSGlobalData* globalData) KJS_FAST_CALL1998 ContinueNode(JSGlobalData* globalData) JSC_FAST_CALL 1999 1999 : StatementNode(globalData) 2000 2000 { 2001 2001 } 2002 2002 2003 ContinueNode(JSGlobalData* globalData, const Identifier& ident) KJS_FAST_CALL2003 ContinueNode(JSGlobalData* globalData, const Identifier& ident) JSC_FAST_CALL 2004 2004 : StatementNode(globalData) 2005 2005 , m_ident(ident) … … 2007 2007 } 2008 2008 2009 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;2010 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;2009 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 2010 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 2011 2011 2012 2012 private: … … 2016 2016 class BreakNode : public StatementNode, public ThrowableExpressionData { 2017 2017 public: 2018 BreakNode(JSGlobalData* globalData) KJS_FAST_CALL2018 BreakNode(JSGlobalData* globalData) JSC_FAST_CALL 2019 2019 : StatementNode(globalData) 2020 2020 { 2021 2021 } 2022 2022 2023 BreakNode(JSGlobalData* globalData, const Identifier& ident) KJS_FAST_CALL2023 BreakNode(JSGlobalData* globalData, const Identifier& ident) JSC_FAST_CALL 2024 2024 : StatementNode(globalData) 2025 2025 , m_ident(ident) … … 2027 2027 } 2028 2028 2029 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;2030 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;2029 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 2030 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 2031 2031 2032 2032 private: … … 2036 2036 class ReturnNode : public StatementNode, public ThrowableExpressionData { 2037 2037 public: 2038 ReturnNode(JSGlobalData* globalData, ExpressionNode* value) KJS_FAST_CALL2038 ReturnNode(JSGlobalData* globalData, ExpressionNode* value) JSC_FAST_CALL 2039 2039 : StatementNode(globalData) 2040 2040 , m_value(value) … … 2042 2042 } 2043 2043 2044 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;2045 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;2046 virtual bool isReturnNode() const KJS_FAST_CALL { return true; }2044 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 2045 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 2046 virtual bool isReturnNode() const JSC_FAST_CALL { return true; } 2047 2047 2048 2048 private: … … 2052 2052 class WithNode : public StatementNode { 2053 2053 public: 2054 WithNode(JSGlobalData* globalData, ExpressionNode* expr, StatementNode* statement, uint32_t divot, uint32_t expressionLength) KJS_FAST_CALL2054 WithNode(JSGlobalData* globalData, ExpressionNode* expr, StatementNode* statement, uint32_t divot, uint32_t expressionLength) JSC_FAST_CALL 2055 2055 : StatementNode(globalData) 2056 2056 , m_expr(expr) … … 2061 2061 } 2062 2062 2063 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;2064 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;2063 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 2064 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 2065 2065 2066 2066 private: … … 2073 2073 class LabelNode : public StatementNode, public ThrowableExpressionData { 2074 2074 public: 2075 LabelNode(JSGlobalData* globalData, const Identifier& label, StatementNode* statement) KJS_FAST_CALL2075 LabelNode(JSGlobalData* globalData, const Identifier& label, StatementNode* statement) JSC_FAST_CALL 2076 2076 : StatementNode(globalData) 2077 2077 , m_label(label) … … 2080 2080 } 2081 2081 2082 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;2083 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;2084 virtual void pushLabel(const Identifier& ident) KJS_FAST_CALL { m_statement->pushLabel(ident); }2082 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 2083 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 2084 virtual void pushLabel(const Identifier& ident) JSC_FAST_CALL { m_statement->pushLabel(ident); } 2085 2085 2086 2086 private: … … 2091 2091 class ThrowNode : public StatementNode, public ThrowableExpressionData { 2092 2092 public: 2093 ThrowNode(JSGlobalData* globalData, ExpressionNode* expr) KJS_FAST_CALL2093 ThrowNode(JSGlobalData* globalData, ExpressionNode* expr) JSC_FAST_CALL 2094 2094 : StatementNode(globalData) 2095 2095 , m_expr(expr) … … 2097 2097 } 2098 2098 2099 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;2100 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;2099 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 2100 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 2101 2101 2102 2102 private: … … 2106 2106 class TryNode : public StatementNode { 2107 2107 public: 2108 TryNode(JSGlobalData* globalData, StatementNode* tryBlock, const Identifier& exceptionIdent, StatementNode* catchBlock, StatementNode* finallyBlock) KJS_FAST_CALL2108 TryNode(JSGlobalData* globalData, StatementNode* tryBlock, const Identifier& exceptionIdent, StatementNode* catchBlock, StatementNode* finallyBlock) JSC_FAST_CALL 2109 2109 : StatementNode(globalData) 2110 2110 , m_tryBlock(tryBlock) … … 2115 2115 } 2116 2116 2117 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;2118 2119 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* dst = 0) KJS_FAST_CALL;2117 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 2118 2119 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* dst = 0) JSC_FAST_CALL; 2120 2120 2121 2121 private: … … 2128 2128 class ParameterNode : public Node { 2129 2129 public: 2130 ParameterNode(JSGlobalData* globalData, const Identifier& ident) KJS_FAST_CALL2130 ParameterNode(JSGlobalData* globalData, const Identifier& ident) JSC_FAST_CALL 2131 2131 : Node(globalData) 2132 2132 , m_ident(ident) … … 2134 2134 } 2135 2135 2136 ParameterNode(JSGlobalData* globalData, ParameterNode* l, const Identifier& ident) KJS_FAST_CALL2136 ParameterNode(JSGlobalData* globalData, ParameterNode* l, const Identifier& ident) JSC_FAST_CALL 2137 2137 : Node(globalData) 2138 2138 , m_ident(ident) … … 2141 2141 } 2142 2142 2143 Identifier ident() KJS_FAST_CALL { return m_ident; }2144 ParameterNode *nextParam() KJS_FAST_CALL { return m_next.get(); }2145 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;2146 PassRefPtr<ParameterNode> releaseNext() KJS_FAST_CALL { return m_next.release(); }2143 Identifier ident() JSC_FAST_CALL { return m_ident; } 2144 ParameterNode *nextParam() JSC_FAST_CALL { return m_next.get(); } 2145 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 2146 PassRefPtr<ParameterNode> releaseNext() JSC_FAST_CALL { return m_next.release(); } 2147 2147 virtual Precedence precedence() const { ASSERT_NOT_REACHED(); return PrecExpression; } 2148 2148 … … 2156 2156 class ScopeNode : public BlockNode { 2157 2157 public: 2158 ScopeNode(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, bool usesEval, bool needsClosure, int numConstants) KJS_FAST_CALL;2159 2160 int sourceId() const KJS_FAST_CALL { return m_sourceId; }2161 const UString& sourceURL() const KJS_FAST_CALL { return m_sourceURL; }2162 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;2158 ScopeNode(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, bool usesEval, bool needsClosure, int numConstants) JSC_FAST_CALL; 2159 2160 int sourceId() const JSC_FAST_CALL { return m_sourceId; } 2161 const UString& sourceURL() const JSC_FAST_CALL { return m_sourceURL; } 2162 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 2163 2163 2164 2164 bool usesEval() const { return m_usesEval; } … … 2189 2189 class ProgramNode : public ScopeNode { 2190 2190 public: 2191 static ProgramNode* create(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, SourceProvider*, bool usesEval, bool needsClosure, int numConstants) KJS_FAST_CALL;2192 2193 ProgramCodeBlock& byteCode(ScopeChainNode* scopeChain) KJS_FAST_CALL2191 static ProgramNode* create(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, SourceProvider*, bool usesEval, bool needsClosure, int numConstants) JSC_FAST_CALL; 2192 2193 ProgramCodeBlock& byteCode(ScopeChainNode* scopeChain) JSC_FAST_CALL 2194 2194 { 2195 2195 if (!m_code) … … 2199 2199 2200 2200 private: 2201 ProgramNode(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, SourceProvider*, bool usesEval, bool needsClosure, int numConstants) KJS_FAST_CALL;2202 2203 void generateCode(ScopeChainNode*) KJS_FAST_CALL;2204 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;2201 ProgramNode(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, SourceProvider*, bool usesEval, bool needsClosure, int numConstants) JSC_FAST_CALL; 2202 2203 void generateCode(ScopeChainNode*) JSC_FAST_CALL; 2204 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 2205 2205 2206 2206 Vector<size_t> m_varIndexes; // Storage indexes belonging to the nodes in m_varStack. (Recorded to avoid double lookup.) … … 2214 2214 class EvalNode : public ScopeNode { 2215 2215 public: 2216 static EvalNode* create(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, SourceProvider*, bool usesEval, bool needsClosure, int numConstants) KJS_FAST_CALL;2217 2218 EvalCodeBlock& byteCode(ScopeChainNode* scopeChain) KJS_FAST_CALL2216 static EvalNode* create(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, SourceProvider*, bool usesEval, bool needsClosure, int numConstants) JSC_FAST_CALL; 2217 2218 EvalCodeBlock& byteCode(ScopeChainNode* scopeChain) JSC_FAST_CALL 2219 2219 { 2220 2220 if (!m_code) … … 2224 2224 2225 2225 private: 2226 EvalNode(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, SourceProvider*, bool usesEval, bool needsClosure, int numConstants) KJS_FAST_CALL;2227 2228 void generateCode(ScopeChainNode*) KJS_FAST_CALL;2229 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;2226 EvalNode(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, SourceProvider*, bool usesEval, bool needsClosure, int numConstants) JSC_FAST_CALL; 2227 2228 void generateCode(ScopeChainNode*) JSC_FAST_CALL; 2229 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 2230 2230 2231 2231 RefPtr<SourceProvider> m_sourceProvider; … … 2236 2236 class FunctionBodyNode : public ScopeNode { 2237 2237 public: 2238 static FunctionBodyNode* create(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, SourceProvider*, bool usesEval, bool needsClosure, int numConstants) KJS_FAST_CALL;2239 static FunctionBodyNode* create(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, bool usesEval, bool needsClosure, int numConstants) KJS_FAST_CALL;2240 2241 Vector<Identifier>& parameters() KJS_FAST_CALL { return m_parameters; }2242 UString paramString() const KJS_FAST_CALL;2243 2244 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;2238 static FunctionBodyNode* create(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, SourceProvider*, bool usesEval, bool needsClosure, int numConstants) JSC_FAST_CALL; 2239 static FunctionBodyNode* create(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, bool usesEval, bool needsClosure, int numConstants) JSC_FAST_CALL; 2240 2241 Vector<Identifier>& parameters() JSC_FAST_CALL { return m_parameters; } 2242 UString paramString() const JSC_FAST_CALL; 2243 2244 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 2245 2245 2246 2246 SymbolTable& symbolTable() { return m_symbolTable; } // FIXME: Remove this 2247 2247 2248 CodeBlock& byteCode(ScopeChainNode* scopeChain) KJS_FAST_CALL2248 CodeBlock& byteCode(ScopeChainNode* scopeChain) JSC_FAST_CALL 2249 2249 { 2250 2250 ASSERT(scopeChain); … … 2254 2254 } 2255 2255 2256 CodeBlock& generatedByteCode() KJS_FAST_CALL2256 CodeBlock& generatedByteCode() JSC_FAST_CALL 2257 2257 { 2258 2258 ASSERT(m_code); … … 2263 2263 2264 2264 void setSource(const SourceRange& source) { m_source = source; } 2265 UString toSourceString() const KJS_FAST_CALL { return UString("{") + m_source.toString() + UString("}"); }2266 protected: 2267 FunctionBodyNode(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, bool usesEval, bool needsClosure, int numConstants) KJS_FAST_CALL;2268 2269 private: 2270 void generateCode(ScopeChainNode*) KJS_FAST_CALL;2265 UString toSourceString() const JSC_FAST_CALL { return UString("{") + m_source.toString() + UString("}"); } 2266 protected: 2267 FunctionBodyNode(JSGlobalData*, SourceElements*, VarStack*, FunctionStack*, bool usesEval, bool needsClosure, int numConstants) JSC_FAST_CALL; 2268 2269 private: 2270 void generateCode(ScopeChainNode*) JSC_FAST_CALL; 2271 2271 2272 2272 Vector<Identifier> m_parameters; … … 2278 2278 class FuncExprNode : public ExpressionNode { 2279 2279 public: 2280 FuncExprNode(JSGlobalData* globalData, const Identifier& ident, FunctionBodyNode* body, const SourceRange& source, ParameterNode* parameter = 0) KJS_FAST_CALL2280 FuncExprNode(JSGlobalData* globalData, const Identifier& ident, FunctionBodyNode* body, const SourceRange& source, ParameterNode* parameter = 0) JSC_FAST_CALL 2281 2281 : ExpressionNode(globalData) 2282 2282 , m_ident(ident) … … 2288 2288 } 2289 2289 2290 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;2291 JSFunction* makeFunction(ExecState*, ScopeChainNode*) KJS_FAST_CALL;2292 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;2290 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 2291 JSFunction* makeFunction(ExecState*, ScopeChainNode*) JSC_FAST_CALL; 2292 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 2293 2293 virtual Precedence precedence() const { return PrecMember; } 2294 2294 virtual bool needsParensIfLeftmost() const { return true; } … … 2297 2297 2298 2298 private: 2299 void addParams() KJS_FAST_CALL;2299 void addParams() JSC_FAST_CALL; 2300 2300 2301 2301 // Used for streamTo … … 2308 2308 class FuncDeclNode : public StatementNode { 2309 2309 public: 2310 FuncDeclNode(JSGlobalData* globalData, const Identifier& ident, FunctionBodyNode* body, const SourceRange& source, ParameterNode* parameter = 0) KJS_FAST_CALL2310 FuncDeclNode(JSGlobalData* globalData, const Identifier& ident, FunctionBodyNode* body, const SourceRange& source, ParameterNode* parameter = 0) JSC_FAST_CALL 2311 2311 : StatementNode(globalData) 2312 2312 , m_ident(ident) … … 2318 2318 } 2319 2319 2320 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;2321 2322 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;2323 JSFunction* makeFunction(ExecState*, ScopeChainNode*) KJS_FAST_CALL;2320 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 2321 2322 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 2323 JSFunction* makeFunction(ExecState*, ScopeChainNode*) JSC_FAST_CALL; 2324 2324 2325 2325 Identifier m_ident; … … 2328 2328 2329 2329 private: 2330 void addParams() KJS_FAST_CALL;2330 void addParams() JSC_FAST_CALL; 2331 2331 2332 2332 RefPtr<ParameterNode> m_parameter; … … 2336 2336 class CaseClauseNode : public Node { 2337 2337 public: 2338 CaseClauseNode(JSGlobalData* globalData, ExpressionNode* expr) KJS_FAST_CALL2338 CaseClauseNode(JSGlobalData* globalData, ExpressionNode* expr) JSC_FAST_CALL 2339 2339 : Node(globalData) 2340 2340 , m_expr(expr) … … 2342 2342 } 2343 2343 2344 CaseClauseNode(JSGlobalData* globalData, ExpressionNode* expr, SourceElements* children) KJS_FAST_CALL2344 CaseClauseNode(JSGlobalData* globalData, ExpressionNode* expr, SourceElements* children) JSC_FAST_CALL 2345 2345 : Node(globalData) 2346 2346 , m_expr(expr) … … 2350 2350 } 2351 2351 2352 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;2352 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 2353 2353 virtual Precedence precedence() const { ASSERT_NOT_REACHED(); return PrecExpression; } 2354 2354 … … 2363 2363 class ClauseListNode : public Node { 2364 2364 public: 2365 ClauseListNode(JSGlobalData* globalData, CaseClauseNode* clause) KJS_FAST_CALL2365 ClauseListNode(JSGlobalData* globalData, CaseClauseNode* clause) JSC_FAST_CALL 2366 2366 : Node(globalData) 2367 2367 , m_clause(clause) … … 2369 2369 } 2370 2370 2371 ClauseListNode(JSGlobalData* globalData, ClauseListNode* clauseList, CaseClauseNode* clause) KJS_FAST_CALL2371 ClauseListNode(JSGlobalData* globalData, ClauseListNode* clauseList, CaseClauseNode* clause) JSC_FAST_CALL 2372 2372 : Node(globalData) 2373 2373 , m_clause(clause) … … 2376 2376 } 2377 2377 2378 CaseClauseNode* getClause() const KJS_FAST_CALL { return m_clause.get(); }2379 ClauseListNode* getNext() const KJS_FAST_CALL { return m_next.get(); }2380 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;2381 PassRefPtr<ClauseListNode> releaseNext() KJS_FAST_CALL { return m_next.release(); }2378 CaseClauseNode* getClause() const JSC_FAST_CALL { return m_clause.get(); } 2379 ClauseListNode* getNext() const JSC_FAST_CALL { return m_next.get(); } 2380 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 2381 PassRefPtr<ClauseListNode> releaseNext() JSC_FAST_CALL { return m_next.release(); } 2382 2382 virtual Precedence precedence() const { ASSERT_NOT_REACHED(); return PrecExpression; } 2383 2383 … … 2390 2390 class CaseBlockNode : public Node { 2391 2391 public: 2392 CaseBlockNode(JSGlobalData* globalData, ClauseListNode* list1, CaseClauseNode* defaultClause, ClauseListNode* list2) KJS_FAST_CALL2392 CaseBlockNode(JSGlobalData* globalData, ClauseListNode* list1, CaseClauseNode* defaultClause, ClauseListNode* list2) JSC_FAST_CALL 2393 2393 : Node(globalData) 2394 2394 , m_list1(list1) … … 2398 2398 } 2399 2399 2400 RegisterID* emitCodeForBlock(CodeGenerator&, RegisterID* input, RegisterID* dst = 0) KJS_FAST_CALL;2401 2402 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;2400 RegisterID* emitCodeForBlock(CodeGenerator&, RegisterID* input, RegisterID* dst = 0) JSC_FAST_CALL; 2401 2402 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 2403 2403 virtual Precedence precedence() const { ASSERT_NOT_REACHED(); return PrecExpression; } 2404 2404 … … 2412 2412 class SwitchNode : public StatementNode { 2413 2413 public: 2414 SwitchNode(JSGlobalData* globalData, ExpressionNode* expr, CaseBlockNode* block) KJS_FAST_CALL2414 SwitchNode(JSGlobalData* globalData, ExpressionNode* expr, CaseBlockNode* block) JSC_FAST_CALL 2415 2415 : StatementNode(globalData) 2416 2416 , m_expr(expr) … … 2419 2419 } 2420 2420 2421 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) KJS_FAST_CALL;2422 2423 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;2421 virtual RegisterID* emitCode(CodeGenerator&, RegisterID* = 0) JSC_FAST_CALL; 2422 2423 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 2424 2424 2425 2425 private: … … 2430 2430 class BreakpointCheckStatement : public StatementNode { 2431 2431 public: 2432 BreakpointCheckStatement(JSGlobalData*, PassRefPtr<StatementNode>) KJS_FAST_CALL;2433 2434 virtual void streamTo(SourceStream&) const KJS_FAST_CALL;2432 BreakpointCheckStatement(JSGlobalData*, PassRefPtr<StatementNode>) JSC_FAST_CALL; 2433 2434 virtual void streamTo(SourceStream&) const JSC_FAST_CALL; 2435 2435 2436 2436 private: -
trunk/WebCore/ChangeLog
r36263 r36264 1 2008-09-07 Cameron Zwarich <cwzwarich@uwaterloo.ca> 2 3 Reviewed by Oliver Hunt. 4 5 Bug 20711: Change KJS prefix on preprocessor macros to JSC 6 <https://bugs.webkit.org/show_bug.cgi?id=20711> 7 8 * bindings/js/JSEventTargetBase.h: 9 * bindings/js/JSHTMLInputElementBase.cpp: 10 * bindings/js/JSHTMLInputElementBase.h: 11 * bindings/scripts/CodeGeneratorJS.pm: 12 1 13 2008-09-07 Cameron Zwarich <cwzwarich@uwaterloo.ca> 2 14 -
trunk/WebCore/bindings/js/JSEventTargetBase.h
r36263 r36264 101 101 }; 102 102 103 // This class is a modified version of the code the KJS_DEFINE_PROTOTYPE_WITH_PROTOTYPE104 // and KJS_IMPLEMENT_PROTOTYPE macros produce - the idea is that classes like JSEventTargetNode103 // This class is a modified version of the code the JSC_DEFINE_PROTOTYPE_WITH_PROTOTYPE 104 // and JSC_IMPLEMENT_PROTOTYPE macros produce - the idea is that classes like JSEventTargetNode 105 105 // and JSEventTargetSVGElementInstance can share a single prototype just differing in the 106 106 // naming "EventTargetNodePrototype" vs "EventTargetSVGElementInstancePrototype". Above mentioned -
trunk/WebCore/bindings/js/JSHTMLInputElementBase.cpp
r36263 r36264 49 49 */ 50 50 51 KJS_IMPLEMENT_PROTOTYPE("HTMLInputElementBase", JSHTMLInputElementBasePrototype)51 JSC_IMPLEMENT_PROTOTYPE("HTMLInputElementBase", JSHTMLInputElementBasePrototype) 52 52 53 53 // SetSelectionRange is implemented on the class instead of on the prototype -
trunk/WebCore/bindings/js/JSHTMLInputElementBase.h
r36263 r36264 28 28 class HTMLInputElement; 29 29 30 KJS_DEFINE_PROTOTYPE_WITH_PROTOTYPE(JSHTMLInputElementBasePrototype, JSHTMLElementPrototype)30 JSC_DEFINE_PROTOTYPE_WITH_PROTOTYPE(JSHTMLInputElementBasePrototype, JSHTMLElementPrototype) 31 31 32 32 class JSHTMLInputElementBase : public JSHTMLElement { -
trunk/WebCore/bindings/scripts/CodeGeneratorJS.pm
r36263 r36264 637 637 push(@headerContent, "\n"); 638 638 639 # Add prototype declaration -- code adopted from the KJS_DEFINE_PROTOTYPE and KJS_DEFINE_PROTOTYPE_WITH_PROTOTYPE macros639 # Add prototype declaration -- code adopted from the JSC_DEFINE_PROTOTYPE and JSC_DEFINE_PROTOTYPE_WITH_PROTOTYPE macros 640 640 push(@headerContent, "class ${className}Prototype : public JSC::JSObject {\n"); 641 641 push(@headerContent, "public:\n");
Note: See TracChangeset
for help on using the changeset viewer.