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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
846 InstructionOperand value = g.CanBeImmediate(input) | 846 InstructionOperand value = g.CanBeImmediate(input) |
847 ? g.UseImmediate(input) | 847 ? g.UseImmediate(input) |
848 : g.UseRegister(input); | 848 : g.UseRegister(input); |
849 Emit(kX87Poke | MiscField::encode(slot), g.NoOutput(), value); | 849 Emit(kX87Poke | MiscField::encode(slot), g.NoOutput(), value); |
850 } | 850 } |
851 } | 851 } |
852 } else { | 852 } else { |
853 // Push any stack arguments. | 853 // Push any stack arguments. |
854 for (Node* input : base::Reversed(buffer.pushed_nodes)) { | 854 for (Node* input : base::Reversed(buffer.pushed_nodes)) { |
855 // TODO(titzer): handle pushing double parameters. | 855 // TODO(titzer): handle pushing double parameters. |
| 856 if (input == nullptr) continue; |
856 InstructionOperand value = | 857 InstructionOperand value = |
857 g.CanBeImmediate(input) | 858 g.CanBeImmediate(input) |
858 ? g.UseImmediate(input) | 859 ? g.UseImmediate(input) |
859 : IsSupported(ATOM) ? g.UseRegister(input) : g.Use(input); | 860 : IsSupported(ATOM) ? g.UseRegister(input) : g.Use(input); |
860 Emit(kX87Push, g.NoOutput(), value); | 861 Emit(kX87Push, g.NoOutput(), value); |
861 } | 862 } |
862 } | 863 } |
863 | 864 |
864 // Pass label of exception handler block. | 865 // Pass label of exception handler block. |
865 CallDescriptor::Flags flags = descriptor->flags(); | 866 CallDescriptor::Flags flags = descriptor->flags(); |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1347 MachineOperatorBuilder::kFloat32Min | | 1348 MachineOperatorBuilder::kFloat32Min | |
1348 MachineOperatorBuilder::kFloat64Max | | 1349 MachineOperatorBuilder::kFloat64Max | |
1349 MachineOperatorBuilder::kFloat64Min | | 1350 MachineOperatorBuilder::kFloat64Min | |
1350 MachineOperatorBuilder::kWord32ShiftIsSafe; | 1351 MachineOperatorBuilder::kWord32ShiftIsSafe; |
1351 return flags; | 1352 return flags; |
1352 } | 1353 } |
1353 | 1354 |
1354 } // namespace compiler | 1355 } // namespace compiler |
1355 } // namespace internal | 1356 } // namespace internal |
1356 } // namespace v8 | 1357 } // namespace v8 |
OLD | NEW |