Changeset 241557 in webkit for trunk/Source/JavaScriptCore/runtime/VM.cpp
- Timestamp:
- Feb 14, 2019, 11:10:15 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/runtime/VM.cpp
r241038 r241557 689 689 } 690 690 691 static Ref<NativeJITCode> jitCodeForCallTrampoline() 692 { 693 static NativeJITCode* result; 694 static std::once_flag onceKey; 695 std::call_once(onceKey, [&] { 696 result = new NativeJITCode(LLInt::getCodeRef<JSEntryPtrTag>(llint_native_call_trampoline), JITCode::HostCallThunk, NoIntrinsic); 697 }); 698 return makeRef(*result); 699 } 700 701 static Ref<NativeJITCode> jitCodeForConstructTrampoline() 702 { 703 static NativeJITCode* result; 704 static std::once_flag onceKey; 705 std::call_once(onceKey, [&] { 706 result = new NativeJITCode(LLInt::getCodeRef<JSEntryPtrTag>(llint_native_construct_trampoline), JITCode::HostCallThunk, NoIntrinsic); 707 }); 708 return makeRef(*result); 709 } 710 691 711 NativeExecutable* VM::getHostFunction(NativeFunction function, Intrinsic intrinsic, NativeFunction constructor, const DOMJIT::Signature* signature, const String& name) 692 712 { … … 701 721 UNUSED_PARAM(intrinsic); 702 722 UNUSED_PARAM(signature); 703 704 return NativeExecutable::create(*this, 705 adoptRef(*new NativeJITCode(LLInt::getCodeRef<JSEntryPtrTag>(llint_native_call_trampoline), JITCode::HostCallThunk, NoIntrinsic)), function, 706 adoptRef(*new NativeJITCode(LLInt::getCodeRef<JSEntryPtrTag>(llint_native_construct_trampoline), JITCode::HostCallThunk, NoIntrinsic)), constructor, 707 name); 723 return NativeExecutable::create(*this, jitCodeForCallTrampoline(), function, jitCodeForConstructTrampoline(), constructor, name); 708 724 } 709 725
Note:
See TracChangeset
for help on using the changeset viewer.