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/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
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 1613 matching lines...) Expand 10 before | Expand all | Expand 10 after
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->left()->representation().IsExternal());
1634 DCHECK(instr->right()->representation().IsInteger32()); 1634 DCHECK((instr->external_add_type() == AddOfExternalAndInt32 &&
1635 instr->right()->representation().IsInteger32()) ||
1636 (instr->external_add_type() == AddOfExternalAndTagged &&
1637 instr->right()->representation().IsTagged()));
1635 DCHECK(!instr->CheckFlag(HValue::kCanOverflow)); 1638 DCHECK(!instr->CheckFlag(HValue::kCanOverflow));
1636 LOperand* left = UseRegisterAtStart(instr->left()); 1639 LOperand* left = UseRegisterAtStart(instr->left());
1637 LOperand* right = UseRegisterOrConstantAtStart(instr->right()); 1640 LOperand* right = UseRegisterOrConstantAtStart(instr->right());
1638 return DefineAsRegister(new (zone()) LAddE(left, right)); 1641 return DefineAsRegister(new (zone()) LAddE(left, right));
1639 } else if (instr->representation().IsDouble()) { 1642 } else if (instr->representation().IsDouble()) {
1640 if (kArchVariant == kMips64r2) { 1643 if (kArchVariant == kMips64r2) {
1641 if (instr->left()->IsMul()) 1644 if (instr->left()->IsMul())
1642 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right()); 1645 return DoMultiplyAdd(HMul::cast(instr->left()), instr->right());
1643 1646
1644 if (instr->right()->IsMul()) { 1647 if (instr->right()->IsMul()) {
(...skipping 1036 matching lines...) Expand 10 before | Expand all | Expand 10 after
2681 LAllocateBlockContext* result = 2684 LAllocateBlockContext* result =
2682 new(zone()) LAllocateBlockContext(context, function); 2685 new(zone()) LAllocateBlockContext(context, function);
2683 return MarkAsCall(DefineFixed(result, cp), instr); 2686 return MarkAsCall(DefineFixed(result, cp), instr);
2684 } 2687 }
2685 2688
2686 2689
2687 } // namespace internal 2690 } // namespace internal
2688 } // namespace v8 2691 } // namespace v8
2689 2692
2690 #endif // V8_TARGET_ARCH_MIPS64 2693 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« src/ia32/lithium-ia32.cc ('K') | « 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