Ignore:
Timestamp:
Jan 25, 2012, 11:43:06 AM (13 years ago)
Author:
[email protected]
Message:

Make DFG update topCallFrame
https://bugs.webkit.org/show_bug.cgi?id=76969

Reviewed by Filip Pizlo.

Add NativeCallFrameTracer to manage topCallFrame assignment
in the DFG operations, and make use of it.

  • dfg/DFGOperations.cpp:

(JSC::DFG::operationPutByValInternal):
():

  • interpreter/Interpreter.h:

(JSC):
(NativeCallFrameTracer):
(JSC::NativeCallFrameTracer::NativeCallFrameTracer):

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/interpreter/Interpreter.h

    r104338 r105905  
    8080        CallFrame* oldCallFrame;
    8181    };
     82   
     83    class NativeCallFrameTracer {
     84    public:
     85        ALWAYS_INLINE NativeCallFrameTracer(JSGlobalData* global, CallFrame* callFrame)
     86        {
     87            ASSERT(global);
     88            ASSERT(callFrame);
     89            global->topCallFrame = callFrame;
     90        }
     91    };
    8292
    8393#if PLATFORM(IOS)
Note: See TracChangeset for help on using the changeset viewer.