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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 FeedbackVectorSlot slot); | 108 FeedbackVectorSlot slot); |
109 | 109 |
110 // Construct the appropriate subgraph for element access. | 110 // Construct the appropriate subgraph for element access. |
111 ValueEffectControl BuildElementAccess(Node* receiver, Node* index, | 111 ValueEffectControl BuildElementAccess(Node* receiver, Node* index, |
112 Node* value, Node* effect, | 112 Node* value, Node* effect, |
113 Node* control, | 113 Node* control, |
114 ElementAccessInfo const& access_info, | 114 ElementAccessInfo const& access_info, |
115 AccessMode access_mode, | 115 AccessMode access_mode, |
116 KeyedAccessStoreMode store_mode); | 116 KeyedAccessStoreMode store_mode); |
117 | 117 |
| 118 // Construct an appropriate heap object check. |
| 119 Node* BuildCheckHeapObject(Node* receiver, Node** effect, Node* control); |
| 120 |
118 // Construct an appropriate map check. | 121 // Construct an appropriate map check. |
119 Node* BuildCheckMaps(Node* receiver, Node* effect, Node* control, | 122 Node* BuildCheckMaps(Node* receiver, Node* effect, Node* control, |
120 std::vector<Handle<Map>> const& maps); | 123 std::vector<Handle<Map>> const& maps); |
121 | 124 |
122 // Adds stability dependencies on all prototypes of every class in | 125 // Adds stability dependencies on all prototypes of every class in |
123 // {receiver_type} up to (and including) the {holder}. | 126 // {receiver_type} up to (and including) the {holder}. |
124 void AssumePrototypesStable(std::vector<Handle<Map>> const& receiver_maps, | 127 void AssumePrototypesStable(std::vector<Handle<Map>> const& receiver_maps, |
125 Handle<JSObject> holder); | 128 Handle<JSObject> holder); |
126 | 129 |
127 // Checks if we can turn the hole into undefined when loading an element | 130 // Checks if we can turn the hole into undefined when loading an element |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
172 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); | 175 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); |
173 }; | 176 }; |
174 | 177 |
175 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) | 178 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) |
176 | 179 |
177 } // namespace compiler | 180 } // namespace compiler |
178 } // namespace internal | 181 } // namespace internal |
179 } // namespace v8 | 182 } // namespace v8 |
180 | 183 |
181 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ | 184 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ |
OLD | NEW |