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 <sstream> | 5 #include <sstream> |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "src/arm/lithium-codegen-arm.h" | 9 #include "src/arm/lithium-codegen-arm.h" |
10 #include "src/hydrogen-osr.h" | 10 #include "src/hydrogen-osr.h" |
(...skipping 2312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2323 } | 2323 } |
2324 | 2324 |
2325 return new(zone()) LStoreKeyed(object, key, val); | 2325 return new(zone()) LStoreKeyed(object, key, val); |
2326 } | 2326 } |
2327 | 2327 |
2328 DCHECK( | 2328 DCHECK( |
2329 (instr->value()->representation().IsInteger32() && | 2329 (instr->value()->representation().IsInteger32() && |
2330 !IsDoubleOrFloatElementsKind(instr->elements_kind())) || | 2330 !IsDoubleOrFloatElementsKind(instr->elements_kind())) || |
2331 (instr->value()->representation().IsDouble() && | 2331 (instr->value()->representation().IsDouble() && |
2332 IsDoubleOrFloatElementsKind(instr->elements_kind()))); | 2332 IsDoubleOrFloatElementsKind(instr->elements_kind()))); |
2333 DCHECK((instr->is_fixed_typed_array() && | 2333 DCHECK(instr->elements()->representation().IsExternal()); |
2334 instr->elements()->representation().IsTagged()) || | |
2335 (instr->is_external() && | |
2336 instr->elements()->representation().IsExternal())); | |
2337 LOperand* val = UseRegister(instr->value()); | 2334 LOperand* val = UseRegister(instr->value()); |
2338 LOperand* key = UseRegisterOrConstantAtStart(instr->key()); | 2335 LOperand* key = UseRegisterOrConstantAtStart(instr->key()); |
2339 LOperand* backing_store = UseRegister(instr->elements()); | 2336 LOperand* backing_store = UseRegister(instr->elements()); |
2340 return new(zone()) LStoreKeyed(backing_store, key, val); | 2337 return new(zone()) LStoreKeyed(backing_store, key, val); |
2341 } | 2338 } |
2342 | 2339 |
2343 | 2340 |
2344 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { | 2341 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { |
2345 LOperand* context = UseFixed(instr->context(), cp); | 2342 LOperand* context = UseFixed(instr->context(), cp); |
2346 LOperand* obj = | 2343 LOperand* obj = |
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2725 HAllocateBlockContext* instr) { | 2722 HAllocateBlockContext* instr) { |
2726 LOperand* context = UseFixed(instr->context(), cp); | 2723 LOperand* context = UseFixed(instr->context(), cp); |
2727 LOperand* function = UseRegisterAtStart(instr->function()); | 2724 LOperand* function = UseRegisterAtStart(instr->function()); |
2728 LAllocateBlockContext* result = | 2725 LAllocateBlockContext* result = |
2729 new(zone()) LAllocateBlockContext(context, function); | 2726 new(zone()) LAllocateBlockContext(context, function); |
2730 return MarkAsCall(DefineFixed(result, cp), instr); | 2727 return MarkAsCall(DefineFixed(result, cp), instr); |
2731 } | 2728 } |
2732 | 2729 |
2733 } // namespace internal | 2730 } // namespace internal |
2734 } // namespace v8 | 2731 } // namespace v8 |
OLD | NEW |