| 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/crankshaft/x87/lithium-x87.h" | 5 #include "src/crankshaft/x87/lithium-x87.h" |
| 6 | 6 |
| 7 #include <sstream> | 7 #include <sstream> |
| 8 | 8 |
| 9 #if V8_TARGET_ARCH_X87 | 9 #if V8_TARGET_ARCH_X87 |
| 10 | 10 |
| (...skipping 2024 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2035 | 2035 |
| 2036 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { | 2036 LInstruction* LChunkBuilder::DoLoadNamedField(HLoadNamedField* instr) { |
| 2037 LOperand* obj = (instr->access().IsExternalMemory() && | 2037 LOperand* obj = (instr->access().IsExternalMemory() && |
| 2038 instr->access().offset() == 0) | 2038 instr->access().offset() == 0) |
| 2039 ? UseRegisterOrConstantAtStart(instr->object()) | 2039 ? UseRegisterOrConstantAtStart(instr->object()) |
| 2040 : UseRegisterAtStart(instr->object()); | 2040 : UseRegisterAtStart(instr->object()); |
| 2041 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); | 2041 return DefineAsRegister(new(zone()) LLoadNamedField(obj)); |
| 2042 } | 2042 } |
| 2043 | 2043 |
| 2044 | 2044 |
| 2045 LInstruction* LChunkBuilder::DoLoadNamedGeneric(HLoadNamedGeneric* instr) { | |
| 2046 LOperand* context = UseFixed(instr->context(), esi); | |
| 2047 LOperand* object = | |
| 2048 UseFixed(instr->object(), LoadDescriptor::ReceiverRegister()); | |
| 2049 LOperand* vector = FixedTemp(LoadWithVectorDescriptor::VectorRegister()); | |
| 2050 LLoadNamedGeneric* result = new(zone()) LLoadNamedGeneric( | |
| 2051 context, object, vector); | |
| 2052 return MarkAsCall(DefineFixed(result, eax), instr); | |
| 2053 } | |
| 2054 | |
| 2055 | |
| 2056 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( | 2045 LInstruction* LChunkBuilder::DoLoadFunctionPrototype( |
| 2057 HLoadFunctionPrototype* instr) { | 2046 HLoadFunctionPrototype* instr) { |
| 2058 return AssignEnvironment(DefineAsRegister( | 2047 return AssignEnvironment(DefineAsRegister( |
| 2059 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()), | 2048 new(zone()) LLoadFunctionPrototype(UseRegister(instr->function()), |
| 2060 TempRegister()))); | 2049 TempRegister()))); |
| 2061 } | 2050 } |
| 2062 | 2051 |
| 2063 | 2052 |
| 2064 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { | 2053 LInstruction* LChunkBuilder::DoLoadRoot(HLoadRoot* instr) { |
| 2065 return DefineAsRegister(new(zone()) LLoadRoot); | 2054 return DefineAsRegister(new(zone()) LLoadRoot); |
| (...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2513 LOperand* index = UseTempRegister(instr->index()); | 2502 LOperand* index = UseTempRegister(instr->index()); |
| 2514 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); | 2503 LLoadFieldByIndex* load = new(zone()) LLoadFieldByIndex(object, index); |
| 2515 LInstruction* result = DefineSameAsFirst(load); | 2504 LInstruction* result = DefineSameAsFirst(load); |
| 2516 return AssignPointerMap(result); | 2505 return AssignPointerMap(result); |
| 2517 } | 2506 } |
| 2518 | 2507 |
| 2519 } // namespace internal | 2508 } // namespace internal |
| 2520 } // namespace v8 | 2509 } // namespace v8 |
| 2521 | 2510 |
| 2522 #endif // V8_TARGET_ARCH_X87 | 2511 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |