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/mips64/handler-compiler-mips64.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 | « src/ic/mips/ic-mips.cc ('k') | src/ic/mips64/ic-mips64.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_MIPS64 7 #if V8_TARGET_ARCH_MIPS64
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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 304
305 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Slow); 305 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Slow);
306 306
307 // Miss case, call the runtime. 307 // Miss case, call the runtime.
308 __ bind(&miss); 308 __ bind(&miss);
309 309
310 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 310 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
311 } 311 }
312 312
313 313
314 void NamedStoreHandlerCompiler::GenerateSlow(MacroAssembler* masm) {
315 // Push receiver, key and value for runtime call.
316 __ Push(StoreIC::ReceiverRegister(), StoreIC::NameRegister(),
317 StoreIC::ValueRegister());
318
319 // The slow case calls into the runtime to complete the store without causing
320 // an IC miss that would otherwise cause a transition to the generic stub.
321 ExternalReference ref =
322 ExternalReference(IC_Utility(IC::kStoreIC_Slow), masm->isolate());
323 __ TailCallExternalReference(ref, 3, 1);
324 }
325
326
327 void ElementHandlerCompiler::GenerateStoreSlow(MacroAssembler* masm) {
328 // Push receiver, key and value for runtime call.
329 __ Push(StoreIC::ReceiverRegister(), StoreIC::NameRegister(),
330 StoreIC::ValueRegister());
331
332 // The slow case calls into the runtime to complete the store without causing
333 // an IC miss that would otherwise cause a transition to the generic stub.
334 ExternalReference ref =
335 ExternalReference(IC_Utility(IC::kKeyedStoreIC_Slow), masm->isolate());
336 __ TailCallExternalReference(ref, 3, 1);
337 }
338
339
314 #undef __ 340 #undef __
315 #define __ ACCESS_MASM(masm()) 341 #define __ ACCESS_MASM(masm())
316 342
317 343
318 void NamedStoreHandlerCompiler::GenerateRestoreName(Label* label, 344 void NamedStoreHandlerCompiler::GenerateRestoreName(Label* label,
319 Handle<Name> name) { 345 Handle<Name> name) {
320 if (!label->is_unused()) { 346 if (!label->is_unused()) {
321 __ bind(label); 347 __ bind(label);
322 __ li(this->name(), Operand(name)); 348 __ li(this->name(), Operand(name));
323 } 349 }
(...skipping 509 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 // Return the generated code. 859 // Return the generated code.
834 return GetCode(kind(), Code::NORMAL, name); 860 return GetCode(kind(), Code::NORMAL, name);
835 } 861 }
836 862
837 863
838 #undef __ 864 #undef __
839 } 865 }
840 } // namespace v8::internal 866 } // namespace v8::internal
841 867
842 #endif // V8_TARGET_ARCH_MIPS64 868 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/ic/mips/ic-mips.cc ('k') | src/ic/mips64/ic-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698