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

Side by Side Diff: src/compiler/js-builtin-reducer.h

Issue 2484003002: [builtins] implement JSBuiltinReducer for ArrayIteratorNext() (Closed)
Patch Set: CheckIf() for ArrayBufferWasNeutered() rather than a branch, which hopefully can be eliminated, and… 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_COMPILER_JS_BUILTIN_REDUCER_H_ 5 #ifndef V8_COMPILER_JS_BUILTIN_REDUCER_H_
6 #define V8_COMPILER_JS_BUILTIN_REDUCER_H_ 6 #define V8_COMPILER_JS_BUILTIN_REDUCER_H_
7 7
8 #include "src/base/compiler-specific.h" 8 #include "src/base/compiler-specific.h"
9 #include "src/base/flags.h" 9 #include "src/base/flags.h"
10 #include "src/compiler/graph-reducer.h" 10 #include "src/compiler/graph-reducer.h"
(...skipping 27 matching lines...) Expand all
38 typedef base::Flags<Flag> Flags; 38 typedef base::Flags<Flag> Flags;
39 39
40 JSBuiltinReducer(Editor* editor, JSGraph* jsgraph, Flags flags, 40 JSBuiltinReducer(Editor* editor, JSGraph* jsgraph, Flags flags,
41 CompilationDependencies* dependencies, 41 CompilationDependencies* dependencies,
42 Handle<Context> native_context); 42 Handle<Context> native_context);
43 ~JSBuiltinReducer() final {} 43 ~JSBuiltinReducer() final {}
44 44
45 Reduction Reduce(Node* node) final; 45 Reduction Reduce(Node* node) final;
46 46
47 private: 47 private:
48 Reduction ReduceArrayIterator(Node* node, IterationKind kind);
49 Reduction ReduceTypedArrayIterator(Node* node, IterationKind kind);
50 Reduction ReduceArrayIterator(Handle<Map> receiver_map, Node* node,
51 IterationKind kind, bool for_typed_array);
52 Reduction ReduceArrayIteratorNext(Node* node);
53 Reduction ReduceFastArrayIteratorNext(Handle<Map> iterator_map, Node* node,
54 IterationKind kind);
55 Reduction ReduceTypedArrayIteratorNext(Handle<Map> iterator_map, Node* node,
56 IterationKind kind);
48 Reduction ReduceArrayPop(Node* node); 57 Reduction ReduceArrayPop(Node* node);
49 Reduction ReduceArrayPush(Node* node); 58 Reduction ReduceArrayPush(Node* node);
50 Reduction ReduceDateGetTime(Node* node); 59 Reduction ReduceDateGetTime(Node* node);
51 Reduction ReduceGlobalIsFinite(Node* node); 60 Reduction ReduceGlobalIsFinite(Node* node);
52 Reduction ReduceGlobalIsNaN(Node* node); 61 Reduction ReduceGlobalIsNaN(Node* node);
53 Reduction ReduceMathAbs(Node* node); 62 Reduction ReduceMathAbs(Node* node);
54 Reduction ReduceMathAcos(Node* node); 63 Reduction ReduceMathAcos(Node* node);
55 Reduction ReduceMathAcosh(Node* node); 64 Reduction ReduceMathAcosh(Node* node);
56 Reduction ReduceMathAsin(Node* node); 65 Reduction ReduceMathAsin(Node* node);
57 Reduction ReduceMathAsinh(Node* node); 66 Reduction ReduceMathAsinh(Node* node);
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 TypeCache const& type_cache_; 127 TypeCache const& type_cache_;
119 }; 128 };
120 129
121 DEFINE_OPERATORS_FOR_FLAGS(JSBuiltinReducer::Flags) 130 DEFINE_OPERATORS_FOR_FLAGS(JSBuiltinReducer::Flags)
122 131
123 } // namespace compiler 132 } // namespace compiler
124 } // namespace internal 133 } // namespace internal
125 } // namespace v8 134 } // namespace v8
126 135
127 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ 136 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698