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

Side by Side Diff: src/ic/mips/ic-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 | « src/ic/mips/handler-compiler-mips.cc ('k') | src/ic/mips64/handler-compiler-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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 5
6 #include "src/v8.h" 6 #include "src/v8.h"
7 7
8 #if V8_TARGET_ARCH_MIPS 8 #if V8_TARGET_ARCH_MIPS
9 9
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 961 matching lines...) Expand 10 before | Expand all | Expand 10 after
972 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) { 972 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) {
973 // Push receiver, key and value for runtime call. 973 // Push receiver, key and value for runtime call.
974 __ Push(ReceiverRegister(), NameRegister(), ValueRegister()); 974 __ Push(ReceiverRegister(), NameRegister(), ValueRegister());
975 975
976 ExternalReference ref = 976 ExternalReference ref =
977 ExternalReference(IC_Utility(kKeyedStoreIC_Miss), masm->isolate()); 977 ExternalReference(IC_Utility(kKeyedStoreIC_Miss), masm->isolate());
978 __ TailCallExternalReference(ref, 3, 1); 978 __ TailCallExternalReference(ref, 3, 1);
979 } 979 }
980 980
981 981
982 void StoreIC::GenerateSlow(MacroAssembler* masm) {
983 // Push receiver, key and value for runtime call.
984 __ Push(ReceiverRegister(), NameRegister(), ValueRegister());
985
986 // The slow case calls into the runtime to complete the store without causing
987 // an IC miss that would otherwise cause a transition to the generic stub.
988 ExternalReference ref =
989 ExternalReference(IC_Utility(kStoreIC_Slow), masm->isolate());
990 __ TailCallExternalReference(ref, 3, 1);
991 }
992
993
994 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) {
995 // Push receiver, key and value for runtime call.
996 // We can't use MultiPush as the order of the registers is important.
997 __ Push(ReceiverRegister(), NameRegister(), ValueRegister());
998
999 // The slow case calls into the runtime to complete the store without causing
1000 // an IC miss that would otherwise cause a transition to the generic stub.
1001 ExternalReference ref =
1002 ExternalReference(IC_Utility(kKeyedStoreIC_Slow), masm->isolate());
1003
1004 __ TailCallExternalReference(ref, 3, 1);
1005 }
1006
1007
1008 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) { 982 void StoreIC::GenerateMegamorphic(MacroAssembler* masm) {
1009 Register receiver = ReceiverRegister(); 983 Register receiver = ReceiverRegister();
1010 Register name = NameRegister(); 984 Register name = NameRegister();
1011 DCHECK(receiver.is(a1)); 985 DCHECK(receiver.is(a1));
1012 DCHECK(name.is(a2)); 986 DCHECK(name.is(a2));
1013 DCHECK(ValueRegister().is(a0)); 987 DCHECK(ValueRegister().is(a0));
1014 988
1015 // Get the receiver from the stack and probe the stub cache. 989 // Get the receiver from the stack and probe the stub cache.
1016 Code::Flags flags = Code::RemoveTypeAndHolderFromFlags( 990 Code::Flags flags = Code::RemoveTypeAndHolderFromFlags(
1017 Code::ComputeHandlerFlags(Code::STORE_IC)); 991 Code::ComputeHandlerFlags(Code::STORE_IC));
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
1147 patcher.ChangeBranchCondition(ne); 1121 patcher.ChangeBranchCondition(ne);
1148 } else { 1122 } else {
1149 DCHECK(Assembler::IsBne(branch_instr)); 1123 DCHECK(Assembler::IsBne(branch_instr));
1150 patcher.ChangeBranchCondition(eq); 1124 patcher.ChangeBranchCondition(eq);
1151 } 1125 }
1152 } 1126 }
1153 } 1127 }
1154 } // namespace v8::internal 1128 } // namespace v8::internal
1155 1129
1156 #endif // V8_TARGET_ARCH_MIPS 1130 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ic/mips/handler-compiler-mips.cc ('k') | src/ic/mips64/handler-compiler-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698