| 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 int slot = buffer.pushed_nodes.size() - 1; | 683 int slot = buffer.pushed_nodes.size() - 1; |
| 684 for (Node* node : base::Reversed(buffer.pushed_nodes)) { | 684 for (Node* node : base::Reversed(buffer.pushed_nodes)) { |
| 685 Emit(kMips64StoreToStackSlot, g.NoOutput(), g.UseRegister(node), | 685 Emit(kMips64StoreToStackSlot, g.NoOutput(), g.UseRegister(node), |
| 686 g.TempImmediate(slot << kPointerSizeLog2)); | 686 g.TempImmediate(slot << kPointerSizeLog2)); |
| 687 slot--; | 687 slot--; |
| 688 } | 688 } |
| 689 | 689 |
| 690 // Pass label of exception handler block. | 690 // Pass label of exception handler block. |
| 691 CallDescriptor::Flags flags = descriptor->flags(); | 691 CallDescriptor::Flags flags = descriptor->flags(); |
| 692 if (handler) { | 692 if (handler) { |
| 693 DCHECK_EQ(IrOpcode::kIfException, handler->front()->opcode()); |
| 694 IfExceptionHint hint = OpParameter<IfExceptionHint>(handler->front()); |
| 695 if (hint == IfExceptionHint::kLocallyCaught) { |
| 696 flags |= CallDescriptor::kHasLocalCatchHandler; |
| 697 } |
| 693 flags |= CallDescriptor::kHasExceptionHandler; | 698 flags |= CallDescriptor::kHasExceptionHandler; |
| 694 buffer.instruction_args.push_back(g.Label(handler)); | 699 buffer.instruction_args.push_back(g.Label(handler)); |
| 695 } | 700 } |
| 696 | 701 |
| 697 // Select the appropriate opcode based on the call type. | 702 // Select the appropriate opcode based on the call type. |
| 698 InstructionCode opcode; | 703 InstructionCode opcode; |
| 699 switch (descriptor->kind()) { | 704 switch (descriptor->kind()) { |
| 700 case CallDescriptor::kCallCodeObject: { | 705 case CallDescriptor::kCallCodeObject: { |
| 701 opcode = kArchCallCodeObject; | 706 opcode = kArchCallCodeObject; |
| 702 break; | 707 break; |
| (...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1291 MachineOperatorBuilder::kFloat32Min | | 1296 MachineOperatorBuilder::kFloat32Min | |
| 1292 MachineOperatorBuilder::kFloat64Max | | 1297 MachineOperatorBuilder::kFloat64Max | |
| 1293 MachineOperatorBuilder::kFloat64Min; | 1298 MachineOperatorBuilder::kFloat64Min; |
| 1294 } | 1299 } |
| 1295 return flags; | 1300 return flags; |
| 1296 } | 1301 } |
| 1297 | 1302 |
| 1298 } // namespace compiler | 1303 } // namespace compiler |
| 1299 } // namespace internal | 1304 } // namespace internal |
| 1300 } // namespace v8 | 1305 } // namespace v8 |
| OLD | NEW |