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/base/bits.h" | 6 #include "src/base/bits.h" |
7 #include "src/compiler/instruction-selector-impl.h" | 7 #include "src/compiler/instruction-selector-impl.h" |
8 #include "src/compiler/node-matchers.h" | 8 #include "src/compiler/node-matchers.h" |
9 #include "src/compiler/node-properties.h" | 9 #include "src/compiler/node-properties.h" |
10 | 10 |
(...skipping 1088 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1099 InitializeCallBuffer(node, &buffer, true, false); | 1099 InitializeCallBuffer(node, &buffer, true, false); |
1100 | 1100 |
1101 // Push any stack arguments. | 1101 // Push any stack arguments. |
1102 for (Node* node : base::Reversed(buffer.pushed_nodes)) { | 1102 for (Node* node : base::Reversed(buffer.pushed_nodes)) { |
1103 Emit(kArmPush, g.NoOutput(), g.UseRegister(node)); | 1103 Emit(kArmPush, g.NoOutput(), g.UseRegister(node)); |
1104 } | 1104 } |
1105 | 1105 |
1106 // Pass label of exception handler block. | 1106 // Pass label of exception handler block. |
1107 CallDescriptor::Flags flags = descriptor->flags(); | 1107 CallDescriptor::Flags flags = descriptor->flags(); |
1108 if (handler) { | 1108 if (handler) { |
| 1109 DCHECK_EQ(IrOpcode::kIfException, handler->front()->opcode()); |
| 1110 IfExceptionHint hint = OpParameter<IfExceptionHint>(handler->front()); |
| 1111 if (hint == IfExceptionHint::kLocallyCaught) { |
| 1112 flags |= CallDescriptor::kHasLocalCatchHandler; |
| 1113 } |
1109 flags |= CallDescriptor::kHasExceptionHandler; | 1114 flags |= CallDescriptor::kHasExceptionHandler; |
1110 buffer.instruction_args.push_back(g.Label(handler)); | 1115 buffer.instruction_args.push_back(g.Label(handler)); |
1111 } | 1116 } |
1112 | 1117 |
1113 // Select the appropriate opcode based on the call type. | 1118 // Select the appropriate opcode based on the call type. |
1114 InstructionCode opcode; | 1119 InstructionCode opcode; |
1115 switch (descriptor->kind()) { | 1120 switch (descriptor->kind()) { |
1116 case CallDescriptor::kCallCodeObject: { | 1121 case CallDescriptor::kCallCodeObject: { |
1117 opcode = kArchCallCodeObject; | 1122 opcode = kArchCallCodeObject; |
1118 break; | 1123 break; |
(...skipping 481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1600 flags |= MachineOperatorBuilder::kFloat64RoundDown | | 1605 flags |= MachineOperatorBuilder::kFloat64RoundDown | |
1601 MachineOperatorBuilder::kFloat64RoundTruncate | | 1606 MachineOperatorBuilder::kFloat64RoundTruncate | |
1602 MachineOperatorBuilder::kFloat64RoundTiesAway; | 1607 MachineOperatorBuilder::kFloat64RoundTiesAway; |
1603 } | 1608 } |
1604 return flags; | 1609 return flags; |
1605 } | 1610 } |
1606 | 1611 |
1607 } // namespace compiler | 1612 } // namespace compiler |
1608 } // namespace internal | 1613 } // namespace internal |
1609 } // namespace v8 | 1614 } // namespace v8 |
OLD | NEW |