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

Unified Diff: src/ast/ast.cc

Issue 2654423004: [async-functions] support await expressions in finally statements (Closed)
Patch Set: I'd like to build with -Wunused-variables locally, but how!? 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/ast/ast.h ('k') | src/ast/ast-expression-rewriter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/ast/ast.cc
diff --git a/src/ast/ast.cc b/src/ast/ast.cc
index 240de72168395e32e224f1bc91f2778d2aff1453..13f5182ecb10f70a5a8e6affd3cd52705db28cf2 100644
--- a/src/ast/ast.cc
+++ b/src/ast/ast.cc
@@ -1088,9 +1088,21 @@ bool Literal::Match(void* literal1, void* literal2) {
(x->IsNumber() && y->IsNumber() && x->AsNumber() == y->AsNumber());
}
+const char* InternalVariable::name() const {
+ switch (type()) {
+ case kGeneratorObject:
+ return ".generator_object";
+ default:
+ break;
+ }
+ UNREACHABLE();
+ return nullptr;
+}
+
const char* CallRuntime::debug_name() {
#ifdef DEBUG
- return NameForNativeContextIntrinsicIndex(context_index_);
+ return is_jsruntime() ? NameForNativeContextIntrinsicIndex(context_index_)
+ : function_->name;
#else
return is_jsruntime() ? "(context function)" : function_->name;
#endif // DEBUG
« no previous file with comments | « src/ast/ast.h ('k') | src/ast/ast-expression-rewriter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698