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

Side by Side Diff: src/mips64/lithium-mips64.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/mips/lithium-mips.cc ('k') | src/objects.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 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_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 2264 matching lines...) Expand 10 before | Expand all | Expand 10 after
2275 } 2275 }
2276 2276
2277 return new(zone()) LStoreKeyed(object, key, val); 2277 return new(zone()) LStoreKeyed(object, key, val);
2278 } 2278 }
2279 2279
2280 DCHECK( 2280 DCHECK(
2281 (instr->value()->representation().IsInteger32() && 2281 (instr->value()->representation().IsInteger32() &&
2282 !IsDoubleOrFloatElementsKind(instr->elements_kind())) || 2282 !IsDoubleOrFloatElementsKind(instr->elements_kind())) ||
2283 (instr->value()->representation().IsDouble() && 2283 (instr->value()->representation().IsDouble() &&
2284 IsDoubleOrFloatElementsKind(instr->elements_kind()))); 2284 IsDoubleOrFloatElementsKind(instr->elements_kind())));
2285 DCHECK((instr->is_fixed_typed_array() && 2285 DCHECK(instr->elements()->representation().IsExternal());
2286 instr->elements()->representation().IsTagged()) ||
2287 (instr->is_external() &&
2288 instr->elements()->representation().IsExternal()));
2289 LOperand* val = UseRegister(instr->value()); 2286 LOperand* val = UseRegister(instr->value());
2290 LOperand* key = UseRegisterOrConstantAtStart(instr->key()); 2287 LOperand* key = UseRegisterOrConstantAtStart(instr->key());
2291 LOperand* backing_store = UseRegister(instr->elements()); 2288 LOperand* backing_store = UseRegister(instr->elements());
2292 return new(zone()) LStoreKeyed(backing_store, key, val); 2289 return new(zone()) LStoreKeyed(backing_store, key, val);
2293 } 2290 }
2294 2291
2295 2292
2296 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) { 2293 LInstruction* LChunkBuilder::DoStoreKeyedGeneric(HStoreKeyedGeneric* instr) {
2297 LOperand* context = UseFixed(instr->context(), cp); 2294 LOperand* context = UseFixed(instr->context(), cp);
2298 LOperand* obj = 2295 LOperand* obj =
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
2680 LAllocateBlockContext* result = 2677 LAllocateBlockContext* result =
2681 new(zone()) LAllocateBlockContext(context, function); 2678 new(zone()) LAllocateBlockContext(context, function);
2682 return MarkAsCall(DefineFixed(result, cp), instr); 2679 return MarkAsCall(DefineFixed(result, cp), instr);
2683 } 2680 }
2684 2681
2685 2682
2686 } // namespace internal 2683 } // namespace internal
2687 } // namespace v8 2684 } // namespace v8
2688 2685
2689 #endif // V8_TARGET_ARCH_MIPS64 2686 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698