Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(127)

Side by Side Diff: src/ic/mips/handler-compiler-mips.cc

Issue 488103004: MIPS: Move "slow handler" compiler code to handler-compiler. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ic/mips/ic-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/ic/call-optimization.h" 9 #include "src/ic/call-optimization.h"
10 #include "src/ic/handler-compiler.h" 10 #include "src/ic/handler-compiler.h"
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 303
304 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Slow); 304 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Slow);
305 305
306 // Miss case, call the runtime. 306 // Miss case, call the runtime.
307 __ bind(&miss); 307 __ bind(&miss);
308 308
309 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 309 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
310 } 310 }
311 311
312 312
313 void NamedStoreHandlerCompiler::GenerateSlow(MacroAssembler* masm) {
314 // Push receiver, key and value for runtime call.
315 __ Push(StoreIC::ReceiverRegister(), StoreIC::NameRegister(),
316 StoreIC::ValueRegister());
317
318 // The slow case calls into the runtime to complete the store without causing
319 // an IC miss that would otherwise cause a transition to the generic stub.
320 ExternalReference ref =
321 ExternalReference(IC_Utility(IC::kStoreIC_Slow), masm->isolate());
322 __ TailCallExternalReference(ref, 3, 1);
323 }
324
325
326 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) {
327 // Push receiver, key and value for runtime call.
328 __ Push(StoreIC::ReceiverRegister(), StoreIC::NameRegister(),
329 StoreIC::ValueRegister());
330
331 // The slow case calls into the runtime to complete the store without causing
332 // an IC miss that would otherwise cause a transition to the generic stub.
333 ExternalReference ref =
334 ExternalReference(IC_Utility(IC::kKeyedStoreIC_Slow), masm->isolate());
335 __ TailCallExternalReference(ref, 3, 1);
336 }
337
338
313 #undef __ 339 #undef __
314 #define __ ACCESS_MASM(masm()) 340 #define __ ACCESS_MASM(masm())
315 341
316 342
317 void NamedStoreHandlerCompiler::GenerateRestoreName(Label* label, 343 void NamedStoreHandlerCompiler::GenerateRestoreName(Label* label,
318 Handle<Name> name) { 344 Handle<Name> name) {
319 if (!label->is_unused()) { 345 if (!label->is_unused()) {
320 __ bind(label); 346 __ bind(label);
321 __ li(this->name(), Operand(name)); 347 __ li(this->name(), Operand(name));
322 } 348 }
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 // Return the generated code. 858 // Return the generated code.
833 return GetCode(kind(), Code::NORMAL, name); 859 return GetCode(kind(), Code::NORMAL, name);
834 } 860 }
835 861
836 862
837 #undef __ 863 #undef __
838 } 864 }
839 } // namespace v8::internal 865 } // namespace v8::internal
840 866
841 #endif // V8_TARGET_ARCH_MIPS 867 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | src/ic/mips/ic-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698