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_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 1264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1275 __ mov(eax, isolate()->factory()->undefined_value()); | 1275 __ mov(eax, isolate()->factory()->undefined_value()); |
1276 __ ret(0); | 1276 __ ret(0); |
1277 | 1277 |
1278 // Return the generated code. | 1278 // Return the generated code. |
1279 return GetCode(kind(), Code::FAST, name); | 1279 return GetCode(kind(), Code::FAST, name); |
1280 } | 1280 } |
1281 | 1281 |
1282 | 1282 |
1283 Register* LoadStubCompiler::registers() { | 1283 Register* LoadStubCompiler::registers() { |
1284 // receiver, name, scratch1, scratch2, scratch3, scratch4. | 1284 // receiver, name, scratch1, scratch2, scratch3, scratch4. |
1285 static Register registers[] = { edx, ecx, ebx, eax, edi, no_reg }; | 1285 Register receiver = LoadIC::ReceiverRegister(); |
| 1286 Register name = LoadIC::NameRegister(); |
| 1287 static Register registers[] = { receiver, name, ebx, eax, edi, no_reg }; |
1286 return registers; | 1288 return registers; |
1287 } | 1289 } |
1288 | 1290 |
1289 | 1291 |
1290 Register* KeyedLoadStubCompiler::registers() { | 1292 Register* KeyedLoadStubCompiler::registers() { |
1291 // receiver, name, scratch1, scratch2, scratch3, scratch4. | 1293 // receiver, name, scratch1, scratch2, scratch3, scratch4. |
1292 static Register registers[] = { edx, ecx, ebx, eax, edi, no_reg }; | 1294 Register receiver = KeyedLoadIC::ReceiverRegister(); |
| 1295 Register name = KeyedLoadIC::NameRegister(); |
| 1296 static Register registers[] = { receiver, name, ebx, eax, edi, no_reg }; |
1293 return registers; | 1297 return registers; |
1294 } | 1298 } |
1295 | 1299 |
1296 | 1300 |
1297 Register StoreStubCompiler::value() { | 1301 Register StoreStubCompiler::value() { |
1298 return eax; | 1302 return eax; |
1299 } | 1303 } |
1300 | 1304 |
1301 | 1305 |
1302 Register* StoreStubCompiler::registers() { | 1306 Register* StoreStubCompiler::registers() { |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1484 // ----------------------------------- | 1488 // ----------------------------------- |
1485 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1489 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1486 } | 1490 } |
1487 | 1491 |
1488 | 1492 |
1489 #undef __ | 1493 #undef __ |
1490 | 1494 |
1491 } } // namespace v8::internal | 1495 } } // namespace v8::internal |
1492 | 1496 |
1493 #endif // V8_TARGET_ARCH_X87 | 1497 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |