Changeset 251475 in webkit for trunk/Source/JavaScriptCore/interpreter
- Timestamp:
- Oct 22, 2019, 10:16:51 PM (6 years ago)
- Location:
- trunk/Source/JavaScriptCore/interpreter
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/CallFrame.cpp
r251468 r251475 28 28 29 29 #include "CodeBlock.h" 30 #include "ExecutableAllocator.h" 30 31 #include "InlineCallFrame.h" 31 32 #include "Interpreter.h" 32 33 #include "JSCInlines.h" 33 34 #include "JSWebAssemblyInstance.h" 35 #include "LLIntPCRanges.h" 34 36 #include "VMEntryScope.h" 35 37 #include "WasmContextInlines.h" … … 356 358 } 357 359 360 bool isFromJSCode(void* returnAddress) 361 { 362 UNUSED_PARAM(returnAddress); 363 #if ENABLE(JIT) 364 if (isJITPC(returnAddress)) 365 return true; 366 #endif 367 #if ENABLE(C_LOOP) 368 return true; 369 #else 370 return LLInt::isLLIntPC(returnAddress); 371 #endif 372 } 373 358 374 } // namespace JSC -
trunk/Source/JavaScriptCore/interpreter/CallFrame.h
r251468 r251475 325 325 // Helper function to get VM& from JSGlobalObject* if JSGlobalObject.h is not included. 326 326 VM& getVM(JSGlobalObject*); 327 328 #if COMPILER(GCC_COMPATIBLE) && (CPU(ARM64) || CPU(X86_64)) && (OS(LINUX) || OS(DARWIN)) 329 #define DECLARE_CALL_FRAME(vm) (bitwise_cast<JSC::CallFrame*>(__builtin_frame_address(1))) 327 JS_EXPORT_PRIVATE bool isFromJSCode(void* returnAddress); 328 329 #if USE(BUILTIN_FRAME_ADDRESS) 330 #define DECLARE_CALL_FRAME(vm) \ 331 ({ \ 332 ASSERT(JSC::isFromJSCode(removeCodePtrTag<void*>(__builtin_return_address(0)))); \ 333 bitwise_cast<JSC::CallFrame*>(__builtin_frame_address(1)); \ 334 }) 330 335 #else 331 336 #define DECLARE_CALL_FRAME(vm) ((vm).topCallFrame)
Note:
See TracChangeset
for help on using the changeset viewer.