Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(170)

Side by Side Diff: src/compiler/code-assembler.cc

Issue 2567333002: [promises] port NewPromiseCapability to TF (Closed)
Patch Set: Make gcmole happy Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/compiler/types.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/compiler/code-assembler.h ('k') | src/compiler/types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698