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

Side by Side Diff: src/ppc/lithium-ppc.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/objects-inl.h ('k') | src/x64/lithium-codegen-x64.h » ('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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/lithium-inl.h" 10 #include "src/lithium-inl.h"
(...skipping 2265 matching lines...) Expand 10 before | Expand all | Expand 10 after
2276 } 2276 }
2277 } 2277 }
2278 2278
2279 return new (zone()) LStoreKeyed(object, key, val); 2279 return new (zone()) LStoreKeyed(object, key, val);
2280 } 2280 }
2281 2281
2282 DCHECK((instr->value()->representation().IsInteger32() && 2282 DCHECK((instr->value()->representation().IsInteger32() &&
2283 !IsDoubleOrFloatElementsKind(instr->elements_kind())) || 2283 !IsDoubleOrFloatElementsKind(instr->elements_kind())) ||
2284 (instr->value()->representation().IsDouble() && 2284 (instr->value()->representation().IsDouble() &&
2285 IsDoubleOrFloatElementsKind(instr->elements_kind()))); 2285 IsDoubleOrFloatElementsKind(instr->elements_kind())));
2286 DCHECK((instr->is_fixed_typed_array() && 2286 DCHECK(instr->elements()->representation().IsExternal());
2287 instr->elements()->representation().IsTagged()) ||
2288 (instr->is_external() &&
2289 instr->elements()->representation().IsExternal()));
2290 LOperand* val = UseRegister(instr->value()); 2287 LOperand* val = UseRegister(instr->value());
2291 LOperand* key = UseRegisterOrConstantAtStart(instr->key()); 2288 LOperand* key = UseRegisterOrConstantAtStart(instr->key());
2292 LOperand* backing_store = UseRegister(instr->elements()); 2289 LOperand* backing_store = UseRegister(instr->elements());
2293 return new (zone()) LStoreKeyed(backing_store, key, val); 2290 return new (zone()) LStoreKeyed(backing_store, key, val);
2294 } 2291 }
2295 2292
2296 2293
2297 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { 2294 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) {
2298 LOperand* context = UseFixed(instr->context(), cp); 2295 LOperand* context = UseFixed(instr->context(), cp);
2299 LOperand* obj = 2296 LOperand* obj =
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
2673 LInstruction* LChunkBuilder::DoAllocateBlockContext( 2670 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2674 HAllocateBlockContext* instr) { 2671 HAllocateBlockContext* instr) {
2675 LOperand* context = UseFixed(instr->context(), cp); 2672 LOperand* context = UseFixed(instr->context(), cp);
2676 LOperand* function = UseRegisterAtStart(instr->function()); 2673 LOperand* function = UseRegisterAtStart(instr->function());
2677 LAllocateBlockContext* result = 2674 LAllocateBlockContext* result =
2678 new (zone()) LAllocateBlockContext(context, function); 2675 new (zone()) LAllocateBlockContext(context, function);
2679 return MarkAsCall(DefineFixed(result, cp), instr); 2676 return MarkAsCall(DefineFixed(result, cp), instr);
2680 } 2677 }
2681 } // namespace internal 2678 } // namespace internal
2682 } // namespace v8 2679 } // namespace v8
OLDNEW
« no previous file with comments | « src/objects-inl.h ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698