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

Side by Side Diff: src/ic/ia32/ic-ia32.cc

Issue 496283004: 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/ia32/handler-compiler-ia32.cc ('k') | src/ic/x64/handler-compiler-x64.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 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/ic/ic.h" 10 #include "src/ic/ic.h"
(...skipping 1000 matching lines...) Expand 10 before | Expand all | Expand 10 after
1011 // Return address is on the stack. 1011 // Return address is on the stack.
1012 StoreIC_PushArgs(masm); 1012 StoreIC_PushArgs(masm);
1013 1013
1014 // Do tail-call to runtime routine. 1014 // Do tail-call to runtime routine.
1015 ExternalReference ref = 1015 ExternalReference ref =
1016 ExternalReference(IC_Utility(kKeyedStoreIC_Miss), masm->isolate()); 1016 ExternalReference(IC_Utility(kKeyedStoreIC_Miss), masm->isolate());
1017 __ TailCallExternalReference(ref, 3, 1); 1017 __ TailCallExternalReference(ref, 3, 1);
1018 } 1018 }
1019 1019
1020 1020
1021 void StoreIC::GenerateSlow(MacroAssembler* masm) {
1022 // Return address is on the stack.
1023 StoreIC_PushArgs(masm);
1024
1025 // Do tail-call to runtime routine.
1026 ExternalReference ref(IC_Utility(kStoreIC_Slow), masm->isolate());
1027 __ TailCallExternalReference(ref, 3, 1);
1028 }
1029
1030
1031 void KeyedStoreIC::GenerateSlow(MacroAssembler* masm) {
1032 // Return address is on the stack.
1033 StoreIC_PushArgs(masm);
1034
1035 // Do tail-call to runtime routine.
1036 ExternalReference ref(IC_Utility(kKeyedStoreIC_Slow), masm->isolate());
1037 __ TailCallExternalReference(ref, 3, 1);
1038 }
1039
1040
1041 #undef __ 1021 #undef __
1042 1022
1043 1023
1044 Condition CompareIC::ComputeCondition(Token::Value op) { 1024 Condition CompareIC::ComputeCondition(Token::Value op) {
1045 switch (op) { 1025 switch (op) {
1046 case Token::EQ_STRICT: 1026 case Token::EQ_STRICT:
1047 case Token::EQ: 1027 case Token::EQ:
1048 return equal; 1028 return equal;
1049 case Token::LT: 1029 case Token::LT:
1050 return less; 1030 return less;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
1105 Condition cc = 1085 Condition cc =
1106 (check == ENABLE_INLINED_SMI_CHECK) 1086 (check == ENABLE_INLINED_SMI_CHECK)
1107 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1087 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1108 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1088 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1109 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1089 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1110 } 1090 }
1111 } 1091 }
1112 } // namespace v8::internal 1092 } // namespace v8::internal
1113 1093
1114 #endif // V8_TARGET_ARCH_IA32 1094 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ic/ia32/handler-compiler-ia32.cc ('k') | src/ic/x64/handler-compiler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698