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

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

Issue 2484003002: [builtins] implement JSBuiltinReducer for ArrayIteratorNext() (Closed)
Patch Set: Remove whitespace change that snuck in 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
Index: src/compiler/js-builtin-reducer.h
diff --git a/src/compiler/js-builtin-reducer.h b/src/compiler/js-builtin-reducer.h
index 76165f0c03da11f9b906ee7644d6185be210761a..ce903c22bb3260c4d9cfd172a289732466dfaa11 100644
--- a/src/compiler/js-builtin-reducer.h
+++ b/src/compiler/js-builtin-reducer.h
@@ -24,6 +24,7 @@ class CommonOperatorBuilder;
struct FieldAccess;
class JSGraph;
class JSOperatorBuilder;
+class MachineOperatorBuilder;
Benedikt Meurer 2016/11/08 05:29:49 Remove this unused forward declaration.
class SimplifiedOperatorBuilder;
class TypeCache;
@@ -45,6 +46,12 @@ class V8_EXPORT_PRIVATE JSBuiltinReducer final
Reduction Reduce(Node* node) final;
private:
+ Reduction ReduceArrayIterator(Node* node, IterationKind kind);
+ Reduction ReduceArrayIteratorNext(Node* node);
+ Reduction ReduceFastArrayIteratorNext(Handle<Map> iterator_map, Node* node,
+ IterationKind kind);
+ Reduction ReduceTypedArrayIteratorNext(Handle<Map> iterator_map, Node* node,
+ IterationKind kind);
Reduction ReduceArrayPop(Node* node);
Reduction ReduceArrayPush(Node* node);
Reduction ReduceDateGetTime(Node* node);
@@ -100,6 +107,9 @@ class V8_EXPORT_PRIVATE JSBuiltinReducer final
Node* ToNumber(Node* value);
Node* ToUint32(Node* value);
+ bool CanTreatHoleAsUndefined(Handle<Map> receiver_map);
Benedikt Meurer 2016/11/08 05:29:49 These helpers are unnecessary, see comments in .cc
+ bool CanTreatHoleAsUndefined(std::vector<Handle<Map>> const& receiver_maps);
+
Flags flags() const { return flags_; }
Graph* graph() const;
Factory* factory() const;

Powered by Google App Engine
This is Rietveld 408576698