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

Unified Diff: test/mjsunit/regress/regress-osr-in-literal.js

Issue 1453733002: [turbofan] Fix several OSR entries within literals. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month 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/compiler/ast-graph-builder.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/regress/regress-osr-in-literal.js
diff --git a/test/mjsunit/regress/regress-osr-in-literal.js b/test/mjsunit/regress/regress-osr-in-literal.js
index bef107ef1c5ef5ea64dceff2d318423c4056bbf9..cdb50f1af9a527a28a256f61dcfb963a4b508778 100644
--- a/test/mjsunit/regress/regress-osr-in-literal.js
+++ b/test/mjsunit/regress/regress-osr-in-literal.js
@@ -8,14 +8,15 @@
var p = {};
var testCases = [
- { s:"[1, do { _OSR_ 2 }, 3]", r:[1, 2, 3] },
- { s:"[1, ...[2], do { _OSR_ 3 }, 4]", r:[1, 2, 3, 4] },
- { s:"[1, ...do { _OSR_ [2,3] }, 4]", r:[1, 2, 3, 4] },
- { s:"{ a:do { _OSR_ 1 } }", r:{ a:1 } },
- { s:"{ a:do { _OSR_ 2 }, __proto__:p }", r:{ a:2, __proto__:p } },
- { s:"{ [do { _OSR_ 'b' }]: 3 }", r:{ b:3 } },
- { s:"{ [do { _OSR_ 'b' }]: 3, c: 4 }", r:{ b:3, c:4 } },
- { s:"{ [do { _OSR_ 'b' }]: 3, __proto__:p }", r:{ b:3, __proto__:p } },
+ { s:"[1, do { _OSR_ 2 }, 3]", r:[1, 2, 3] },
+ { s:"[1, ...[2], do { _OSR_ 3 }, 4]", r:[1, 2, 3, 4] },
+ { s:"[1, ...do { _OSR_ [2,3] }, 4]", r:[1, 2, 3, 4] },
+ { s:"{ a:do { _OSR_ 1 } }", r:{ a:1 } },
+ { s:"{ a:do { _OSR_ 2 }, __proto__:p }", r:{ a:2, __proto__:p } },
+ { s:"{ a:do { _OSR_ 3 }, get b() { return 4; } }", r:{ a:3, b:4 } },
+ { s:"{ [do { _OSR_ 'b' }]: 3 }", r:{ b:3 } },
+ { s:"{ [do { _OSR_ 'b' }]: 3, c: 4 }", r:{ b:3, c:4 } },
+ { s:"{ [do { _OSR_ 'b' }]: 3, __proto__:p }", r:{ b:3, __proto__:p } },
{ s:"class { [do { _OSR_ 'f' }]() {} }" },
{ s:"class { [do { _OSR_ 'f' }]() {}; g() {} }" },
];
« no previous file with comments | « src/compiler/ast-graph-builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698