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

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

Issue 551043005: Added CallInterfaceDescriptors to all code stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ic/arm/handler-compiler-arm.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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_IA32 7 #if V8_TARGET_ARCH_IA32
8 8
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/ia32/lithium-codegen-ia32.h" 10 #include "src/ia32/lithium-codegen-ia32.h"
(...skipping 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after
1645 } 1645 }
1646 1646
1647 1647
1648 LInstruction* LChunkBuilder::DoPower(HPower* instr) { 1648 LInstruction* LChunkBuilder::DoPower(HPower* instr) {
1649 DCHECK(instr->representation().IsDouble()); 1649 DCHECK(instr->representation().IsDouble());
1650 // We call a C function for double power. It can't trigger a GC. 1650 // We call a C function for double power. It can't trigger a GC.
1651 // We need to use fixed result register for the call. 1651 // We need to use fixed result register for the call.
1652 Representation exponent_type = instr->right()->representation(); 1652 Representation exponent_type = instr->right()->representation();
1653 DCHECK(instr->left()->representation().IsDouble()); 1653 DCHECK(instr->left()->representation().IsDouble());
1654 LOperand* left = UseFixedDouble(instr->left(), xmm2); 1654 LOperand* left = UseFixedDouble(instr->left(), xmm2);
1655 LOperand* right = exponent_type.IsDouble() ? 1655 LOperand* right =
1656 UseFixedDouble(instr->right(), xmm1) : 1656 exponent_type.IsDouble()
1657 UseFixed(instr->right(), eax); 1657 ? UseFixedDouble(instr->right(), xmm1)
1658 : UseFixed(instr->right(), MathPowTaggedDescriptor::exponent());
1658 LPower* result = new(zone()) LPower(left, right); 1659 LPower* result = new(zone()) LPower(left, right);
1659 return MarkAsCall(DefineFixedDouble(result, xmm3), instr, 1660 return MarkAsCall(DefineFixedDouble(result, xmm3), instr,
1660 CAN_DEOPTIMIZE_EAGERLY); 1661 CAN_DEOPTIMIZE_EAGERLY);
1661 } 1662 }
1662 1663
1663 1664
1664 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) { 1665 LInstruction* LChunkBuilder::DoCompareGeneric(HCompareGeneric* instr) {
1665 DCHECK(instr->left()->representation().IsSmiOrTagged()); 1666 DCHECK(instr->left()->representation().IsSmiOrTagged());
1666 DCHECK(instr->right()->representation().IsSmiOrTagged()); 1667 DCHECK(instr->right()->representation().IsSmiOrTagged());
1667 LOperand* context = UseFixed(instr->context(), esi); 1668 LOperand* context = UseFixed(instr->context(), esi);
(...skipping 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after
2714 LOperand* function = UseRegisterAtStart(instr->function()); 2715 LOperand* function = UseRegisterAtStart(instr->function());
2715 LAllocateBlockContext* result = 2716 LAllocateBlockContext* result =
2716 new(zone()) LAllocateBlockContext(context, function); 2717 new(zone()) LAllocateBlockContext(context, function);
2717 return MarkAsCall(DefineFixed(result, esi), instr); 2718 return MarkAsCall(DefineFixed(result, esi), instr);
2718 } 2719 }
2719 2720
2720 2721
2721 } } // namespace v8::internal 2722 } } // namespace v8::internal
2722 2723
2723 #endif // V8_TARGET_ARCH_IA32 2724 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | src/ic/arm/handler-compiler-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698