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

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

Issue 2397753003: Revert of [turbofan] inline %StringIteratorPrototype%.next in JSBuiltinReducer. (Closed)
Patch Set: Created 4 years, 2 months 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
« no previous file with comments | « src/compiler/effect-control-linearizer.cc ('k') | src/compiler/js-builtin-reducer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/flags.h" 8 #include "src/base/flags.h"
9 #include "src/compiler/graph-reducer.h" 9 #include "src/compiler/graph-reducer.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13 13
14 // Forward declarations. 14 // Forward declarations.
15 class CompilationDependencies; 15 class CompilationDependencies;
16 class Factory; 16 class Factory;
17 17
18 namespace compiler { 18 namespace compiler {
19 19
20 // Forward declarations. 20 // Forward declarations.
21 class CommonOperatorBuilder; 21 class CommonOperatorBuilder;
22 struct FieldAccess; 22 struct FieldAccess;
23 class JSGraph; 23 class JSGraph;
24 class JSOperatorBuilder;
25 class SimplifiedOperatorBuilder; 24 class SimplifiedOperatorBuilder;
26 class TypeCache; 25 class TypeCache;
27 26
28 class JSBuiltinReducer final : public AdvancedReducer { 27 class JSBuiltinReducer final : public AdvancedReducer {
29 public: 28 public:
30 // Flags that control the mode of operation. 29 // Flags that control the mode of operation.
31 enum Flag { 30 enum Flag {
32 kNoFlags = 0u, 31 kNoFlags = 0u,
33 kDeoptimizationEnabled = 1u << 0, 32 kDeoptimizationEnabled = 1u << 0,
34 }; 33 };
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 Reduction ReduceMathTanh(Node* node); 79 Reduction ReduceMathTanh(Node* node);
81 Reduction ReduceMathTrunc(Node* node); 80 Reduction ReduceMathTrunc(Node* node);
82 Reduction ReduceNumberIsFinite(Node* node); 81 Reduction ReduceNumberIsFinite(Node* node);
83 Reduction ReduceNumberIsInteger(Node* node); 82 Reduction ReduceNumberIsInteger(Node* node);
84 Reduction ReduceNumberIsNaN(Node* node); 83 Reduction ReduceNumberIsNaN(Node* node);
85 Reduction ReduceNumberIsSafeInteger(Node* node); 84 Reduction ReduceNumberIsSafeInteger(Node* node);
86 Reduction ReduceNumberParseInt(Node* node); 85 Reduction ReduceNumberParseInt(Node* node);
87 Reduction ReduceStringCharAt(Node* node); 86 Reduction ReduceStringCharAt(Node* node);
88 Reduction ReduceStringCharCodeAt(Node* node); 87 Reduction ReduceStringCharCodeAt(Node* node);
89 Reduction ReduceStringFromCharCode(Node* node); 88 Reduction ReduceStringFromCharCode(Node* node);
90 Reduction ReduceStringIteratorNext(Node* node);
91 Reduction ReduceArrayBufferViewAccessor(Node* node, 89 Reduction ReduceArrayBufferViewAccessor(Node* node,
92 InstanceType instance_type, 90 InstanceType instance_type,
93 FieldAccess const& access); 91 FieldAccess const& access);
94 92
95 Node* ToNumber(Node* value); 93 Node* ToNumber(Node* value);
96 Node* ToUint32(Node* value); 94 Node* ToUint32(Node* value);
97 95
98 Flags flags() const { return flags_; } 96 Flags flags() const { return flags_; }
99 Graph* graph() const; 97 Graph* graph() const;
100 Factory* factory() const; 98 Factory* factory() const;
101 JSGraph* jsgraph() const { return jsgraph_; } 99 JSGraph* jsgraph() const { return jsgraph_; }
102 Isolate* isolate() const; 100 Isolate* isolate() const;
103 CommonOperatorBuilder* common() const; 101 CommonOperatorBuilder* common() const;
104 SimplifiedOperatorBuilder* simplified() const; 102 SimplifiedOperatorBuilder* simplified() const;
105 JSOperatorBuilder* javascript() const;
106 CompilationDependencies* dependencies() const { return dependencies_; } 103 CompilationDependencies* dependencies() const { return dependencies_; }
107 104
108 CompilationDependencies* const dependencies_; 105 CompilationDependencies* const dependencies_;
109 Flags const flags_; 106 Flags const flags_;
110 JSGraph* const jsgraph_; 107 JSGraph* const jsgraph_;
111 TypeCache const& type_cache_; 108 TypeCache const& type_cache_;
112 }; 109 };
113 110
114 DEFINE_OPERATORS_FOR_FLAGS(JSBuiltinReducer::Flags) 111 DEFINE_OPERATORS_FOR_FLAGS(JSBuiltinReducer::Flags)
115 112
116 } // namespace compiler 113 } // namespace compiler
117 } // namespace internal 114 } // namespace internal
118 } // namespace v8 115 } // namespace v8
119 116
120 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ 117 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_
OLDNEW
« no previous file with comments | « src/compiler/effect-control-linearizer.cc ('k') | src/compiler/js-builtin-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698