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