Ignore:
Timestamp:
Sep 22, 2017, 3:25:58 AM (8 years ago)
Author:
Yusuke Suzuki
Message:

Unreviewed, rolling out r222380.
https://bugs.webkit.org/show_bug.cgi?id=177352

Octane/box2d shows 8% regression (Requested by yusukesuzuki on
#webkit).

Reverted changeset:

"[DFG][FTL] Profile array vector length for array allocation"
https://bugs.webkit.org/show_bug.cgi?id=177051
http://trac.webkit.org/changeset/222380

Patch by Commit Queue <[email protected]> on 2017-09-22

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp

    r222380 r222382  
    13121312}
    13131313
    1314 char* JIT_OPERATION operationNewArrayWithSizeAndHint(ExecState* exec, Structure* arrayStructure, int32_t size, int32_t vectorLengthHint, Butterfly* butterfly)
    1315 {
    1316     VM& vm = exec->vm();
    1317     NativeCallFrameTracer tracer(&vm, exec);
    1318     auto scope = DECLARE_THROW_SCOPE(vm);
    1319 
    1320     if (UNLIKELY(size < 0))
    1321         return bitwise_cast<char*>(throwException(exec, scope, createRangeError(exec, ASCIILiteral("Array size is not a small enough positive integer."))));
    1322 
    1323     JSArray* result;
    1324     if (butterfly)
    1325         result = JSArray::createWithButterfly(vm, nullptr, arrayStructure, butterfly);
    1326     else {
    1327         result = JSArray::tryCreate(vm, arrayStructure, size, vectorLengthHint);
    1328         ASSERT(result);
    1329     }
    1330     return bitwise_cast<char*>(result);
    1331 }
    1332 
    13331314char* JIT_OPERATION operationNewArrayBuffer(ExecState* exec, Structure* arrayStructure, size_t start, size_t size)
    13341315{
Note: See TracChangeset for help on using the changeset viewer.