| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 struct ScriptContextTableLookupResult; | 71 struct ScriptContextTableLookupResult; |
| 72 bool LookupInScriptContextTable(Handle<Name> name, | 72 bool LookupInScriptContextTable(Handle<Name> name, |
| 73 ScriptContextTableLookupResult* result); | 73 ScriptContextTableLookupResult* result); |
| 74 | 74 |
| 75 // Adds stability dependencies on all prototypes of every class in |
| 76 // {receiver_type} up to (and including) the {holder}. |
| 77 void AssumePrototypesStable(Type* receiver_type, Handle<JSObject> holder); |
| 78 |
| 75 Graph* graph() const; | 79 Graph* graph() const; |
| 76 JSGraph* jsgraph() const { return jsgraph_; } | 80 JSGraph* jsgraph() const { return jsgraph_; } |
| 77 Isolate* isolate() const; | 81 Isolate* isolate() const; |
| 78 Factory* factory() const; | 82 Factory* factory() const; |
| 79 CommonOperatorBuilder* common() const; | 83 CommonOperatorBuilder* common() const; |
| 80 JSOperatorBuilder* javascript() const; | 84 JSOperatorBuilder* javascript() const; |
| 81 SimplifiedOperatorBuilder* simplified() const; | 85 SimplifiedOperatorBuilder* simplified() const; |
| 82 MachineOperatorBuilder* machine() const; | 86 MachineOperatorBuilder* machine() const; |
| 83 Flags flags() const { return flags_; } | 87 Flags flags() const { return flags_; } |
| 84 Handle<GlobalObject> global_object() const { return global_object_; } | 88 Handle<GlobalObject> global_object() const { return global_object_; } |
| 85 CompilationDependencies* dependencies() const { return dependencies_; } | 89 CompilationDependencies* dependencies() const { return dependencies_; } |
| 86 Zone* zone() const { return zone_; } | 90 Zone* zone() const { return zone_; } |
| 87 | 91 |
| 88 JSGraph* const jsgraph_; | 92 JSGraph* const jsgraph_; |
| 89 Flags const flags_; | 93 Flags const flags_; |
| 90 Handle<GlobalObject> global_object_; | 94 Handle<GlobalObject> global_object_; |
| 91 CompilationDependencies* const dependencies_; | 95 CompilationDependencies* const dependencies_; |
| 92 Zone* const zone_; | 96 Zone* const zone_; |
| 93 | 97 |
| 94 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); | 98 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); |
| 95 }; | 99 }; |
| 96 | 100 |
| 97 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) | 101 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) |
| 98 | 102 |
| 99 } // namespace compiler | 103 } // namespace compiler |
| 100 } // namespace internal | 104 } // namespace internal |
| 101 } // namespace v8 | 105 } // namespace v8 |
| 102 | 106 |
| 103 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ | 107 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ |
| OLD | NEW |