| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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/code-assembler.h" | 5 #include "src/compiler/code-assembler.h" |
| 6 | 6 |
| 7 #include <ostream> | 7 #include <ostream> |
| 8 | 8 |
| 9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
| 10 #include "src/compiler/graph.h" | 10 #include "src/compiler/graph.h" |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 MachineType::PointerRepresentation(), | 65 MachineType::PointerRepresentation(), |
| 66 InstructionSelector::SupportedMachineOperatorFlags(), | 66 InstructionSelector::SupportedMachineOperatorFlags(), |
| 67 InstructionSelector::AlignmentRequirements())), | 67 InstructionSelector::AlignmentRequirements())), |
| 68 flags_(flags), | 68 flags_(flags), |
| 69 name_(name), | 69 name_(name), |
| 70 code_generated_(false), | 70 code_generated_(false), |
| 71 variables_(zone) {} | 71 variables_(zone) {} |
| 72 | 72 |
| 73 CodeAssemblerState::~CodeAssemblerState() {} | 73 CodeAssemblerState::~CodeAssemblerState() {} |
| 74 | 74 |
| 75 int CodeAssemblerState::parameter_count() const { |
| 76 return static_cast<int>(raw_assembler_->call_descriptor()->ParameterCount()); |
| 77 } |
| 78 |
| 75 CodeAssembler::~CodeAssembler() {} | 79 CodeAssembler::~CodeAssembler() {} |
| 76 | 80 |
| 77 class BreakOnNodeDecorator final : public GraphDecorator { | 81 class BreakOnNodeDecorator final : public GraphDecorator { |
| 78 public: | 82 public: |
| 79 explicit BreakOnNodeDecorator(NodeId node_id) : node_id_(node_id) {} | 83 explicit BreakOnNodeDecorator(NodeId node_id) : node_id_(node_id) {} |
| 80 | 84 |
| 81 void Decorate(Node* node) final { | 85 void Decorate(Node* node) final { |
| 82 if (node->id() == node_id_) { | 86 if (node->id() == node_id_) { |
| 83 base::OS::DebugBreak(); | 87 base::OS::DebugBreak(); |
| 84 } | 88 } |
| (...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 754 } | 758 } |
| 755 } | 759 } |
| 756 } | 760 } |
| 757 | 761 |
| 758 bound_ = true; | 762 bound_ = true; |
| 759 } | 763 } |
| 760 | 764 |
| 761 } // namespace compiler | 765 } // namespace compiler |
| 762 } // namespace internal | 766 } // namespace internal |
| 763 } // namespace v8 | 767 } // namespace v8 |
| OLD | NEW |