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

Side by Side Diff: src/mips64/lithium-mips64.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/mips/lithium-mips.cc ('k') | src/ppc/lithium-ppc.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_MIPS64 9 #if V8_TARGET_ARCH_MIPS64
10 10
(...skipping 1612 matching lines...) Expand 10 before | Expand all | Expand 10 after
1623 LOperand* right = UseRegisterOrConstantAtStart(instr->BetterRightOperand()); 1623 LOperand* right = UseRegisterOrConstantAtStart(instr->BetterRightOperand());
1624 LInstruction* result = 1624 LInstruction* result =
1625 instr->representation().IsSmi() 1625 instr->representation().IsSmi()
1626 ? DefineAsRegister(new (zone()) LAddS(left, right)) 1626 ? DefineAsRegister(new (zone()) LAddS(left, right))
1627 : DefineAsRegister(new (zone()) LAddI(left, right)); 1627 : DefineAsRegister(new (zone()) LAddI(left, right));
1628 if (instr->CheckFlag(HValue::kCanOverflow)) { 1628 if (instr->CheckFlag(HValue::kCanOverflow)) {
1629 result = AssignEnvironment(result); 1629 result = AssignEnvironment(result);
1630 } 1630 }
1631 return result; 1631 return result;
1632 } else if (instr->representation().IsExternal()) { 1632 } else if (instr->representation().IsExternal()) {
1633 DCHECK(instr->left()->representation().IsExternal()); 1633 DCHECK(instr->IsConsistentExternalRepresentation());
1634 DCHECK(instr->right()->representation().IsInteger32());
1635 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); 1634 DCHECK(!instr->CheckFlag(HValue::kCanOverflow));
1636 LOperand* left = UseRegisterAtStart(instr->left()); 1635 LOperand* left = UseRegisterAtStart(instr->left());
1637 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); 1636 LOperand* right = UseRegisterOrConstantAtStart(instr->right());
1638 return DefineAsRegister(new (zone()) LAddE(left, right)); 1637 return DefineAsRegister(new (zone()) LAddE(left, right));
1639 } else if (instr->representation().IsDouble()) { 1638 } else if (instr->representation().IsDouble()) {
1640 if (kArchVariant == kMips64r2) { 1639 if (kArchVariant == kMips64r2) {
1641 if (instr->left()->IsMul()) 1640 if (instr->left()->IsMul())
1642 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); 1641 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right());
1643 1642
1644 if (instr->right()->IsMul()) { 1643 if (instr->right()->IsMul()) {
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
2681 LAllocateBlockContext* result = 2680 LAllocateBlockContext* result =
2682 new(zone()) LAllocateBlockContext(context, function); 2681 new(zone()) LAllocateBlockContext(context, function);
2683 return MarkAsCall(DefineFixed(result, cp), instr); 2682 return MarkAsCall(DefineFixed(result, cp), instr);
2684 } 2683 }
2685 2684
2686 2685
2687 } // namespace internal 2686 } // namespace internal
2688 } // namespace v8 2687 } // namespace v8
2689 2688
2690 #endif // V8_TARGET_ARCH_MIPS64 2689 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.cc ('k') | src/ppc/lithium-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698