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

Side by Side Diff: src/compiler/js-typed-lowering.h

Issue 2839623003: [modules] Factor out cell load into helper function. (Closed)
Patch Set: Assign cell in unreachable path. Created 3 years, 7 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 | « no previous file | src/compiler/js-typed-lowering.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_TYPED_LOWERING_H_ 5 #ifndef V8_COMPILER_JS_TYPED_LOWERING_H_
6 #define V8_COMPILER_JS_TYPED_LOWERING_H_ 6 #define V8_COMPILER_JS_TYPED_LOWERING_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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 Reduction ReduceJSTypeOf(Node* node); 81 Reduction ReduceJSTypeOf(Node* node);
82 Reduction ReduceNumberBinop(Node* node); 82 Reduction ReduceNumberBinop(Node* node);
83 Reduction ReduceInt32Binop(Node* node); 83 Reduction ReduceInt32Binop(Node* node);
84 Reduction ReduceUI32Shift(Node* node, Signedness signedness); 84 Reduction ReduceUI32Shift(Node* node, Signedness signedness);
85 Reduction ReduceCreateConsString(Node* node); 85 Reduction ReduceCreateConsString(Node* node);
86 Reduction ReduceSpeculativeNumberAdd(Node* node); 86 Reduction ReduceSpeculativeNumberAdd(Node* node);
87 Reduction ReduceSpeculativeNumberMultiply(Node* node); 87 Reduction ReduceSpeculativeNumberMultiply(Node* node);
88 Reduction ReduceSpeculativeNumberBinop(Node* node); 88 Reduction ReduceSpeculativeNumberBinop(Node* node);
89 Reduction ReduceSpeculativeNumberComparison(Node* node); 89 Reduction ReduceSpeculativeNumberComparison(Node* node);
90 90
91 // Helper for ReduceJSLoadModule and ReduceJSStoreModule.
92 Node* BuildGetModuleCell(Node* node);
93
91 Factory* factory() const; 94 Factory* factory() const;
92 Graph* graph() const; 95 Graph* graph() const;
93 JSGraph* jsgraph() const { return jsgraph_; } 96 JSGraph* jsgraph() const { return jsgraph_; }
94 Isolate* isolate() const; 97 Isolate* isolate() const;
95 JSOperatorBuilder* javascript() const; 98 JSOperatorBuilder* javascript() const;
96 CommonOperatorBuilder* common() const; 99 CommonOperatorBuilder* common() const;
97 SimplifiedOperatorBuilder* simplified() const; 100 SimplifiedOperatorBuilder* simplified() const;
98 CompilationDependencies* dependencies() const; 101 CompilationDependencies* dependencies() const;
99 Flags flags() const { return flags_; } 102 Flags flags() const { return flags_; }
100 103
101 CompilationDependencies* dependencies_; 104 CompilationDependencies* dependencies_;
102 Flags flags_; 105 Flags flags_;
103 JSGraph* jsgraph_; 106 JSGraph* jsgraph_;
104 Type* shifted_int32_ranges_[4]; 107 Type* shifted_int32_ranges_[4];
105 Type* pointer_comparable_type_; 108 Type* pointer_comparable_type_;
106 TypeCache const& type_cache_; 109 TypeCache const& type_cache_;
107 }; 110 };
108 111
109 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags) 112 DEFINE_OPERATORS_FOR_FLAGS(JSTypedLowering::Flags)
110 113
111 } // namespace compiler 114 } // namespace compiler
112 } // namespace internal 115 } // namespace internal
113 } // namespace v8 116 } // namespace v8
114 117
115 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_ 118 #endif // V8_COMPILER_JS_TYPED_LOWERING_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-typed-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698