OLD | NEW |
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_NATIVE_CONTEXT_SPECIALIZATION_H_ | 5 #ifndef V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ |
6 #define V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ | 6 #define V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 typedef base::Flags<Flag> Flags; | 43 typedef base::Flags<Flag> Flags; |
44 | 44 |
45 JSNativeContextSpecialization(Editor* editor, JSGraph* jsgraph, Flags flags, | 45 JSNativeContextSpecialization(Editor* editor, JSGraph* jsgraph, Flags flags, |
46 MaybeHandle<Context> native_context, | 46 MaybeHandle<Context> native_context, |
47 CompilationDependencies* dependencies, | 47 CompilationDependencies* dependencies, |
48 Zone* zone); | 48 Zone* zone); |
49 | 49 |
50 Reduction Reduce(Node* node) final; | 50 Reduction Reduce(Node* node) final; |
51 | 51 |
52 private: | 52 private: |
| 53 Reduction ReduceJSLoadContext(Node* node); |
53 Reduction ReduceJSLoadNamed(Node* node); | 54 Reduction ReduceJSLoadNamed(Node* node); |
54 Reduction ReduceJSStoreNamed(Node* node); | 55 Reduction ReduceJSStoreNamed(Node* node); |
55 Reduction ReduceJSLoadProperty(Node* node); | 56 Reduction ReduceJSLoadProperty(Node* node); |
56 Reduction ReduceJSStoreProperty(Node* node); | 57 Reduction ReduceJSStoreProperty(Node* node); |
57 | 58 |
58 Reduction ReduceElementAccess(Node* node, Node* index, Node* value, | 59 Reduction ReduceElementAccess(Node* node, Node* index, Node* value, |
59 MapHandleList const& receiver_maps, | 60 MapHandleList const& receiver_maps, |
60 AccessMode access_mode, | 61 AccessMode access_mode, |
61 LanguageMode language_mode, | 62 LanguageMode language_mode, |
62 KeyedAccessStoreMode store_mode); | 63 KeyedAccessStoreMode store_mode); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); | 108 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); |
108 }; | 109 }; |
109 | 110 |
110 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) | 111 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) |
111 | 112 |
112 } // namespace compiler | 113 } // namespace compiler |
113 } // namespace internal | 114 } // namespace internal |
114 } // namespace v8 | 115 } // namespace v8 |
115 | 116 |
116 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ | 117 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ |
OLD | NEW |