Changeset 164835 in webkit for trunk/Source/JavaScriptCore/parser
- Timestamp:
- Feb 27, 2014, 3:25:29 PM (11 years ago)
- Location:
- trunk/Source/JavaScriptCore/parser
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/parser/ASTBuilder.h
r163960 r164835 27 27 #define ASTBuilder_h 28 28 29 #include "BuiltinNames.h" 29 30 #include "NodeConstructors.h" 30 31 #include "SyntaxChecker.h" … … 889 890 DotAccessorNode* dot = static_cast<DotAccessorNode*>(func); 890 891 FunctionCallDotNode* node; 891 if (dot->identifier() == m_vm->propertyNames-> call || dot->identifier() == m_vm->propertyNames->callPrivateName)892 if (dot->identifier() == m_vm->propertyNames->builtinNames().callPublicName() || dot->identifier() == m_vm->propertyNames->builtinNames().callPrivateName()) 892 893 node = new (m_vm) CallFunctionCallDotNode(location, dot->base(), dot->identifier(), args, divot, divotStart, divotEnd); 893 else if (dot->identifier() == m_vm->propertyNames-> apply || dot->identifier() == m_vm->propertyNames->applyPrivateName)894 else if (dot->identifier() == m_vm->propertyNames->builtinNames().applyPublicName() || dot->identifier() == m_vm->propertyNames->builtinNames().applyPrivateName()) 894 895 node = new (m_vm) ApplyFunctionCallDotNode(location, dot->base(), dot->identifier(), args, divot, divotStart, divotEnd); 895 896 else -
trunk/Source/JavaScriptCore/parser/Lexer.cpp
r163960 r164835 28 28 #include "JSFunctionInlines.h" 29 29 30 #include "BuiltinNames.h" 30 31 #include "JSGlobalObjectFunctions.h" 31 32 #include "Identifier.h" … … 766 767 * be used as a safety net while implementing builtins. 767 768 */ 768 if (*ident == vm.propertyNames-> call)769 if (*ident == vm.propertyNames->builtinNames().callPublicName()) 769 770 return false; 770 if (*ident == vm.propertyNames-> apply)771 if (*ident == vm.propertyNames->builtinNames().applyPublicName()) 771 772 return false; 772 773 if (*ident == vm.propertyNames->eval)
Note:
See TracChangeset
for help on using the changeset viewer.