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

Side by Side Diff: src/compiler/arm64/code-generator-arm64.cc

Issue 484103002: [turbofan] Add TruncateFloat64ToInt32 machine operator. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Disable test-run-machops/RunTruncateFloat64ToInt32P on arm64. Created 6 years, 4 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/compiler/arm/instruction-selector-arm.cc ('k') | src/compiler/change-lowering.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm64/macro-assembler-arm64.h" 7 #include "src/arm64/macro-assembler-arm64.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 break; 142 break;
143 case kArchDeoptimize: { 143 case kArchDeoptimize: {
144 int deoptimization_id = MiscField::decode(instr->opcode()); 144 int deoptimization_id = MiscField::decode(instr->opcode());
145 BuildTranslation(instr, deoptimization_id); 145 BuildTranslation(instr, deoptimization_id);
146 146
147 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 147 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
148 isolate(), deoptimization_id, Deoptimizer::LAZY); 148 isolate(), deoptimization_id, Deoptimizer::LAZY);
149 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 149 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
150 break; 150 break;
151 } 151 }
152 case kArchTruncateDoubleToI:
153 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0));
154 break;
152 case kArm64Add: 155 case kArm64Add:
153 __ Add(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1)); 156 __ Add(i.OutputRegister(), i.InputRegister(0), i.InputOperand(1));
154 break; 157 break;
155 case kArm64Add32: 158 case kArm64Add32:
156 if (FlagsModeField::decode(opcode) != kFlags_none) { 159 if (FlagsModeField::decode(opcode) != kFlags_none) {
157 __ Adds(i.OutputRegister32(), i.InputRegister32(0), 160 __ Adds(i.OutputRegister32(), i.InputRegister32(0),
158 i.InputOperand32(1)); 161 i.InputOperand32(1));
159 } else { 162 } else {
160 __ Add(i.OutputRegister32(), i.InputRegister32(0), i.InputOperand32(1)); 163 __ Add(i.OutputRegister32(), i.InputRegister32(0), i.InputOperand32(1));
161 } 164 }
(...skipping 670 matching lines...) Expand 10 before | Expand all | Expand 10 after
832 } 835 }
833 836
834 837
835 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); } 838 void CodeGenerator::AddNopForSmiCodeInlining() { __ movz(xzr, 0); }
836 839
837 #undef __ 840 #undef __
838 841
839 } // namespace compiler 842 } // namespace compiler
840 } // namespace internal 843 } // namespace internal
841 } // namespace v8 844 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/arm/instruction-selector-arm.cc ('k') | src/compiler/change-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698