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

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

Issue 2517053002: Merged: [builtins] add context input to users of CreateKeyValueArray opcode (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 bc7ab6f1d29866ba64b1ea07be823ac62f96e0af..b5504d16ce3747a4bcbb26f4a510161b30f36076 100644
--- a/src/compiler/js-builtin-reducer.cc
+++ b/src/compiler/js-builtin-reducer.cc
@@ -434,8 +434,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;
@@ -601,8 +602,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