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

Side by Side Diff: src/arm64/lithium-arm64.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/arm64/interface-descriptors-arm64.cc ('k') | src/arm64/lithium-codegen-arm64.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 #include "src/arm64/lithium-codegen-arm64.h" 7 #include "src/arm64/lithium-codegen-arm64.h"
8 #include "src/hydrogen-osr.h" 8 #include "src/hydrogen-osr.h"
9 #include "src/lithium-inl.h" 9 #include "src/lithium-inl.h"
10 10
(...skipping 1999 matching lines...) Expand 10 before | Expand all | Expand 10 after
2010 } 2010 }
2011 2011
2012 2012
2013 LInstruction* LChunkBuilder::DoPower(HPower* instr) { 2013 LInstruction* LChunkBuilder::DoPower(HPower* instr) {
2014 DCHECK(instr->representation().IsDouble()); 2014 DCHECK(instr->representation().IsDouble());
2015 // We call a C function for double power. It can't trigger a GC. 2015 // We call a C function for double power. It can't trigger a GC.
2016 // We need to use fixed result register for the call. 2016 // We need to use fixed result register for the call.
2017 Representation exponent_type = instr->right()->representation(); 2017 Representation exponent_type = instr->right()->representation();
2018 DCHECK(instr->left()->representation().IsDouble()); 2018 DCHECK(instr->left()->representation().IsDouble());
2019 LOperand* left = UseFixedDouble(instr->left(), d0); 2019 LOperand* left = UseFixedDouble(instr->left(), d0);
2020 LOperand* right = exponent_type.IsInteger32() 2020 LOperand* right;
2021 ? UseFixed(instr->right(), x12) 2021 if (exponent_type.IsInteger32()) {
2022 : exponent_type.IsDouble() 2022 right = UseFixed(instr->right(), MathPowIntegerDescriptor::exponent());
2023 ? UseFixedDouble(instr->right(), d1) 2023 } else if (exponent_type.IsDouble()) {
2024 : UseFixed(instr->right(), x11); 2024 right = UseFixedDouble(instr->right(), d1);
2025 } else {
2026 right = UseFixed(instr->right(), MathPowTaggedDescriptor::exponent());
2027 }
2025 LPower* result = new(zone()) LPower(left, right); 2028 LPower* result = new(zone()) LPower(left, right);
2026 return MarkAsCall(DefineFixedDouble(result, d0), 2029 return MarkAsCall(DefineFixedDouble(result, d0),
2027 instr, 2030 instr,
2028 CAN_DEOPTIMIZE_EAGERLY); 2031 CAN_DEOPTIMIZE_EAGERLY);
2029 } 2032 }
2030 2033
2031 2034
2032 LInstruction* LChunkBuilder::DoPushArguments(HPushArguments* instr) { 2035 LInstruction* LChunkBuilder::DoPushArguments(HPushArguments* instr) {
2033 int argc = instr->OperandCount(); 2036 int argc = instr->OperandCount();
2034 AddInstruction(new(zone()) LPreparePushArguments(argc), instr); 2037 AddInstruction(new(zone()) LPreparePushArguments(argc), instr);
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
2750 HAllocateBlockContext* instr) { 2753 HAllocateBlockContext* instr) {
2751 LOperand* context = UseFixed(instr->context(), cp); 2754 LOperand* context = UseFixed(instr->context(), cp);
2752 LOperand* function = UseRegisterAtStart(instr->function()); 2755 LOperand* function = UseRegisterAtStart(instr->function());
2753 LAllocateBlockContext* result = 2756 LAllocateBlockContext* result =
2754 new(zone()) LAllocateBlockContext(context, function); 2757 new(zone()) LAllocateBlockContext(context, function);
2755 return MarkAsCall(DefineFixed(result, cp), instr); 2758 return MarkAsCall(DefineFixed(result, cp), instr);
2756 } 2759 }
2757 2760
2758 2761
2759 } } // namespace v8::internal 2762 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm64/interface-descriptors-arm64.cc ('k') | src/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698