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