| 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 #if V8_TARGET_ARCH_MIPS64 | 9 #if V8_TARGET_ARCH_MIPS64 |
| 10 | 10 |
| (...skipping 2264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2275 } | 2275 } |
| 2276 | 2276 |
| 2277 return new(zone()) LStoreKeyed(object, key, val); | 2277 return new(zone()) LStoreKeyed(object, key, val); |
| 2278 } | 2278 } |
| 2279 | 2279 |
| 2280 DCHECK( | 2280 DCHECK( |
| 2281 (instr->value()->representation().IsInteger32() && | 2281 (instr->value()->representation().IsInteger32() && |
| 2282 !IsDoubleOrFloatElementsKind(instr->elements_kind())) || | 2282 !IsDoubleOrFloatElementsKind(instr->elements_kind())) || |
| 2283 (instr->value()->representation().IsDouble() && | 2283 (instr->value()->representation().IsDouble() && |
| 2284 IsDoubleOrFloatElementsKind(instr->elements_kind()))); | 2284 IsDoubleOrFloatElementsKind(instr->elements_kind()))); |
| 2285 DCHECK((instr->is_fixed_typed_array() && | 2285 DCHECK(instr->elements()->representation().IsExternal()); |
| 2286 instr->elements()->representation().IsTagged()) || | |
| 2287 (instr->is_external() && | |
| 2288 instr->elements()->representation().IsExternal())); | |
| 2289 LOperand* val = UseRegister(instr->value()); | 2286 LOperand* val = UseRegister(instr->value()); |
| 2290 LOperand* key = UseRegisterOrConstantAtStart(instr->key()); | 2287 LOperand* key = UseRegisterOrConstantAtStart(instr->key()); |
| 2291 LOperand* backing_store = UseRegister(instr->elements()); | 2288 LOperand* backing_store = UseRegister(instr->elements()); |
| 2292 return new(zone()) LStoreKeyed(backing_store, key, val); | 2289 return new(zone()) LStoreKeyed(backing_store, key, val); |
| 2293 } | 2290 } |
| 2294 | 2291 |
| 2295 | 2292 |
| 2296 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { | 2293 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { |
| 2297 LOperand* context = UseFixed(instr->context(), cp); | 2294 LOperand* context = UseFixed(instr->context(), cp); |
| 2298 LOperand* obj = | 2295 LOperand* obj = |
| (...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2680 LAllocateBlockContext* result = | 2677 LAllocateBlockContext* result = |
| 2681 new(zone()) LAllocateBlockContext(context, function); | 2678 new(zone()) LAllocateBlockContext(context, function); |
| 2682 return MarkAsCall(DefineFixed(result, cp), instr); | 2679 return MarkAsCall(DefineFixed(result, cp), instr); |
| 2683 } | 2680 } |
| 2684 | 2681 |
| 2685 | 2682 |
| 2686 } // namespace internal | 2683 } // namespace internal |
| 2687 } // namespace v8 | 2684 } // namespace v8 |
| 2688 | 2685 |
| 2689 #endif // V8_TARGET_ARCH_MIPS64 | 2686 #endif // V8_TARGET_ARCH_MIPS64 |
| OLD | NEW |