| OLD | NEW |
| 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_X64 | 7 #if V8_TARGET_ARCH_X64 |
| 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 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1141 // ----------- S t a t e ------------- | 1141 // ----------- S t a t e ------------- |
| 1142 // -- rax : value | 1142 // -- rax : value |
| 1143 // -- rcx : name | 1143 // -- rcx : name |
| 1144 // -- rdx : receiver | 1144 // -- rdx : receiver |
| 1145 // -- rsp[0] : return address | 1145 // -- rsp[0] : return address |
| 1146 // ----------------------------------- | 1146 // ----------------------------------- |
| 1147 __ PopReturnAddressTo(rbx); | 1147 __ PopReturnAddressTo(rbx); |
| 1148 __ Push(rdx); | 1148 __ Push(rdx); |
| 1149 __ Push(rcx); | 1149 __ Push(rcx); |
| 1150 __ Push(rax); | 1150 __ Push(rax); |
| 1151 __ Push(Smi::FromInt(NONE)); // PropertyAttributes | |
| 1152 __ Push(Smi::FromInt(strict_mode)); | 1151 __ Push(Smi::FromInt(strict_mode)); |
| 1153 __ PushReturnAddressFrom(rbx); | 1152 __ PushReturnAddressFrom(rbx); |
| 1154 | 1153 |
| 1155 // Do tail-call to runtime routine. | 1154 // Do tail-call to runtime routine. |
| 1156 __ TailCallRuntime(Runtime::kSetProperty, 5, 1); | 1155 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); |
| 1157 } | 1156 } |
| 1158 | 1157 |
| 1159 | 1158 |
| 1160 void KeyedStoreIC::GenerateRuntimeSetProperty(MacroAssembler* masm, | 1159 void KeyedStoreIC::GenerateRuntimeSetProperty(MacroAssembler* masm, |
| 1161 StrictMode strict_mode) { | 1160 StrictMode strict_mode) { |
| 1162 // ----------- S t a t e ------------- | 1161 // ----------- S t a t e ------------- |
| 1163 // -- rax : value | 1162 // -- rax : value |
| 1164 // -- rcx : key | 1163 // -- rcx : key |
| 1165 // -- rdx : receiver | 1164 // -- rdx : receiver |
| 1166 // -- rsp[0] : return address | 1165 // -- rsp[0] : return address |
| 1167 // ----------------------------------- | 1166 // ----------------------------------- |
| 1168 | 1167 |
| 1169 __ PopReturnAddressTo(rbx); | 1168 __ PopReturnAddressTo(rbx); |
| 1170 __ Push(rdx); // receiver | 1169 __ Push(rdx); // receiver |
| 1171 __ Push(rcx); // key | 1170 __ Push(rcx); // key |
| 1172 __ Push(rax); // value | 1171 __ Push(rax); // value |
| 1173 __ Push(Smi::FromInt(NONE)); // PropertyAttributes | |
| 1174 __ Push(Smi::FromInt(strict_mode)); // Strict mode. | 1172 __ Push(Smi::FromInt(strict_mode)); // Strict mode. |
| 1175 __ PushReturnAddressFrom(rbx); | 1173 __ PushReturnAddressFrom(rbx); |
| 1176 | 1174 |
| 1177 // Do tail-call to runtime routine. | 1175 // Do tail-call to runtime routine. |
| 1178 __ TailCallRuntime(Runtime::kSetProperty, 5, 1); | 1176 __ TailCallRuntime(Runtime::kSetProperty, 4, 1); |
| 1179 } | 1177 } |
| 1180 | 1178 |
| 1181 | 1179 |
| 1182 void StoreIC::GenerateSlow(MacroAssembler* masm) { | 1180 void StoreIC::GenerateSlow(MacroAssembler* masm) { |
| 1183 // ----------- S t a t e ------------- | 1181 // ----------- S t a t e ------------- |
| 1184 // -- rax : value | 1182 // -- rax : value |
| 1185 // -- rcx : key | 1183 // -- rcx : key |
| 1186 // -- rdx : receiver | 1184 // -- rdx : receiver |
| 1187 // -- rsp[0] : return address | 1185 // -- rsp[0] : return address |
| 1188 // ----------------------------------- | 1186 // ----------------------------------- |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1307 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1305 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
| 1308 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1306 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
| 1309 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1307 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
| 1310 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1308 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
| 1311 } | 1309 } |
| 1312 | 1310 |
| 1313 | 1311 |
| 1314 } } // namespace v8::internal | 1312 } } // namespace v8::internal |
| 1315 | 1313 |
| 1316 #endif // V8_TARGET_ARCH_X64 | 1314 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |