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

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

Issue 1360603003: [arm64] Implement Float(32|64)(Min|Max) using fcsel. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
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/linkage.h" 8 #include "src/compiler/linkage.h"
9 #include "src/compiler/pipeline.h" 9 #include "src/compiler/pipeline.h"
10 #include "src/frames-inl.h" 10 #include "src/frames-inl.h"
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 BranchInfo branch; 296 BranchInfo branch;
297 branch.condition = condition; 297 branch.condition = condition;
298 branch.true_label = GetLabel(true_rpo); 298 branch.true_label = GetLabel(true_rpo);
299 branch.false_label = GetLabel(false_rpo); 299 branch.false_label = GetLabel(false_rpo);
300 branch.fallthru = IsNextInAssemblyOrder(false_rpo); 300 branch.fallthru = IsNextInAssemblyOrder(false_rpo);
301 // Assemble architecture-specific branch. 301 // Assemble architecture-specific branch.
302 AssembleArchBranch(instr, &branch); 302 AssembleArchBranch(instr, &branch);
303 } else if (mode == kFlags_set) { 303 } else if (mode == kFlags_set) {
304 // Assemble a boolean materialization after this instruction. 304 // Assemble a boolean materialization after this instruction.
305 AssembleArchBoolean(instr, condition); 305 AssembleArchBoolean(instr, condition);
306 } else if (mode == kFlags_select) {
307 // Assemble a select after this instruction.
308 AssembleArchSelect(instr, condition);
306 } 309 }
307 } 310 }
308 311
309 312
310 void CodeGenerator::AssembleSourcePosition(Instruction* instr) { 313 void CodeGenerator::AssembleSourcePosition(Instruction* instr) {
311 SourcePosition source_position; 314 SourcePosition source_position;
312 if (!code()->GetSourcePosition(instr, &source_position)) return; 315 if (!code()->GetSourcePosition(instr, &source_position)) return;
313 if (source_position == current_source_position_) return; 316 if (source_position == current_source_position_) return;
314 current_source_position_ = source_position; 317 current_source_position_ = source_position;
315 if (source_position.IsUnknown()) return; 318 if (source_position.IsUnknown()) return;
(...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 : masm_(gen->masm()), next_(gen->ools_) { 668 : masm_(gen->masm()), next_(gen->ools_) {
666 gen->ools_ = this; 669 gen->ools_ = this;
667 } 670 }
668 671
669 672
670 OutOfLineCode::~OutOfLineCode() {} 673 OutOfLineCode::~OutOfLineCode() {}
671 674
672 } // namespace compiler 675 } // namespace compiler
673 } // namespace internal 676 } // namespace internal
674 } // namespace v8 677 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698