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

Unified Diff: src/compiler/js-builtin-reducer.cc

Issue 2515683002: [builtins] add context input to users of CreateKeyValueArray opcodes (Closed)
Patch Set: Created 4 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 | « no previous file | test/mjsunit/es6/regress/regress-666622.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/compiler/js-builtin-reducer.cc
diff --git a/src/compiler/js-builtin-reducer.cc b/src/compiler/js-builtin-reducer.cc
index dc6eb1464f21ba2a8c211f6245ce2ba7d3302fa0..6f36b41f25d4e989cfd91a39fb556d445ba697e2 100644
--- a/src/compiler/js-builtin-reducer.cc
+++ b/src/compiler/js-builtin-reducer.cc
@@ -444,8 +444,9 @@ Reduction JSBuiltinReducer::ReduceFastArrayIteratorNext(
if (kind == IterationKind::kEntries) {
// Allocate elements for key/value pair
- vtrue1 = etrue1 = graph()->NewNode(
- javascript()->CreateKeyValueArray(), index, value, etrue1);
+ vtrue1 = etrue1 =
+ graph()->NewNode(javascript()->CreateKeyValueArray(), index,
+ value, context, etrue1);
} else {
DCHECK_EQ(kind, IterationKind::kValues);
vtrue1 = value;
@@ -620,8 +621,9 @@ Reduction JSBuiltinReducer::ReduceTypedArrayIteratorNext(
if (kind == IterationKind::kEntries) {
// Allocate elements for key/value pair
- vtrue2 = etrue2 = graph()->NewNode(
- javascript()->CreateKeyValueArray(), index, value, etrue2);
+ vtrue2 = etrue2 =
+ graph()->NewNode(javascript()->CreateKeyValueArray(), index,
+ value, context, etrue2);
} else {
DCHECK(kind == IterationKind::kValues);
vtrue2 = value;
« no previous file with comments | « no previous file | test/mjsunit/es6/regress/regress-666622.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698