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

Side by Side Diff: src/compiler/x64/instruction-selector-x64.cc

Issue 2013193002: Turbofan: Rename IsFloat -> IsFP (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 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 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 <algorithm> 5 #include <algorithm>
6 6
7 #include "src/base/adapters.h" 7 #include "src/base/adapters.h"
8 #include "src/compiler/instruction-selector-impl.h" 8 #include "src/compiler/instruction-selector-impl.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/node-properties.h" 10 #include "src/compiler/node-properties.h"
(...skipping 1415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1426 } 1426 }
1427 } else { 1427 } else {
1428 // Push any stack arguments. 1428 // Push any stack arguments.
1429 for (PushParameter input : base::Reversed(*arguments)) { 1429 for (PushParameter input : base::Reversed(*arguments)) {
1430 // TODO(titzer): X64Push cannot handle stack->stack double moves 1430 // TODO(titzer): X64Push cannot handle stack->stack double moves
1431 // because there is no way to encode fixed double slots. 1431 // because there is no way to encode fixed double slots.
1432 InstructionOperand value = 1432 InstructionOperand value =
1433 g.CanBeImmediate(input.node()) 1433 g.CanBeImmediate(input.node())
1434 ? g.UseImmediate(input.node()) 1434 ? g.UseImmediate(input.node())
1435 : IsSupported(ATOM) || 1435 : IsSupported(ATOM) ||
1436 sequence()->IsFloat(GetVirtualRegister(input.node())) 1436 sequence()->IsFP(GetVirtualRegister(input.node()))
1437 ? g.UseRegister(input.node()) 1437 ? g.UseRegister(input.node())
1438 : g.Use(input.node()); 1438 : g.Use(input.node());
1439 Emit(kX64Push, g.NoOutput(), value); 1439 Emit(kX64Push, g.NoOutput(), value);
1440 } 1440 }
1441 } 1441 }
1442 } 1442 }
1443 1443
1444 1444
1445 bool InstructionSelector::IsTailCallAddressImmediate() { return true; } 1445 bool InstructionSelector::IsTailCallAddressImmediate() { return true; }
1446 1446
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
2152 MachineOperatorBuilder::kFloat64RoundTruncate | 2152 MachineOperatorBuilder::kFloat64RoundTruncate |
2153 MachineOperatorBuilder::kFloat32RoundTiesEven | 2153 MachineOperatorBuilder::kFloat32RoundTiesEven |
2154 MachineOperatorBuilder::kFloat64RoundTiesEven; 2154 MachineOperatorBuilder::kFloat64RoundTiesEven;
2155 } 2155 }
2156 return flags; 2156 return flags;
2157 } 2157 }
2158 2158
2159 } // namespace compiler 2159 } // namespace compiler
2160 } // namespace internal 2160 } // namespace internal
2161 } // namespace v8 2161 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/register-allocator-verifier.cc ('k') | src/compiler/x87/instruction-selector-x87.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698