Ignore:
Timestamp:
Oct 17, 2017, 4:34:29 PM (8 years ago)
Author:
Ryan Haddad
Message:

Unreviewed, rolling out r223523.

A test for this change is failing on debug JSC bots.

Reverted changeset:

"[JSC] proto getter should be fast"
https://bugs.webkit.org/show_bug.cgi?id=178067
https://trac.webkit.org/changeset/223523

File:
1 edited

Legend:

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

    r223523 r223584  
    5353#include "JSFixedArray.h"
    5454#include "JSGenericTypedArrayViewConstructorInlines.h"
    55 #include "JSGlobalObjectFunctions.h"
    5655#include "JSLexicalEnvironment.h"
    5756#include "JSMap.h"
     
    25202519}
    25212520
    2522 EncodedJSValue JIT_OPERATION operationGetPrototypeOfObject(ExecState* exec, JSObject* thisObject)
    2523 {
    2524     VM& vm = exec->vm();
    2525     NativeCallFrameTracer tracer(&vm, exec);
    2526     return JSValue::encode(thisObject->getPrototype(vm, exec));
    2527 }
    2528 
    2529 EncodedJSValue JIT_OPERATION operationGetPrototypeOf(ExecState* exec, EncodedJSValue encodedValue)
    2530 {
    2531     VM& vm = exec->vm();
    2532     NativeCallFrameTracer tracer(&vm, exec);
    2533     auto scope = DECLARE_THROW_SCOPE(vm);
    2534 
    2535     JSValue thisValue = JSValue::decode(encodedValue).toThis(exec, StrictMode);
    2536     if (thisValue.isUndefinedOrNull())
    2537         return throwVMError(exec, scope, createNotAnObjectError(exec, thisValue));
    2538 
    2539     JSObject* thisObject = jsDynamicCast<JSObject*>(vm, thisValue);
    2540     if (!thisObject) {
    2541         JSObject* prototype = thisValue.synthesizePrototype(exec);
    2542         EXCEPTION_ASSERT(!!scope.exception() == !prototype);
    2543         if (UNLIKELY(!prototype))
    2544             return JSValue::encode(JSValue());
    2545         return JSValue::encode(prototype);
    2546     }
    2547 
    2548     scope.release();
    2549     return JSValue::encode(thisObject->getPrototype(vm, exec));
    2550 }
    2551 
    25522521void JIT_OPERATION operationThrowDFG(ExecState* exec, EncodedJSValue valueToThrow)
    25532522{
Note: See TracChangeset for help on using the changeset viewer.