| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |