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

Side by Side Diff: src/compiler/x64/code-generator-x64.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/opcodes.h ('k') | test/cctest/cctest.status » ('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/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties-inl.h" 10 #include "src/compiler/node-properties-inl.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 break; 215 break;
216 case kArchDeoptimize: { 216 case kArchDeoptimize: {
217 int deoptimization_id = MiscField::decode(instr->opcode()); 217 int deoptimization_id = MiscField::decode(instr->opcode());
218 BuildTranslation(instr, deoptimization_id); 218 BuildTranslation(instr, deoptimization_id);
219 219
220 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 220 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
221 isolate(), deoptimization_id, Deoptimizer::LAZY); 221 isolate(), deoptimization_id, Deoptimizer::LAZY);
222 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 222 __ call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
223 break; 223 break;
224 } 224 }
225 case kArchTruncateDoubleToI:
226 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0));
227 break;
225 case kX64Add32: 228 case kX64Add32:
226 ASSEMBLE_BINOP(addl); 229 ASSEMBLE_BINOP(addl);
227 break; 230 break;
228 case kX64Add: 231 case kX64Add:
229 ASSEMBLE_BINOP(addq); 232 ASSEMBLE_BINOP(addq);
230 break; 233 break;
231 case kX64Sub32: 234 case kX64Sub32:
232 ASSEMBLE_BINOP(subl); 235 ASSEMBLE_BINOP(subl);
233 break; 236 break;
234 case kX64Sub: 237 case kX64Sub:
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 } 999 }
997 1000
998 1001
999 void CodeGenerator::AddNopForSmiCodeInlining() { __ nop(); } 1002 void CodeGenerator::AddNopForSmiCodeInlining() { __ nop(); }
1000 1003
1001 #undef __ 1004 #undef __
1002 1005
1003 } // namespace internal 1006 } // namespace internal
1004 } // namespace compiler 1007 } // namespace compiler
1005 } // namespace v8 1008 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/opcodes.h ('k') | test/cctest/cctest.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698