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

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

Issue 2478643002: [builtins] fix Allocate() call in ReduceStringIterator() (Closed)
Patch Set: fix formatting in test 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-5598.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 edf63ba262d55b2afb7dbd2b42886ba83b5b38d2..8b19afb0da0a59ba2bbe1fb4d0c15bcddf8f55e7 100644
--- a/src/compiler/js-builtin-reducer.cc
+++ b/src/compiler/js-builtin-reducer.cc
@@ -1047,7 +1047,7 @@ Reduction JSBuiltinReducer::ReduceStringIterator(Node* node) {
common()->BeginRegion(RegionObservability::kNotObservable), effect);
Node* value = effect = graph()->NewNode(
simplified()->Allocate(NOT_TENURED),
- jsgraph()->Int32Constant(JSStringIterator::kSize), effect, control);
+ jsgraph()->Constant(JSStringIterator::kSize), effect, control);
effect = graph()->NewNode(simplified()->StoreField(AccessBuilder::ForMap()),
value, map, effect, control);
effect = graph()->NewNode(
« no previous file with comments | « no previous file | test/mjsunit/es6/regress/regress-5598.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698