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

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

Issue 2416243002: Make unittests work in component build (Closed)
Patch Set: updates 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/int64-lowering.h ('k') | src/compiler/js-create-lowering.h » ('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/compiler-specific.h"
8 #include "src/base/flags.h" 9 #include "src/base/flags.h"
9 #include "src/compiler/graph-reducer.h" 10 #include "src/compiler/graph-reducer.h"
11 #include "src/globals.h"
10 12
11 namespace v8 { 13 namespace v8 {
12 namespace internal { 14 namespace internal {
13 15
14 // Forward declarations. 16 // Forward declarations.
15 class CompilationDependencies; 17 class CompilationDependencies;
16 class Factory; 18 class Factory;
17 19
18 namespace compiler { 20 namespace compiler {
19 21
20 // Forward declarations. 22 // Forward declarations.
21 class CommonOperatorBuilder; 23 class CommonOperatorBuilder;
22 struct FieldAccess; 24 struct FieldAccess;
23 class JSGraph; 25 class JSGraph;
24 class JSOperatorBuilder; 26 class JSOperatorBuilder;
25 class SimplifiedOperatorBuilder; 27 class SimplifiedOperatorBuilder;
26 class TypeCache; 28 class TypeCache;
27 29
28 class JSBuiltinReducer final : public AdvancedReducer { 30 class V8_EXPORT_PRIVATE JSBuiltinReducer final
31 : public NON_EXPORTED_BASE(AdvancedReducer) {
29 public: 32 public:
30 // Flags that control the mode of operation. 33 // Flags that control the mode of operation.
31 enum Flag { 34 enum Flag {
32 kNoFlags = 0u, 35 kNoFlags = 0u,
33 kDeoptimizationEnabled = 1u << 0, 36 kDeoptimizationEnabled = 1u << 0,
34 }; 37 };
35 typedef base::Flags<Flag> Flags; 38 typedef base::Flags<Flag> Flags;
36 39
37 JSBuiltinReducer(Editor* editor, JSGraph* jsgraph, Flags flags, 40 JSBuiltinReducer(Editor* editor, JSGraph* jsgraph, Flags flags,
38 CompilationDependencies* dependencies); 41 CompilationDependencies* dependencies);
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 TypeCache const& type_cache_; 114 TypeCache const& type_cache_;
112 }; 115 };
113 116
114 DEFINE_OPERATORS_FOR_FLAGS(JSBuiltinReducer::Flags) 117 DEFINE_OPERATORS_FOR_FLAGS(JSBuiltinReducer::Flags)
115 118
116 } // namespace compiler 119 } // namespace compiler
117 } // namespace internal 120 } // namespace internal
118 } // namespace v8 121 } // namespace v8
119 122
120 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_ 123 #endif // V8_COMPILER_JS_BUILTIN_REDUCER_H_
OLDNEW
« no previous file with comments | « src/compiler/int64-lowering.h ('k') | src/compiler/js-create-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698