Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(479)

Side by Side Diff: src/x64/lithium-x64.cc

Issue 1248483007: Store offset between fixed typed array base and data start in object (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/x64/lithium-codegen-x64.cc ('k') | src/x87/lithium-codegen-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698