| 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/compiler/simplified-operator.h" | 10 #include "src/compiler/simplified-operator.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 | 61 |
| 62 enum PropertyAccessMode { kLoad, kStore }; | 62 enum PropertyAccessMode { kLoad, kStore }; |
| 63 class PropertyAccessInfo; | 63 class PropertyAccessInfo; |
| 64 bool ComputePropertyAccessInfo(Handle<Map> map, Handle<Name> name, | 64 bool ComputePropertyAccessInfo(Handle<Map> map, Handle<Name> name, |
| 65 PropertyAccessMode access_mode, | 65 PropertyAccessMode access_mode, |
| 66 PropertyAccessInfo* access_info); | 66 PropertyAccessInfo* access_info); |
| 67 bool ComputePropertyAccessInfos(MapHandleList const& maps, Handle<Name> name, | 67 bool ComputePropertyAccessInfos(MapHandleList const& maps, Handle<Name> name, |
| 68 PropertyAccessMode access_mode, | 68 PropertyAccessMode access_mode, |
| 69 ZoneVector<PropertyAccessInfo>* access_infos); | 69 ZoneVector<PropertyAccessInfo>* access_infos); |
| 70 | 70 |
| 71 Reduction ReduceNamedAccess(Node* node, Node* value, |
| 72 MapHandleList const& receiver_maps, |
| 73 Handle<Name> name, |
| 74 PropertyAccessMode access_mode); |
| 75 |
| 71 struct ScriptContextTableLookupResult; | 76 struct ScriptContextTableLookupResult; |
| 72 bool LookupInScriptContextTable(Handle<Name> name, | 77 bool LookupInScriptContextTable(Handle<Name> name, |
| 73 ScriptContextTableLookupResult* result); | 78 ScriptContextTableLookupResult* result); |
| 74 | 79 |
| 75 // Adds stability dependencies on all prototypes of every class in | 80 // Adds stability dependencies on all prototypes of every class in |
| 76 // {receiver_type} up to (and including) the {holder}. | 81 // {receiver_type} up to (and including) the {holder}. |
| 77 void AssumePrototypesStable(Type* receiver_type, Handle<JSObject> holder); | 82 void AssumePrototypesStable(Type* receiver_type, Handle<JSObject> holder); |
| 78 | 83 |
| 79 Graph* graph() const; | 84 Graph* graph() const; |
| 80 JSGraph* jsgraph() const { return jsgraph_; } | 85 JSGraph* jsgraph() const { return jsgraph_; } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 100 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); | 105 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); |
| 101 }; | 106 }; |
| 102 | 107 |
| 103 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) | 108 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) |
| 104 | 109 |
| 105 } // namespace compiler | 110 } // namespace compiler |
| 106 } // namespace internal | 111 } // namespace internal |
| 107 } // namespace v8 | 112 } // namespace v8 |
| 108 | 113 |
| 109 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ | 114 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ |
| OLD | NEW |