diff options
Diffstat (limited to 'deps/v8/src/ic/mips64/handler-compiler-mips64.cc')
-rw-r--r-- | deps/v8/src/ic/mips64/handler-compiler-mips64.cc | 39 |
1 files changed, 16 insertions, 23 deletions
diff --git a/deps/v8/src/ic/mips64/handler-compiler-mips64.cc b/deps/v8/src/ic/mips64/handler-compiler-mips64.cc index d83c807e3c..49e9265aee 100644 --- a/deps/v8/src/ic/mips64/handler-compiler-mips64.cc +++ b/deps/v8/src/ic/mips64/handler-compiler-mips64.cc @@ -2,8 +2,6 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include "src/v8.h" - #if V8_TARGET_ARCH_MIPS64 #include "src/ic/call-optimization.h" @@ -217,10 +215,9 @@ static void PushInterceptorArguments(MacroAssembler* masm, Register receiver, static void CompileCallLoadPropertyWithInterceptor( MacroAssembler* masm, Register receiver, Register holder, Register name, - Handle<JSObject> holder_obj, IC::UtilityId id) { + Handle<JSObject> holder_obj, Runtime::FunctionId id) { PushInterceptorArguments(masm, receiver, holder, name, holder_obj); - __ CallExternalReference(ExternalReference(IC_Utility(id), masm->isolate()), - NamedLoadHandlerCompiler::kInterceptorArgsLength); + __ CallRuntime(id, NamedLoadHandlerCompiler::kInterceptorArgsLength); } @@ -306,9 +303,7 @@ void NamedStoreHandlerCompiler::GenerateSlow(MacroAssembler* masm) { // The slow case calls into the runtime to complete the store without causing // an IC miss that would otherwise cause a transition to the generic stub. - ExternalReference ref = - ExternalReference(IC_Utility(IC::kStoreIC_Slow), masm->isolate()); - __ TailCallExternalReference(ref, 3, 1); + __ TailCallRuntime(Runtime::kStoreIC_Slow, 3, 1); } @@ -319,9 +314,7 @@ void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) { // The slow case calls into the runtime to complete the store without causing // an IC miss that would otherwise cause a transition to the generic stub. - ExternalReference ref = - ExternalReference(IC_Utility(IC::kKeyedStoreIC_Slow), masm->isolate()); - __ TailCallExternalReference(ref, 3, 1); + __ TailCallRuntime(Runtime::kKeyedStoreIC_Slow, 3, 1); } @@ -343,11 +336,17 @@ void NamedStoreHandlerCompiler::GenerateRestoreName(Handle<Name> name) { } +void NamedStoreHandlerCompiler::GeneratePushMap(Register map_reg, + Register scratch) { + DCHECK(false); // Not implemented. +} + + void NamedStoreHandlerCompiler::GenerateRestoreMap(Handle<Map> transition, + Register map_reg, Register scratch, Label* miss) { Handle<WeakCell> cell = Map::WeakCellForMap(transition); - Register map_reg = StoreTransitionDescriptor::MapRegister(); DCHECK(!map_reg.is(scratch)); __ LoadWeakValue(map_reg, cell, miss); if (transition->CanBeDeprecated()) { @@ -657,7 +656,7 @@ void NamedLoadHandlerCompiler::GenerateLoadInterceptorWithFollowup( // of this method). CompileCallLoadPropertyWithInterceptor( masm(), receiver(), holder_reg, this->name(), holder(), - IC::kLoadPropertyWithInterceptorOnly); + Runtime::kLoadPropertyWithInterceptorOnly); // Check if interceptor provided a value for property. If it's // the case, return immediately. @@ -688,10 +687,8 @@ void NamedLoadHandlerCompiler::GenerateLoadInterceptor(Register holder_reg) { PushInterceptorArguments(masm(), receiver(), holder_reg, this->name(), holder()); - ExternalReference ref = ExternalReference( - IC_Utility(IC::kLoadPropertyWithInterceptor), isolate()); - __ TailCallExternalReference( - ref, NamedLoadHandlerCompiler::kInterceptorArgsLength, 1); + __ TailCallRuntime(Runtime::kLoadPropertyWithInterceptor, + NamedLoadHandlerCompiler::kInterceptorArgsLength, 1); } @@ -714,9 +711,7 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreCallback( __ Push(at, value()); // Do tail-call to the runtime system. - ExternalReference store_callback_property = - ExternalReference(IC_Utility(IC::kStoreCallbackProperty), isolate()); - __ TailCallExternalReference(store_callback_property, 5, 1); + __ TailCallRuntime(Runtime::kStoreCallbackProperty, 5, 1); // Return the generated code. return GetCode(kind(), Code::FAST, name); @@ -728,9 +723,7 @@ Handle<Code> NamedStoreHandlerCompiler::CompileStoreInterceptor( __ Push(receiver(), this->name(), value()); // Do tail-call to the runtime system. - ExternalReference store_ic_property = ExternalReference( - IC_Utility(IC::kStorePropertyWithInterceptor), isolate()); - __ TailCallExternalReference(store_ic_property, 3, 1); + __ TailCallRuntime(Runtime::kStorePropertyWithInterceptor, 3, 1); // Return the generated code. return GetCode(kind(), Code::FAST, name); |