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 #include "src/hydrogen-osr.h" | 7 #include "src/hydrogen-osr.h" |
8 #include "src/lithium-allocator-inl.h" | 8 #include "src/lithium-allocator-inl.h" |
9 #include "src/mips/lithium-codegen-mips.h" | 9 #include "src/mips/lithium-codegen-mips.h" |
10 #include "src/mips/lithium-mips.h" | 10 #include "src/mips/lithium-mips.h" |
(...skipping 2127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2138 // LCodeGen::DoLoadKeyedFixedArray | 2138 // LCodeGen::DoLoadKeyedFixedArray |
2139 instr->RequiresHoleCheck()) { | 2139 instr->RequiresHoleCheck()) { |
2140 result = AssignEnvironment(result); | 2140 result = AssignEnvironment(result); |
2141 } | 2141 } |
2142 return result; | 2142 return result; |
2143 } | 2143 } |
2144 | 2144 |
2145 | 2145 |
2146 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { | 2146 LInstruction* LChunkBuilder::DoLoadKeyedGeneric(HLoadKeyedGeneric* instr) { |
2147 LOperand* context = UseFixed(instr->context(), cp); | 2147 LOperand* context = UseFixed(instr->context(), cp); |
2148 LOperand* object = UseFixed(instr->object(), KeyedLoadIC::ReceiverRegister()); | 2148 LOperand* object = UseFixed(instr->object(), LoadIC::ReceiverRegister()); |
2149 LOperand* key = UseFixed(instr->key(), KeyedLoadIC::NameRegister()); | 2149 LOperand* key = UseFixed(instr->key(), LoadIC::NameRegister()); |
2150 | 2150 |
2151 LInstruction* result = | 2151 LInstruction* result = |
2152 DefineFixed(new(zone()) LLoadKeyedGeneric(context, object, key), v0); | 2152 DefineFixed(new(zone()) LLoadKeyedGeneric(context, object, key), v0); |
2153 return MarkAsCall(result, instr); | 2153 return MarkAsCall(result, instr); |
2154 } | 2154 } |
2155 | 2155 |
2156 | 2156 |
2157 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) { | 2157 LInstruction* LChunkBuilder::DoStoreKeyed(HStoreKeyed* instr) { |
2158 if (!instr->is_typed_elements()) { | 2158 if (!instr->is_typed_elements()) { |
2159 ASSERT(instr->elements()->representation().IsTagged()); | 2159 ASSERT(instr->elements()->representation().IsTagged()); |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2535 LInstruction* LChunkBuilder::DoAllocateBlockContext( | 2535 LInstruction* LChunkBuilder::DoAllocateBlockContext( |
2536 HAllocateBlockContext* instr) { | 2536 HAllocateBlockContext* instr) { |
2537 LOperand* context = UseFixed(instr->context(), cp); | 2537 LOperand* context = UseFixed(instr->context(), cp); |
2538 LOperand* function = UseRegisterAtStart(instr->function()); | 2538 LOperand* function = UseRegisterAtStart(instr->function()); |
2539 LAllocateBlockContext* result = | 2539 LAllocateBlockContext* result = |
2540 new(zone()) LAllocateBlockContext(context, function); | 2540 new(zone()) LAllocateBlockContext(context, function); |
2541 return MarkAsCall(DefineFixed(result, cp), instr); | 2541 return MarkAsCall(DefineFixed(result, cp), instr); |
2542 } | 2542 } |
2543 | 2543 |
2544 } } // namespace v8::internal | 2544 } } // namespace v8::internal |
OLD | NEW |