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