| 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_X87 | 9 #if V8_TARGET_ARCH_X87 |
| 10 | 10 |
| (...skipping 2332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2343 return new(zone()) LStoreKeyed(obj, key, val); | 2343 return new(zone()) LStoreKeyed(obj, key, val); |
| 2344 } | 2344 } |
| 2345 } | 2345 } |
| 2346 | 2346 |
| 2347 ElementsKind elements_kind = instr->elements_kind(); | 2347 ElementsKind elements_kind = instr->elements_kind(); |
| 2348 DCHECK( | 2348 DCHECK( |
| 2349 (instr->value()->representation().IsInteger32() && | 2349 (instr->value()->representation().IsInteger32() && |
| 2350 !IsDoubleOrFloatElementsKind(elements_kind)) || | 2350 !IsDoubleOrFloatElementsKind(elements_kind)) || |
| 2351 (instr->value()->representation().IsDouble() && | 2351 (instr->value()->representation().IsDouble() && |
| 2352 IsDoubleOrFloatElementsKind(elements_kind))); | 2352 IsDoubleOrFloatElementsKind(elements_kind))); |
| 2353 DCHECK((instr->is_fixed_typed_array() && | 2353 DCHECK(instr->elements()->representation().IsExternal()); |
| 2354 instr->elements()->representation().IsTagged()) || | |
| 2355 (instr->is_external() && | |
| 2356 instr->elements()->representation().IsExternal())); | |
| 2357 | 2354 |
| 2358 LOperand* backing_store = UseRegister(instr->elements()); | 2355 LOperand* backing_store = UseRegister(instr->elements()); |
| 2359 LOperand* val = GetStoreKeyedValueOperand(instr); | 2356 LOperand* val = GetStoreKeyedValueOperand(instr); |
| 2360 bool clobbers_key = ExternalArrayOpRequiresTemp( | 2357 bool clobbers_key = ExternalArrayOpRequiresTemp( |
| 2361 instr->key()->representation(), elements_kind); | 2358 instr->key()->representation(), elements_kind); |
| 2362 LOperand* key = clobbers_key | 2359 LOperand* key = clobbers_key |
| 2363 ? UseTempRegister(instr->key()) | 2360 ? UseTempRegister(instr->key()) |
| 2364 : UseRegisterOrConstantAtStart(instr->key()); | 2361 : UseRegisterOrConstantAtStart(instr->key()); |
| 2365 return new(zone()) LStoreKeyed(backing_store, key, val); | 2362 return new(zone()) LStoreKeyed(backing_store, key, val); |
| 2366 } | 2363 } |
| (...skipping 425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2792 LAllocateBlockContext* result = | 2789 LAllocateBlockContext* result = |
| 2793 new(zone()) LAllocateBlockContext(context, function); | 2790 new(zone()) LAllocateBlockContext(context, function); |
| 2794 return MarkAsCall(DefineFixed(result, esi), instr); | 2791 return MarkAsCall(DefineFixed(result, esi), instr); |
| 2795 } | 2792 } |
| 2796 | 2793 |
| 2797 | 2794 |
| 2798 } // namespace internal | 2795 } // namespace internal |
| 2799 } // namespace v8 | 2796 } // namespace v8 |
| 2800 | 2797 |
| 2801 #endif // V8_TARGET_ARCH_X87 | 2798 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |