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/compiler/instruction-selector-impl.h" | 5 #include "src/compiler/instruction-selector-impl.h" |
6 #include "src/compiler/node-matchers.h" | 6 #include "src/compiler/node-matchers.h" |
7 #include "src/compiler/node-properties.h" | 7 #include "src/compiler/node-properties.h" |
8 | 8 |
9 namespace v8 { | 9 namespace v8 { |
10 namespace internal { | 10 namespace internal { |
(...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1269 Emit(kArm64PokePair, g.NoOutput(), | 1269 Emit(kArm64PokePair, g.NoOutput(), |
1270 g.UseRegister(buffer.pushed_nodes[slot]), | 1270 g.UseRegister(buffer.pushed_nodes[slot]), |
1271 g.UseRegister(buffer.pushed_nodes[slot - 1]), | 1271 g.UseRegister(buffer.pushed_nodes[slot - 1]), |
1272 g.TempImmediate(slot)); | 1272 g.TempImmediate(slot)); |
1273 } | 1273 } |
1274 } | 1274 } |
1275 | 1275 |
1276 // Pass label of exception handler block. | 1276 // Pass label of exception handler block. |
1277 CallDescriptor::Flags flags = descriptor->flags(); | 1277 CallDescriptor::Flags flags = descriptor->flags(); |
1278 if (handler != nullptr) { | 1278 if (handler != nullptr) { |
| 1279 DCHECK_EQ(IrOpcode::kIfException, handler->front()->opcode()); |
| 1280 IfExceptionHint hint = OpParameter<IfExceptionHint>(handler->front()); |
| 1281 if (hint == IfExceptionHint::kLocallyCaught) { |
| 1282 flags |= CallDescriptor::kHasLocalCatchHandler; |
| 1283 } |
1279 flags |= CallDescriptor::kHasExceptionHandler; | 1284 flags |= CallDescriptor::kHasExceptionHandler; |
1280 buffer.instruction_args.push_back(g.Label(handler)); | 1285 buffer.instruction_args.push_back(g.Label(handler)); |
1281 } | 1286 } |
1282 | 1287 |
1283 // Select the appropriate opcode based on the call type. | 1288 // Select the appropriate opcode based on the call type. |
1284 InstructionCode opcode; | 1289 InstructionCode opcode; |
1285 switch (descriptor->kind()) { | 1290 switch (descriptor->kind()) { |
1286 case CallDescriptor::kCallCodeObject: { | 1291 case CallDescriptor::kCallCodeObject: { |
1287 opcode = kArchCallCodeObject; | 1292 opcode = kArchCallCodeObject; |
1288 break; | 1293 break; |
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1900 MachineOperatorBuilder::kFloat64RoundTruncate | | 1905 MachineOperatorBuilder::kFloat64RoundTruncate | |
1901 MachineOperatorBuilder::kFloat64RoundTiesAway | | 1906 MachineOperatorBuilder::kFloat64RoundTiesAway | |
1902 MachineOperatorBuilder::kWord32ShiftIsSafe | | 1907 MachineOperatorBuilder::kWord32ShiftIsSafe | |
1903 MachineOperatorBuilder::kInt32DivIsSafe | | 1908 MachineOperatorBuilder::kInt32DivIsSafe | |
1904 MachineOperatorBuilder::kUint32DivIsSafe; | 1909 MachineOperatorBuilder::kUint32DivIsSafe; |
1905 } | 1910 } |
1906 | 1911 |
1907 } // namespace compiler | 1912 } // namespace compiler |
1908 } // namespace internal | 1913 } // namespace internal |
1909 } // namespace v8 | 1914 } // namespace v8 |
OLD | NEW |