Changeset 223002 in webkit for trunk/Source/JavaScriptCore/interpreter/CallFrame.cpp
- Timestamp:
- Oct 6, 2017, 3:12:41 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/CallFrame.cpp
r222791 r223002 1 1 /* 2 * Copyright (C) 2008 -2017Apple Inc. All Rights Reserved.2 * Copyright (C) 2008, 2013-2014, 2016 Apple Inc. All Rights Reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 31 31 #include "Interpreter.h" 32 32 #include "JSCInlines.h" 33 #include "JSWebAssemblyInstance.h"34 33 #include "VMEntryScope.h" 35 34 #include "WasmContext.h" … … 219 218 if (!callee().isWasm()) 220 219 return lexicalGlobalObject(); 221 return vm.wasmContext.load()->globalObject();220 return Wasm::loadContext(vm)->globalObject(); 222 221 #else 223 222 UNUSED_PARAM(vm); … … 239 238 } 240 239 241 CallFrame* CallFrame::callerFrame( EntryFrame*& currEntryFrame)242 { 243 if (callerFrameOr EntryFrame() == currEntryFrame) {244 VMEntryRecord* currVMEntryRecord = vmEntryRecord(curr EntryFrame);245 curr EntryFrame = currVMEntryRecord->prevTopEntryFrame();240 CallFrame* CallFrame::callerFrame(VMEntryFrame*& currVMEntryFrame) 241 { 242 if (callerFrameOrVMEntryFrame() == currVMEntryFrame) { 243 VMEntryRecord* currVMEntryRecord = vmEntryRecord(currVMEntryFrame); 244 currVMEntryFrame = currVMEntryRecord->prevTopVMEntryFrame(); 246 245 return currVMEntryRecord->prevTopCallFrame(); 247 246 } 248 return static_cast<CallFrame*>(callerFrameOr EntryFrame());249 } 250 251 SUPPRESS_ASAN CallFrame* CallFrame::unsafeCallerFrame( EntryFrame*& currEntryFrame)252 { 253 if (unsafeCallerFrameOr EntryFrame() == currEntryFrame) {254 VMEntryRecord* currVMEntryRecord = vmEntryRecord(curr EntryFrame);255 curr EntryFrame = currVMEntryRecord->unsafePrevTopEntryFrame();247 return static_cast<CallFrame*>(callerFrameOrVMEntryFrame()); 248 } 249 250 SUPPRESS_ASAN CallFrame* CallFrame::unsafeCallerFrame(VMEntryFrame*& currVMEntryFrame) 251 { 252 if (unsafeCallerFrameOrVMEntryFrame() == currVMEntryFrame) { 253 VMEntryRecord* currVMEntryRecord = vmEntryRecord(currVMEntryFrame); 254 currVMEntryFrame = currVMEntryRecord->unsafePrevTopVMEntryFrame(); 256 255 return currVMEntryRecord->unsafePrevTopCallFrame(); 257 256 } 258 return static_cast<CallFrame*>(unsafeCallerFrameOr EntryFrame());257 return static_cast<CallFrame*>(unsafeCallerFrameOrVMEntryFrame()); 259 258 } 260 259
Note:
See TracChangeset
for help on using the changeset viewer.