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

Side by Side Diff: src/mips/lithium-mips.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 | « src/ia32/lithium-ia32.cc ('k') | src/mips64/lithium-mips64.cc » ('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_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after
1615 DCHECK(instr->right()->representation().Equals(instr->representation())); 1615 DCHECK(instr->right()->representation().Equals(instr->representation()));
1616 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand()); 1616 LOperand* left = UseRegisterAtStart(instr->BetterLeftOperand());
1617 LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand()); 1617 LOperand* right = UseOrConstantAtStart(instr->BetterRightOperand());
1618 LAddI* add = new(zone()) LAddI(left, right); 1618 LAddI* add = new(zone()) LAddI(left, right);
1619 LInstruction* result = DefineAsRegister(add); 1619 LInstruction* result = DefineAsRegister(add);
1620 if (instr->CheckFlag(HValue::kCanOverflow)) { 1620 if (instr->CheckFlag(HValue::kCanOverflow)) {
1621 result = AssignEnvironment(result); 1621 result = AssignEnvironment(result);
1622 } 1622 }
1623 return result; 1623 return result;
1624 } else if (instr->representation().IsExternal()) { 1624 } else if (instr->representation().IsExternal()) {
1625 DCHECK(instr->left()->representation().IsExternal()); 1625 DCHECK(instr->IsConsistentExternalRepresentation());
1626 DCHECK(instr->right()->representation().IsInteger32());
1627 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); 1626 DCHECK(!instr->CheckFlag(HValue::kCanOverflow));
1628 LOperand* left = UseRegisterAtStart(instr->left()); 1627 LOperand* left = UseRegisterAtStart(instr->left());
1629 LOperand* right = UseOrConstantAtStart(instr->right()); 1628 LOperand* right = UseOrConstantAtStart(instr->right());
1630 LAddI* add = new(zone()) LAddI(left, right); 1629 LAddI* add = new(zone()) LAddI(left, right);
1631 LInstruction* result = DefineAsRegister(add); 1630 LInstruction* result = DefineAsRegister(add);
1632 return result; 1631 return result;
1633 } else if (instr->representation().IsDouble()) { 1632 } else if (instr->representation().IsDouble()) {
1634 if (IsMipsArchVariant(kMips32r2)) { 1633 if (IsMipsArchVariant(kMips32r2)) {
1635 if (instr->left()->IsMul()) 1634 if (instr->left()->IsMul())
1636 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); 1635 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right());
(...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after
2676 LOperand* function = UseRegisterAtStart(instr->function()); 2675 LOperand* function = UseRegisterAtStart(instr->function());
2677 LAllocateBlockContext* result = 2676 LAllocateBlockContext* result =
2678 new(zone()) LAllocateBlockContext(context, function); 2677 new(zone()) LAllocateBlockContext(context, function);
2679 return MarkAsCall(DefineFixed(result, cp), instr); 2678 return MarkAsCall(DefineFixed(result, cp), instr);
2680 } 2679 }
2681 2680
2682 } // namespace internal 2681 } // namespace internal
2683 } // namespace v8 2682 } // namespace v8
2684 2683
2685 #endif // V8_TARGET_ARCH_MIPS 2684 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/mips64/lithium-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698