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_X64 | 9 #if V8_TARGET_ARCH_X64 |
10 | 10 |
(...skipping 2314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2325 } | 2325 } |
2326 | 2326 |
2327 return new(zone()) LStoreKeyed(object, key, val); | 2327 return new(zone()) LStoreKeyed(object, key, val); |
2328 } | 2328 } |
2329 | 2329 |
2330 DCHECK( | 2330 DCHECK( |
2331 (instr->value()->representation().IsInteger32() && | 2331 (instr->value()->representation().IsInteger32() && |
2332 !IsDoubleOrFloatElementsKind(elements_kind)) || | 2332 !IsDoubleOrFloatElementsKind(elements_kind)) || |
2333 (instr->value()->representation().IsDouble() && | 2333 (instr->value()->representation().IsDouble() && |
2334 IsDoubleOrFloatElementsKind(elements_kind))); | 2334 IsDoubleOrFloatElementsKind(elements_kind))); |
2335 DCHECK((instr->is_fixed_typed_array() && | 2335 DCHECK(instr->elements()->representation().IsExternal()); |
2336 instr->elements()->representation().IsTagged()) || | |
2337 (instr->is_external() && | |
2338 instr->elements()->representation().IsExternal())); | |
2339 bool val_is_temp_register = | 2336 bool val_is_temp_register = |
2340 elements_kind == EXTERNAL_UINT8_CLAMPED_ELEMENTS || | 2337 elements_kind == EXTERNAL_UINT8_CLAMPED_ELEMENTS || |
2341 elements_kind == EXTERNAL_FLOAT32_ELEMENTS || | 2338 elements_kind == EXTERNAL_FLOAT32_ELEMENTS || |
2342 elements_kind == FLOAT32_ELEMENTS; | 2339 elements_kind == FLOAT32_ELEMENTS; |
2343 LOperand* val = val_is_temp_register ? UseTempRegister(instr->value()) | 2340 LOperand* val = val_is_temp_register ? UseTempRegister(instr->value()) |
2344 : UseRegister(instr->value()); | 2341 : UseRegister(instr->value()); |
2345 LOperand* key = NULL; | 2342 LOperand* key = NULL; |
2346 if (kPointerSize == kInt64Size) { | 2343 if (kPointerSize == kInt64Size) { |
2347 key = UseRegisterOrConstantAtStart(instr->key()); | 2344 key = UseRegisterOrConstantAtStart(instr->key()); |
2348 } else { | 2345 } else { |
(...skipping 423 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2772 LAllocateBlockContext* result = | 2769 LAllocateBlockContext* result = |
2773 new(zone()) LAllocateBlockContext(context, function); | 2770 new(zone()) LAllocateBlockContext(context, function); |
2774 return MarkAsCall(DefineFixed(result, rsi), instr); | 2771 return MarkAsCall(DefineFixed(result, rsi), instr); |
2775 } | 2772 } |
2776 | 2773 |
2777 | 2774 |
2778 } // namespace internal | 2775 } // namespace internal |
2779 } // namespace v8 | 2776 } // namespace v8 |
2780 | 2777 |
2781 #endif // V8_TARGET_ARCH_X64 | 2778 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |