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

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

Issue 1244693002: Add support for adding an external and a tagged pointer (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 | « no previous file | src/arm64/lithium-arm64.cc » ('j') | src/hydrogen-instructions.h » ('J')
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 #include "src/arm/lithium-codegen-arm.h" 9 #include "src/arm/lithium-codegen-arm.h"
10 #include "src/hydrogen-osr.h" 10 #include "src/hydrogen-osr.h"
(...skipping 1644 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); 1655 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand());
1656 LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand()); 1656 LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand());
1657 LAddI* add = new(zone()) LAddI(left, right); 1657 LAddI* add = new(zone()) LAddI(left, right);
1658 LInstruction* result = DefineAsRegister(add); 1658 LInstruction* result = DefineAsRegister(add);
1659 if (instr->CheckFlag(HValue::kCanOverflow)) { 1659 if (instr->CheckFlag(HValue::kCanOverflow)) {
1660 result = AssignEnvironment(result); 1660 result = AssignEnvironment(result);
1661 } 1661 }
1662 return result; 1662 return result;
1663 } else if (instr->representation().IsExternal()) { 1663 } else if (instr->representation().IsExternal()) {
1664 DCHECK(instr->left()->representation().IsExternal()); 1664 DCHECK(instr->left()->representation().IsExternal());
1665 DCHECK(instr->right()->representation().IsInteger32()); 1665 DCHECK(instr->right()->representation().IsInteger32() ||
1666 instr->right()->representation().IsTagged());
1666 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); 1667 DCHECK(!instr->CheckFlag(HValue::kCanOverflow));
1667 LOperand* left = UseRegisterAtStart(instr->left()); 1668 LOperand* left = UseRegisterAtStart(instr->left());
1668 LOperand* right = UseOrConstantAtStart(instr->right()); 1669 LOperand* right = UseOrConstantAtStart(instr->right());
1669 LAddI* add = new(zone()) LAddI(left, right); 1670 LAddI* add = new(zone()) LAddI(left, right);
1670 LInstruction* result = DefineAsRegister(add); 1671 LInstruction* result = DefineAsRegister(add);
1671 return result; 1672 return result;
1672 } else if (instr->representation().IsDouble()) { 1673 } else if (instr->representation().IsDouble()) {
1673 if (instr->left()->IsMul() && instr->left()->HasOneUse()) { 1674 if (instr->left()->IsMul() && instr->left()->HasOneUse()) {
1674 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); 1675 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right());
1675 } 1676 }
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after
2690 HAllocateBlockContext* instr) { 2691 HAllocateBlockContext* instr) {
2691 LOperand* context = UseFixed(instr->context(), cp); 2692 LOperand* context = UseFixed(instr->context(), cp);
2692 LOperand* function = UseRegisterAtStart(instr->function()); 2693 LOperand* function = UseRegisterAtStart(instr->function());
2693 LAllocateBlockContext* result = 2694 LAllocateBlockContext* result =
2694 new(zone()) LAllocateBlockContext(context, function); 2695 new(zone()) LAllocateBlockContext(context, function);
2695 return MarkAsCall(DefineFixed(result, cp), instr); 2696 return MarkAsCall(DefineFixed(result, cp), instr);
2696 } 2697 }
2697 2698
2698 } // namespace internal 2699 } // namespace internal
2699 } // namespace v8 2700 } // namespace v8
OLDNEW
« no previous file with comments | « no previous file | src/arm64/lithium-arm64.cc » ('j') | src/hydrogen-instructions.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698