| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 AccessMode access_mode, | 125 AccessMode access_mode, |
| 126 KeyedAccessStoreMode store_mode); | 126 KeyedAccessStoreMode store_mode); |
| 127 | 127 |
| 128 // Construct an appropriate heap object check. | 128 // Construct an appropriate heap object check. |
| 129 Node* BuildCheckHeapObject(Node* receiver, Node** effect, Node* control); | 129 Node* BuildCheckHeapObject(Node* receiver, Node** effect, Node* control); |
| 130 | 130 |
| 131 // Construct an appropriate map check. | 131 // Construct an appropriate map check. |
| 132 Node* BuildCheckMaps(Node* receiver, Node* effect, Node* control, | 132 Node* BuildCheckMaps(Node* receiver, Node* effect, Node* control, |
| 133 std::vector<Handle<Map>> const& maps); | 133 std::vector<Handle<Map>> const& maps); |
| 134 | 134 |
| 135 // Construct appropriate subgraph to extend properties backing store. |
| 136 Node* BuildExtendPropertiesBackingStore(Handle<Map> map, Node* properties, |
| 137 Node* effect, Node* control); |
| 138 |
| 135 // Adds stability dependencies on all prototypes of every class in | 139 // Adds stability dependencies on all prototypes of every class in |
| 136 // {receiver_type} up to (and including) the {holder}. | 140 // {receiver_type} up to (and including) the {holder}. |
| 137 void AssumePrototypesStable(std::vector<Handle<Map>> const& receiver_maps, | 141 void AssumePrototypesStable(std::vector<Handle<Map>> const& receiver_maps, |
| 138 Handle<JSObject> holder); | 142 Handle<JSObject> holder); |
| 139 | 143 |
| 140 // Checks if we can turn the hole into undefined when loading an element | 144 // Checks if we can turn the hole into undefined when loading an element |
| 141 // from an object with one of the {receiver_maps}; sets up appropriate | 145 // from an object with one of the {receiver_maps}; sets up appropriate |
| 142 // code dependencies and might use the array protector cell. | 146 // code dependencies and might use the array protector cell. |
| 143 bool CanTreatHoleAsUndefined(std::vector<Handle<Map>> const& receiver_maps); | 147 bool CanTreatHoleAsUndefined(std::vector<Handle<Map>> const& receiver_maps); |
| 144 | 148 |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); | 200 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); |
| 197 }; | 201 }; |
| 198 | 202 |
| 199 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) | 203 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) |
| 200 | 204 |
| 201 } // namespace compiler | 205 } // namespace compiler |
| 202 } // namespace internal | 206 } // namespace internal |
| 203 } // namespace v8 | 207 } // namespace v8 |
| 204 | 208 |
| 205 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ | 209 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ |
| OLD | NEW |