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 #include "src/deoptimize-reason.h" | 10 #include "src/deoptimize-reason.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 Node* effect() const { return effect_; } | 103 Node* effect() const { return effect_; } |
104 Node* control() const { return control_; } | 104 Node* control() const { return control_; } |
105 | 105 |
106 private: | 106 private: |
107 Node* const value_; | 107 Node* const value_; |
108 Node* const effect_; | 108 Node* const effect_; |
109 Node* const control_; | 109 Node* const control_; |
110 }; | 110 }; |
111 | 111 |
112 // Construct the appropriate subgraph for property access. | 112 // Construct the appropriate subgraph for property access. |
113 ValueEffectControl BuildPropertyAccess(Node* receiver, Node* value, | 113 ValueEffectControl BuildPropertyAccess( |
114 Node* context, Node* frame_state, | 114 Node* receiver, Node* value, Node* context, Node* frame_state, |
115 Node* effect, Node* control, | 115 Node* effect, Node* control, Handle<Name> name, |
116 Handle<Name> name, | 116 ZoneVector<Node*>* if_exceptions, PropertyAccessInfo const& access_info, |
117 PropertyAccessInfo const& access_info, | 117 AccessMode access_mode, LanguageMode language_mode); |
118 AccessMode access_mode, | |
119 LanguageMode language_mode); | |
120 | 118 |
121 // Construct the appropriate subgraph for element access. | 119 // Construct the appropriate subgraph for element access. |
122 ValueEffectControl BuildElementAccess(Node* receiver, Node* index, | 120 ValueEffectControl BuildElementAccess(Node* receiver, Node* index, |
123 Node* value, Node* effect, | 121 Node* value, Node* effect, |
124 Node* control, | 122 Node* control, |
125 ElementAccessInfo const& access_info, | 123 ElementAccessInfo const& access_info, |
126 AccessMode access_mode, | 124 AccessMode access_mode, |
127 KeyedAccessStoreMode store_mode); | 125 KeyedAccessStoreMode store_mode); |
128 | 126 |
129 // Construct an appropriate heap object check. | 127 // Construct an appropriate heap object check. |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); | 210 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); |
213 }; | 211 }; |
214 | 212 |
215 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) | 213 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) |
216 | 214 |
217 } // namespace compiler | 215 } // namespace compiler |
218 } // namespace internal | 216 } // namespace internal |
219 } // namespace v8 | 217 } // namespace v8 |
220 | 218 |
221 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ | 219 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ |
OLD | NEW |