diff options
Diffstat (limited to 'deps/v8/src/ic/access-compiler.cc')
-rw-r--r-- | deps/v8/src/ic/access-compiler.cc | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/deps/v8/src/ic/access-compiler.cc b/deps/v8/src/ic/access-compiler.cc index bb6b5e50d9..d92f9c0c53 100644 --- a/deps/v8/src/ic/access-compiler.cc +++ b/deps/v8/src/ic/access-compiler.cc @@ -4,7 +4,6 @@ #include "src/ic/access-compiler.h" - namespace v8 { namespace internal { @@ -42,13 +41,17 @@ void PropertyAccessCompiler::TailCallBuiltin(MacroAssembler* masm, GenerateTailCall(masm, code); } - -Register* PropertyAccessCompiler::GetCallingConvention(Code::Kind kind) { +Register* PropertyAccessCompiler::GetCallingConvention(Isolate* isolate, + Code::Kind kind) { + AccessCompilerData* data = isolate->access_compiler_data(); + if (!data->IsInitialized()) { + InitializePlatformSpecific(data); + } if (kind == Code::LOAD_IC || kind == Code::KEYED_LOAD_IC) { - return load_calling_convention(); + return data->load_calling_convention(); } DCHECK(kind == Code::STORE_IC || kind == Code::KEYED_STORE_IC); - return store_calling_convention(); + return data->store_calling_convention(); } |