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

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

Issue 2557173004: [Interpreter] Allocate registers used as call arguments on-demand. (Closed)
Patch Set: Fix release build unused variable 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: 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 4ff9e5352a95df32fb16a09a151bec0d90da9d0d..2dfa2bbb74a8465965df6bce7f8fef74753b3e5a 100644
--- a/test/cctest/interpreter/test-bytecode-generator.cc
+++ b/test/cctest/interpreter/test-bytecode-generator.cc
@@ -463,6 +463,9 @@ TEST(PropertyCall) {
REPEAT_127(" a.func;\n") //
" return a.func(); }\n"
"f(" FUNC_ARG ")",
+
+ "function f(a) { return a.func(1).func(2).func(3); }\n"
+ "f(new (function Obj() { this.func = function(a) { return this; }})())",
};
CHECK(CompareTexts(BuildActual(printer, snippets),
« no previous file with comments | « test/cctest/interpreter/bytecode_expectations/TopLevelObjectLiterals.golden ('k') | test/mjsunit/ignition/regress-672027.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698