Changeset 184868 in webkit for trunk/Source/JavaScriptCore
- Timestamp:
- May 26, 2015, 12:47:56 PM (10 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r184866 r184868 1 2015-05-26 Yusuke Suzuki <[email protected]> 2 3 Inline @Array / @Object callsites 4 https://bugs.webkit.org/show_bug.cgi?id=145382 5 6 Reviewed by Geoffrey Garen. 7 8 As the same to Array/Object callsite inlining, @Array/@Object also 9 should be inlined in bytecode level. 10 While `new @Object` style is not encouraged in the builtins, 11 `@Array(len)` is already used at least in Array.from code. 12 13 * bytecompiler/BytecodeGenerator.cpp: 14 (JSC::BytecodeGenerator::expectedFunctionForIdentifier): 15 1 16 2015-05-26 Andreas Kling <[email protected]> 2 17 -
trunk/Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp
r184859 r184868 1845 1845 ExpectedFunction BytecodeGenerator::expectedFunctionForIdentifier(const Identifier& identifier) 1846 1846 { 1847 if (identifier == m_vm->propertyNames->Object )1847 if (identifier == m_vm->propertyNames->Object || identifier == m_vm->propertyNames->ObjectPrivateName) 1848 1848 return ExpectObjectConstructor; 1849 if (identifier == m_vm->propertyNames->Array )1849 if (identifier == m_vm->propertyNames->Array || identifier == m_vm->propertyNames->ArrayPrivateName) 1850 1850 return ExpectArrayConstructor; 1851 1851 return NoExpectedFunction;
Note:
See TracChangeset
for help on using the changeset viewer.