From e97f597201d1f04c4db5237f259fc699120c8e77 Mon Sep 17 00:00:00 2001 From: "palfia@homejinni.com" Date: Mon, 17 Feb 2014 20:37:29 +0000 Subject: [PATCH] MIPS: Remove arch specific api callback generate functions. Port r19406 (4eab88a) BUG= R=gergely@homejinni.com Review URL: https://codereview.chromium.org/169243003 Patch from Balazs Kilvady . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19421 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/mips/stub-cache-mips.cc | 43 ++++++++----------------------------------- 1 file changed, 8 insertions(+), 35 deletions(-) diff --git a/src/mips/stub-cache-mips.cc b/src/mips/stub-cache-mips.cc index 3d0e1fc..faed0c4 100644 --- a/src/mips/stub-cache-mips.cc +++ b/src/mips/stub-cache-mips.cc @@ -770,14 +770,14 @@ static void CompileCallLoadPropertyWithInterceptor( // Generate call to api function. -static void GenerateFastApiCall(MacroAssembler* masm, - const CallOptimization& optimization, - Handle receiver_map, - Register receiver, - Register scratch_in, - bool is_store, - int argc, - Register* values) { +void StubCompiler::GenerateFastApiCall(MacroAssembler* masm, + const CallOptimization& optimization, + Handle receiver_map, + Register receiver, + Register scratch_in, + bool is_store, + int argc, + Register* values) { ASSERT(!receiver.is(scratch_in)); // Preparing to push, adjust sp. __ Subu(sp, sp, Operand((argc + 1) * kPointerSize)); @@ -1065,15 +1065,6 @@ void LoadStubCompiler::GenerateLoadConstant(Handle value) { void LoadStubCompiler::GenerateLoadCallback( - const CallOptimization& call_optimization, - Handle receiver_map) { - GenerateFastApiCall( - masm(), call_optimization, receiver_map, - receiver(), scratch3(), false, 0, NULL); -} - - -void LoadStubCompiler::GenerateLoadCallback( Register reg, Handle callback) { // Build AccessorInfo::args_ list on the stack and push property name below @@ -1247,24 +1238,6 @@ Handle StoreStubCompiler::CompileStoreCallback( } -Handle StoreStubCompiler::CompileStoreCallback( - Handle object, - Handle holder, - Handle name, - const CallOptimization& call_optimization) { - HandlerFrontend(IC::CurrentTypeOf(object, isolate()), - receiver(), holder, name); - - Register values[] = { value() }; - GenerateFastApiCall( - masm(), call_optimization, handle(object->map()), - receiver(), scratch3(), true, 1, values); - - // Return the generated code. - return GetCode(kind(), Code::FAST, name); -} - - #undef __ #define __ ACCESS_MASM(masm) -- 2.7.4