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_IA32 | 9 #if V8_TARGET_ARCH_IA32 |
10 | 10 |
(...skipping 2328 matching lines...) Loading... |
2339 return new(zone()) LStoreKeyed(obj, key, val); | 2339 return new(zone()) LStoreKeyed(obj, key, val); |
2340 } | 2340 } |
2341 } | 2341 } |
2342 | 2342 |
2343 ElementsKind elements_kind = instr->elements_kind(); | 2343 ElementsKind elements_kind = instr->elements_kind(); |
2344 DCHECK( | 2344 DCHECK( |
2345 (instr->value()->representation().IsInteger32() && | 2345 (instr->value()->representation().IsInteger32() && |
2346 !IsDoubleOrFloatElementsKind(elements_kind)) || | 2346 !IsDoubleOrFloatElementsKind(elements_kind)) || |
2347 (instr->value()->representation().IsDouble() && | 2347 (instr->value()->representation().IsDouble() && |
2348 IsDoubleOrFloatElementsKind(elements_kind))); | 2348 IsDoubleOrFloatElementsKind(elements_kind))); |
2349 DCHECK((instr->is_fixed_typed_array() && | 2349 DCHECK(instr->elements()->representation().IsExternal()); |
2350 instr->elements()->representation().IsTagged()) || | |
2351 (instr->is_external() && | |
2352 instr->elements()->representation().IsExternal())); | |
2353 | 2350 |
2354 LOperand* backing_store = UseRegister(instr->elements()); | 2351 LOperand* backing_store = UseRegister(instr->elements()); |
2355 LOperand* val = GetStoreKeyedValueOperand(instr); | 2352 LOperand* val = GetStoreKeyedValueOperand(instr); |
2356 bool clobbers_key = ExternalArrayOpRequiresTemp( | 2353 bool clobbers_key = ExternalArrayOpRequiresTemp( |
2357 instr->key()->representation(), elements_kind); | 2354 instr->key()->representation(), elements_kind); |
2358 LOperand* key = clobbers_key | 2355 LOperand* key = clobbers_key |
2359 ? UseTempRegister(instr->key()) | 2356 ? UseTempRegister(instr->key()) |
2360 : UseRegisterOrConstantAtStart(instr->key()); | 2357 : UseRegisterOrConstantAtStart(instr->key()); |
2361 return new(zone()) LStoreKeyed(backing_store, key, val); | 2358 return new(zone()) LStoreKeyed(backing_store, key, val); |
2362 } | 2359 } |
(...skipping 425 matching lines...) Loading... |
2788 LAllocateBlockContext* result = | 2785 LAllocateBlockContext* result = |
2789 new(zone()) LAllocateBlockContext(context, function); | 2786 new(zone()) LAllocateBlockContext(context, function); |
2790 return MarkAsCall(DefineFixed(result, esi), instr); | 2787 return MarkAsCall(DefineFixed(result, esi), instr); |
2791 } | 2788 } |
2792 | 2789 |
2793 | 2790 |
2794 } // namespace internal | 2791 } // namespace internal |
2795 } // namespace v8 | 2792 } // namespace v8 |
2796 | 2793 |
2797 #endif // V8_TARGET_ARCH_IA32 | 2794 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |