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

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

Issue 354173002: Port the ic part (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 5 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/x64/ic-x64.cc ('k') | no next file » | 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_X87 7 #if V8_TARGET_ARCH_X87
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/ic-inl.h" 10 #include "src/ic-inl.h"
(...skipping 1114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1125 // ----------- S t a t e ------------- 1125 // ----------- S t a t e -------------
1126 // -- eax : value 1126 // -- eax : value
1127 // -- ecx : name 1127 // -- ecx : name
1128 // -- edx : receiver 1128 // -- edx : receiver
1129 // -- esp[0] : return address 1129 // -- esp[0] : return address
1130 // ----------------------------------- 1130 // -----------------------------------
1131 __ pop(ebx); 1131 __ pop(ebx);
1132 __ push(edx); 1132 __ push(edx);
1133 __ push(ecx); 1133 __ push(ecx);
1134 __ push(eax); 1134 __ push(eax);
1135 __ push(Immediate(Smi::FromInt(NONE))); // PropertyAttributes
1136 __ push(Immediate(Smi::FromInt(strict_mode))); 1135 __ push(Immediate(Smi::FromInt(strict_mode)));
1137 __ push(ebx); // return address 1136 __ push(ebx); // return address
1138 1137
1139 // Do tail-call to runtime routine. 1138 // Do tail-call to runtime routine.
1140 __ TailCallRuntime(Runtime::kSetProperty, 5, 1); 1139 __ TailCallRuntime(Runtime::kSetProperty, 4, 1);
1141 } 1140 }
1142 1141
1143 1142
1144 void KeyedStoreIC::GenerateRuntimeSetProperty(MacroAssembler* masm, 1143 void KeyedStoreIC::GenerateRuntimeSetProperty(MacroAssembler* masm,
1145 StrictMode strict_mode) { 1144 StrictMode strict_mode) {
1146 // ----------- S t a t e ------------- 1145 // ----------- S t a t e -------------
1147 // -- eax : value 1146 // -- eax : value
1148 // -- ecx : key 1147 // -- ecx : key
1149 // -- edx : receiver 1148 // -- edx : receiver
1150 // -- esp[0] : return address 1149 // -- esp[0] : return address
1151 // ----------------------------------- 1150 // -----------------------------------
1152 1151
1153 __ pop(ebx); 1152 __ pop(ebx);
1154 __ push(edx); 1153 __ push(edx);
1155 __ push(ecx); 1154 __ push(ecx);
1156 __ push(eax); 1155 __ push(eax);
1157 __ push(Immediate(Smi::FromInt(NONE))); // PropertyAttributes
1158 __ push(Immediate(Smi::FromInt(strict_mode))); // Strict mode. 1156 __ push(Immediate(Smi::FromInt(strict_mode))); // Strict mode.
1159 __ push(ebx); // return address 1157 __ push(ebx); // return address
1160 1158
1161 // Do tail-call to runtime routine. 1159 // Do tail-call to runtime routine.
1162 __ TailCallRuntime(Runtime::kSetProperty, 5, 1); 1160 __ TailCallRuntime(Runtime::kSetProperty, 4, 1);
1163 } 1161 }
1164 1162
1165 1163
1166 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) { 1164 void KeyedStoreIC::GenerateMiss(MacroAssembler* masm) {
1167 // ----------- S t a t e ------------- 1165 // ----------- S t a t e -------------
1168 // -- eax : value 1166 // -- eax : value
1169 // -- ecx : key 1167 // -- ecx : key
1170 // -- edx : receiver 1168 // -- edx : receiver
1171 // -- esp[0] : return address 1169 // -- esp[0] : return address
1172 // ----------------------------------- 1170 // -----------------------------------
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
1291 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) 1289 Condition cc = (check == ENABLE_INLINED_SMI_CHECK)
1292 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) 1290 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero)
1293 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); 1291 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry);
1294 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); 1292 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc);
1295 } 1293 }
1296 1294
1297 1295
1298 } } // namespace v8::internal 1296 } } // namespace v8::internal
1299 1297
1300 #endif // V8_TARGET_ARCH_X87 1298 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/x64/ic-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698