Changeset 184868 in webkit for trunk/Source/JavaScriptCore


Ignore:
Timestamp:
May 26, 2015, 12:47:56 PM (10 years ago)
Author:
Yusuke Suzuki
Message:

Inline @Array / @Object callsites
https://bugs.webkit.org/show_bug.cgi?id=145382

Reviewed by Geoffrey Garen.

As the same to Array/Object callsite inlining, @Array/@Object also
should be inlined in bytecode level.
While new @Object style is not encouraged in the builtins,
@Array(len) is already used at least in Array.from code.

  • bytecompiler/BytecodeGenerator.cpp:

(JSC::BytecodeGenerator::expectedFunctionForIdentifier):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/ChangeLog

    r184866 r184868  
     12015-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
    1162015-05-26  Andreas Kling  <[email protected]>
    217
  • trunk/Source/JavaScriptCore/bytecompiler/BytecodeGenerator.cpp

    r184859 r184868  
    18451845ExpectedFunction BytecodeGenerator::expectedFunctionForIdentifier(const Identifier& identifier)
    18461846{
    1847     if (identifier == m_vm->propertyNames->Object)
     1847    if (identifier == m_vm->propertyNames->Object || identifier == m_vm->propertyNames->ObjectPrivateName)
    18481848        return ExpectObjectConstructor;
    1849     if (identifier == m_vm->propertyNames->Array)
     1849    if (identifier == m_vm->propertyNames->Array || identifier == m_vm->propertyNames->ArrayPrivateName)
    18501850        return ExpectArrayConstructor;
    18511851    return NoExpectedFunction;
Note: See TracChangeset for help on using the changeset viewer.