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

Side by Side Diff: src/compiler/arm/code-generator-arm.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 | « no previous file | src/compiler/arm/instruction-selector-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 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/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.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 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 case kArchDeoptimize: { 151 case kArchDeoptimize: {
152 int deoptimization_id = MiscField::decode(instr->opcode()); 152 int deoptimization_id = MiscField::decode(instr->opcode());
153 BuildTranslation(instr, deoptimization_id); 153 BuildTranslation(instr, deoptimization_id);
154 154
155 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 155 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
156 isolate(), deoptimization_id, Deoptimizer::LAZY); 156 isolate(), deoptimization_id, Deoptimizer::LAZY);
157 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 157 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
158 DCHECK_EQ(LeaveCC, i.OutputSBit()); 158 DCHECK_EQ(LeaveCC, i.OutputSBit());
159 break; 159 break;
160 } 160 }
161 case kArchTruncateDoubleToI:
162 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0));
163 DCHECK_EQ(LeaveCC, i.OutputSBit());
164 break;
161 case kArmAdd: 165 case kArmAdd:
162 __ add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), 166 __ add(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1),
163 i.OutputSBit()); 167 i.OutputSBit());
164 break; 168 break;
165 case kArmAnd: 169 case kArmAnd:
166 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), 170 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1),
167 i.OutputSBit()); 171 i.OutputSBit());
168 break; 172 break;
169 case kArmBic: 173 case kArmBic:
170 __ bic(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1), 174 __ bic(i.OutputRegister(), i.InputRegister(0), i.InputOperand2(1),
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 830
827 void CodeGenerator::AddNopForSmiCodeInlining() { 831 void CodeGenerator::AddNopForSmiCodeInlining() {
828 // On 32-bit ARM we do not insert nops for inlined Smi code. 832 // On 32-bit ARM we do not insert nops for inlined Smi code.
829 UNREACHABLE(); 833 UNREACHABLE();
830 } 834 }
831 835
832 #undef __ 836 #undef __
833 } 837 }
834 } 838 }
835 } // namespace v8::internal::compiler 839 } // namespace v8::internal::compiler
OLDNEW
« no previous file with comments | « no previous file | src/compiler/arm/instruction-selector-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698