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

Side by Side Diff: src/x87/lithium-x87.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/x87/lithium-codegen-x87.cc ('k') | tools/external-reference-check.py » ('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_X87 9 #if V8_TARGET_ARCH_X87
10 10
(...skipping 2332 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « src/x87/lithium-codegen-x87.cc ('k') | tools/external-reference-check.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698