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

Side by Side Diff: src/compiler/x87/instruction-selector-x87.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 "src/base/adapters.h" 5 #include "src/base/adapters.h"
6 #include "src/compiler/instruction-selector-impl.h" 6 #include "src/compiler/instruction-selector-impl.h"
7 #include "src/compiler/node-matchers.h" 7 #include "src/compiler/node-matchers.h"
8 #include "src/compiler/node-properties.h" 8 #include "src/compiler/node-properties.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after
1107 } 1107 }
1108 } else { 1108 } else {
1109 // Push any stack arguments. 1109 // Push any stack arguments.
1110 for (PushParameter input : base::Reversed(*arguments)) { 1110 for (PushParameter input : base::Reversed(*arguments)) {
1111 // TODO(titzer): handle pushing double parameters. 1111 // TODO(titzer): handle pushing double parameters.
1112 if (input.node() == nullptr) continue; 1112 if (input.node() == nullptr) continue;
1113 InstructionOperand value = 1113 InstructionOperand value =
1114 g.CanBeImmediate(input.node()) 1114 g.CanBeImmediate(input.node())
1115 ? g.UseImmediate(input.node()) 1115 ? g.UseImmediate(input.node())
1116 : IsSupported(ATOM) || 1116 : IsSupported(ATOM) ||
1117 sequence()->IsFloat(GetVirtualRegister(input.node())) 1117 sequence()->IsFP(GetVirtualRegister(input.node()))
1118 ? g.UseRegister(input.node()) 1118 ? g.UseRegister(input.node())
1119 : g.Use(input.node()); 1119 : g.Use(input.node());
1120 Emit(kX87Push, g.NoOutput(), value); 1120 Emit(kX87Push, g.NoOutput(), value);
1121 } 1121 }
1122 } 1122 }
1123 } 1123 }
1124 1124
1125 1125
1126 bool InstructionSelector::IsTailCallAddressImmediate() { return true; } 1126 bool InstructionSelector::IsTailCallAddressImmediate() { return true; }
1127 1127
(...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
1714 MachineOperatorBuilder::kFloat32RoundTruncate | 1714 MachineOperatorBuilder::kFloat32RoundTruncate |
1715 MachineOperatorBuilder::kFloat64RoundTruncate | 1715 MachineOperatorBuilder::kFloat64RoundTruncate |
1716 MachineOperatorBuilder::kFloat32RoundTiesEven | 1716 MachineOperatorBuilder::kFloat32RoundTiesEven |
1717 MachineOperatorBuilder::kFloat64RoundTiesEven; 1717 MachineOperatorBuilder::kFloat64RoundTiesEven;
1718 return flags; 1718 return flags;
1719 } 1719 }
1720 1720
1721 } // namespace compiler 1721 } // namespace compiler
1722 } // namespace internal 1722 } // namespace internal
1723 } // namespace v8 1723 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/x64/instruction-selector-x64.cc ('k') | test/unittests/compiler/instruction-selector-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698