Changeset 229302 in webkit
- Timestamp:
- Mar 5, 2018 7:03:01 PM (6 years ago)
- Location:
- trunk/Source/JavaScriptCore
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/ChangeLog
r229293 r229302 1 2018-03-05 Mark Lam <mark.lam@apple.com> 2 3 JITThunk functions should only be called when the JIT is enabled. 4 https://bugs.webkit.org/show_bug.cgi?id=183351 5 <rdar://problem/38160091> 6 7 Reviewed by Keith Miller. 8 9 * jit/JITThunks.cpp: 10 (JSC::JITThunks::ctiNativeCall): 11 (JSC::JITThunks::ctiNativeConstruct): 12 (JSC::JITThunks::ctiInternalFunctionCall): 13 (JSC::JITThunks::ctiInternalFunctionConstruct): 14 * runtime/VM.cpp: 15 (JSC::VM::VM): 16 (JSC::VM::getCTIInternalFunctionTrampolineFor): 17 1 18 2018-03-05 Mark Lam <mark.lam@apple.com> 2 19 -
trunk/Source/JavaScriptCore/jit/JITThunks.cpp
r226011 r229302 1 1 /* 2 * Copyright (C) 2012 , 2013, 2015-2016Apple Inc. All rights reserved.2 * Copyright (C) 2012-2018 Apple Inc. All rights reserved. 3 3 * 4 4 * Redistribution and use in source and binary forms, with or without … … 48 48 MacroAssemblerCodePtr JITThunks::ctiNativeCall(VM* vm) 49 49 { 50 if (!VM::canUseJIT()) 51 return MacroAssemblerCodePtr::createLLIntCodePtr(llint_native_call_trampoline); 50 ASSERT(VM::canUseJIT()); 52 51 return ctiStub(vm, nativeCallGenerator).code(); 53 52 } … … 55 54 MacroAssemblerCodePtr JITThunks::ctiNativeConstruct(VM* vm) 56 55 { 57 if (!VM::canUseJIT()) 58 return MacroAssemblerCodePtr::createLLIntCodePtr(llint_native_construct_trampoline); 56 ASSERT(VM::canUseJIT()); 59 57 return ctiStub(vm, nativeConstructGenerator).code(); 60 58 } … … 74 72 MacroAssemblerCodePtr JITThunks::ctiInternalFunctionCall(VM* vm) 75 73 { 76 if (!VM::canUseJIT()) 77 return MacroAssemblerCodePtr::createLLIntCodePtr(llint_internal_function_call_trampoline); 74 ASSERT(VM::canUseJIT()); 78 75 return ctiStub(vm, internalFunctionCallGenerator).code(); 79 76 } … … 81 78 MacroAssemblerCodePtr JITThunks::ctiInternalFunctionConstruct(VM* vm) 82 79 { 83 if (!VM::canUseJIT()) 84 return MacroAssemblerCodePtr::createLLIntCodePtr(llint_internal_function_construct_trampoline); 80 ASSERT(VM::canUseJIT()); 85 81 return ctiStub(vm, internalFunctionConstructGenerator).code(); 86 82 } -
trunk/Source/JavaScriptCore/runtime/VM.cpp
r229209 r229302 454 454 } 455 455 456 #if ENABLE(JIT) 456 457 // Make sure that any stubs that the JIT is going to use are initialized in non-compilation threads. 457 getCTIInternalFunctionTrampolineFor(CodeForCall); 458 getCTIInternalFunctionTrampolineFor(CodeForConstruct); 458 if (canUseJIT()) { 459 getCTIInternalFunctionTrampolineFor(CodeForCall); 460 getCTIInternalFunctionTrampolineFor(CodeForConstruct); 461 } 462 #endif 459 463 460 464 VMInspector::instance().add(this); … … 693 697 { 694 698 #if ENABLE(JIT) 695 if (kind == CodeForCall) 696 return jitStubs->ctiInternalFunctionCall(this); 697 return jitStubs->ctiInternalFunctionConstruct(this); 698 #else 699 if (canUseJIT()) { 700 if (kind == CodeForCall) 701 return jitStubs->ctiInternalFunctionCall(this); 702 return jitStubs->ctiInternalFunctionConstruct(this); 703 } 704 #endif 699 705 if (kind == CodeForCall) 700 706 return MacroAssemblerCodePtr::createLLIntCodePtr(llint_internal_function_call_trampoline); 701 707 return MacroAssemblerCodePtr::createLLIntCodePtr(llint_internal_function_construct_trampoline); 702 #endif703 708 } 704 709
Note: See TracChangeset
for help on using the changeset viewer.