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