| 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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 814 } | 818 } |
| 815 } | 819 } |
| 816 } | 820 } |
| 817 | 821 |
| 818 bound_ = true; | 822 bound_ = true; |
| 819 } | 823 } |
| 820 | 824 |
| 821 } // namespace compiler | 825 } // namespace compiler |
| 822 } // namespace internal | 826 } // namespace internal |
| 823 } // namespace v8 | 827 } // namespace v8 |
| OLD | NEW |