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

Unified Diff: test/cctest/test-parsing.cc

Issue 2657943003: [parser] Skipping inner funcs: add variable names into the data for test purposes. (Closed)
Patch Set: code review (vogelheim@) 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/parsing/preparsed-scope-data.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/test-parsing.cc
diff --git a/test/cctest/test-parsing.cc b/test/cctest/test-parsing.cc
index 5855d376fb5834c52a86519de5bf2ca28dc8cb77..5da71c7255076138aab037280ca2911e92d26ad8 100644
--- a/test/cctest/test-parsing.cc
+++ b/test/cctest/test-parsing.cc
@@ -8724,6 +8724,14 @@ class ScopeTestHelper {
for (Variable* local : scope->locals_) {
if (local->mode() == VAR || local->mode() == LET ||
local->mode() == CONST) {
+#ifdef DEBUG
+ const AstRawString* local_name = local->raw_name();
+ int name_length = data->backing_store_[index++];
+ CHECK_EQ(name_length, local_name->length());
+ for (int i = 0; i < name_length; ++i) {
+ CHECK_EQ(data->backing_store_[index++], local_name->raw_data()[i]);
+ }
+#endif
CHECK_EQ(data->backing_store_[index++], local->location());
CHECK_EQ(data->backing_store_[index++], local->maybe_assigned());
}
« no previous file with comments | « src/parsing/preparsed-scope-data.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698