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

Unified Diff: src/compiler/code-assembler.cc

Issue 2567333002: [promises] port NewPromiseCapability to TF (Closed)
Patch Set: git rid of stuff that snuck into patch Created 4 years 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 side-by-side diff with in-line comments
Download patch
Index: src/compiler/code-assembler.cc
diff --git a/src/compiler/code-assembler.cc b/src/compiler/code-assembler.cc
index 4844355abb08e61a694f9ae669e201477a21cf67..e1ab8f350522ef723c2848d31974a66298173c1f 100644
--- a/src/compiler/code-assembler.cc
+++ b/src/compiler/code-assembler.cc
@@ -72,6 +72,10 @@ CodeAssemblerState::CodeAssemblerState(Isolate* isolate, Zone* zone,
CodeAssemblerState::~CodeAssemblerState() {}
+int CodeAssemblerState::parameter_count() const {
+ return static_cast<int>(raw_assembler_->call_descriptor()->ParameterCount());
+}
+
CodeAssembler::~CodeAssembler() {}
class BreakOnNodeDecorator final : public GraphDecorator {

Powered by Google App Engine
This is Rietveld 408576698