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

Unified Diff: test/cctest/interpreter/test-bytecode-generator.cc

Issue 2290753003: Allow lexically declared "arguments" in function scope in sloppy mode. (Closed)
Patch Set: Update Created 4 years, 3 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 | « test/cctest/interpreter/bytecode_expectations/LookupSlot.golden ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/cctest/interpreter/test-bytecode-generator.cc
diff --git a/test/cctest/interpreter/test-bytecode-generator.cc b/test/cctest/interpreter/test-bytecode-generator.cc
index c71e3ef034e1ee62dd6e5f0e474088e5af68f5c7..f1001a8fe5e4c42804088ecddbe5784c817f85c7 100644
--- a/test/cctest/interpreter/test-bytecode-generator.cc
+++ b/test/cctest/interpreter/test-bytecode-generator.cc
@@ -64,6 +64,15 @@ namespace interpreter {
REPEAT_8_UNIQUE_VARS() \
UNIQUE_VAR()
+#define REPEAT_250_UNIQUE_VARS() \
+ REPEAT_128_UNIQUE_VARS() \
+ REPEAT_64_UNIQUE_VARS() \
+ REPEAT_32_UNIQUE_VARS() \
+ REPEAT_16_UNIQUE_VARS() \
+ REPEAT_8_UNIQUE_VARS() \
+ UNIQUE_VAR() \
+ UNIQUE_VAR()
+
static const char* kGoldenFileDirectory =
"test/cctest/interpreter/bytecode_expectations/";
@@ -1353,7 +1362,7 @@ TEST(ContextVariables) {
"{ let b = 2; return function() { a + b; }; }\n",
"'use strict';\n"
- REPEAT_249_UNIQUE_VARS()
+ REPEAT_250_UNIQUE_VARS()
"eval();\n"
"var b = 100;\n"
"return b\n",
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/LookupSlot.golden ('k') | test/cctest/test-parsing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698