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