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

Side by Side Diff: src/arm64/lithium-codegen-arm64.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/arm64/lithium-arm64.cc ('k') | src/assembler.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/arm64/lithium-codegen-arm64.h" 7 #include "src/arm64/lithium-codegen-arm64.h"
8 #include "src/arm64/lithium-gap-resolver-arm64.h" 8 #include "src/arm64/lithium-gap-resolver-arm64.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 1458 matching lines...) Expand 10 before | Expand all | Expand 10 after
1469 __ Sub(result.W(), length, index); 1469 __ Sub(result.W(), length, index);
1470 __ Add(result.W(), result.W(), 1); 1470 __ Add(result.W(), result.W(), 1);
1471 __ Ldr(result, MemOperand(arguments, result, UXTW, kPointerSizeLog2)); 1471 __ Ldr(result, MemOperand(arguments, result, UXTW, kPointerSizeLog2));
1472 } 1472 }
1473 } 1473 }
1474 1474
1475 1475
1476 void LCodeGen::DoAddE(LAddE* instr) { 1476 void LCodeGen::DoAddE(LAddE* instr) {
1477 Register result = ToRegister(instr->result()); 1477 Register result = ToRegister(instr->result());
1478 Register left = ToRegister(instr->left()); 1478 Register left = ToRegister(instr->left());
1479 Operand right = (instr->right()->IsConstantOperand()) 1479 Operand right = Operand(x0); // Dummy initialization.
1480 ? ToInteger32(LConstantOperand::cast(instr->right())) 1480 if (instr->hydrogen()->external_add_type() == AddOfExternalAndTagged) {
1481 : Operand(ToRegister32(instr->right()), SXTW); 1481 right = Operand(ToRegister(instr->right()));
1482 } else if (instr->right()->IsConstantOperand()) {
1483 right = ToInteger32(LConstantOperand::cast(instr->right()));
1484 } else {
1485 right = Operand(ToRegister32(instr->right()), SXTW);
1486 }
1482 1487
1483 DCHECK(!instr->hydrogen()->CheckFlag(HValue::kCanOverflow)); 1488 DCHECK(!instr->hydrogen()->CheckFlag(HValue::kCanOverflow));
1484 __ Add(result, left, right); 1489 __ Add(result, left, right);
1485 } 1490 }
1486 1491
1487 1492
1488 void LCodeGen::DoAddI(LAddI* instr) { 1493 void LCodeGen::DoAddI(LAddI* instr) {
1489 bool can_overflow = instr->hydrogen()->CheckFlag(HValue::kCanOverflow); 1494 bool can_overflow = instr->hydrogen()->CheckFlag(HValue::kCanOverflow);
1490 Register result = ToRegister32(instr->result()); 1495 Register result = ToRegister32(instr->result());
1491 Register left = ToRegister32(instr->left()); 1496 Register left = ToRegister32(instr->left());
(...skipping 4675 matching lines...) Expand 10 before | Expand all | Expand 10 after
6167 Handle<ScopeInfo> scope_info = instr->scope_info(); 6172 Handle<ScopeInfo> scope_info = instr->scope_info();
6168 __ Push(scope_info); 6173 __ Push(scope_info);
6169 __ Push(ToRegister(instr->function())); 6174 __ Push(ToRegister(instr->function()));
6170 CallRuntime(Runtime::kPushBlockContext, 2, instr); 6175 CallRuntime(Runtime::kPushBlockContext, 2, instr);
6171 RecordSafepoint(Safepoint::kNoLazyDeopt); 6176 RecordSafepoint(Safepoint::kNoLazyDeopt);
6172 } 6177 }
6173 6178
6174 6179
6175 } // namespace internal 6180 } // namespace internal
6176 } // namespace v8 6181 } // namespace v8
OLDNEW
« no previous file with comments | « src/arm64/lithium-arm64.cc ('k') | src/assembler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698