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

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

Issue 2406803002: [turbofan] Enforce native context specialization. (Closed)
Patch Set: Remove unused variables 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/compilation-info.h ('k') | src/compiler/js-call-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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_CALL_REDUCER_H_ 5 #ifndef V8_COMPILER_JS_CALL_REDUCER_H_
6 #define V8_COMPILER_JS_CALL_REDUCER_H_ 6 #define V8_COMPILER_JS_CALL_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
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 // Flags that control the mode of operation. 25 // Flags that control the mode of operation.
26 enum Flag { 26 enum Flag {
27 kNoFlags = 0u, 27 kNoFlags = 0u,
28 kBailoutOnUninitialized = 1u << 0, 28 kBailoutOnUninitialized = 1u << 0,
29 kDeoptimizationEnabled = 1u << 1 29 kDeoptimizationEnabled = 1u << 1
30 }; 30 };
31 typedef base::Flags<Flag> Flags; 31 typedef base::Flags<Flag> Flags;
32 32
33 JSCallReducer(Editor* editor, JSGraph* jsgraph, Flags flags, 33 JSCallReducer(Editor* editor, JSGraph* jsgraph, Flags flags,
34 MaybeHandle<Context> native_context) 34 Handle<Context> native_context)
35 : AdvancedReducer(editor), 35 : AdvancedReducer(editor),
36 jsgraph_(jsgraph), 36 jsgraph_(jsgraph),
37 flags_(flags), 37 flags_(flags),
38 native_context_(native_context) {} 38 native_context_(native_context) {}
39 39
40 Reduction Reduce(Node* node) final; 40 Reduction Reduce(Node* node) final;
41 41
42 private: 42 private:
43 Reduction ReduceArrayConstructor(Node* node); 43 Reduction ReduceArrayConstructor(Node* node);
44 Reduction ReduceNumberConstructor(Node* node); 44 Reduction ReduceNumberConstructor(Node* node);
45 Reduction ReduceFunctionPrototypeApply(Node* node); 45 Reduction ReduceFunctionPrototypeApply(Node* node);
46 Reduction ReduceFunctionPrototypeCall(Node* node); 46 Reduction ReduceFunctionPrototypeCall(Node* node);
47 Reduction ReduceJSCallConstruct(Node* node); 47 Reduction ReduceJSCallConstruct(Node* node);
48 Reduction ReduceJSCallFunction(Node* node); 48 Reduction ReduceJSCallFunction(Node* node);
49 49
50 MaybeHandle<Context> GetNativeContext(Node* node);
51
52 Graph* graph() const; 50 Graph* graph() const;
53 Flags flags() const { return flags_; } 51 Flags flags() const { return flags_; }
54 JSGraph* jsgraph() const { return jsgraph_; } 52 JSGraph* jsgraph() const { return jsgraph_; }
55 Isolate* isolate() const; 53 Isolate* isolate() const;
56 MaybeHandle<Context> native_context() const { return native_context_; } 54 Handle<Context> native_context() const { return native_context_; }
57 CommonOperatorBuilder* common() const; 55 CommonOperatorBuilder* common() const;
58 JSOperatorBuilder* javascript() const; 56 JSOperatorBuilder* javascript() const;
59 SimplifiedOperatorBuilder* simplified() const; 57 SimplifiedOperatorBuilder* simplified() const;
60 58
61 JSGraph* const jsgraph_; 59 JSGraph* const jsgraph_;
62 Flags const flags_; 60 Flags const flags_;
63 MaybeHandle<Context> const native_context_; 61 Handle<Context> const native_context_;
64 }; 62 };
65 63
66 DEFINE_OPERATORS_FOR_FLAGS(JSCallReducer::Flags) 64 DEFINE_OPERATORS_FOR_FLAGS(JSCallReducer::Flags)
67 65
68 } // namespace compiler 66 } // namespace compiler
69 } // namespace internal 67 } // namespace internal
70 } // namespace v8 68 } // namespace v8
71 69
72 #endif // V8_COMPILER_JS_CALL_REDUCER_H_ 70 #endif // V8_COMPILER_JS_CALL_REDUCER_H_
OLDNEW
« no previous file with comments | « src/compilation-info.h ('k') | src/compiler/js-call-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698