| 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/property-access-info.h" | 10 #include "src/compiler/property-access-info.h" |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 Reduction Replace(Node* node, Node* value, Node* effect = nullptr, | 58 Reduction Replace(Node* node, Node* value, Node* effect = nullptr, |
| 59 Node* control = nullptr) { | 59 Node* control = nullptr) { |
| 60 ReplaceWithValue(node, value, effect, control); | 60 ReplaceWithValue(node, value, effect, control); |
| 61 return Changed(value); | 61 return Changed(value); |
| 62 } | 62 } |
| 63 Reduction Replace(Node* node, Handle<Object> value); | 63 Reduction Replace(Node* node, Handle<Object> value); |
| 64 | 64 |
| 65 Reduction ReduceNamedAccess(Node* node, Node* value, | 65 Reduction ReduceNamedAccess(Node* node, Node* value, |
| 66 MapHandleList const& receiver_maps, | 66 MapHandleList const& receiver_maps, |
| 67 Handle<Name> name, | 67 Handle<Name> name, PropertyAccessMode access_mode, |
| 68 PropertyAccessMode access_mode); | 68 LanguageMode language_mode); |
| 69 | 69 |
| 70 struct ScriptContextTableLookupResult; | 70 struct ScriptContextTableLookupResult; |
| 71 bool LookupInScriptContextTable(Handle<Name> name, | 71 bool LookupInScriptContextTable(Handle<Name> name, |
| 72 ScriptContextTableLookupResult* result); | 72 ScriptContextTableLookupResult* result); |
| 73 | 73 |
| 74 // Adds stability dependencies on all prototypes of every class in | 74 // Adds stability dependencies on all prototypes of every class in |
| 75 // {receiver_type} up to (and including) the {holder}. | 75 // {receiver_type} up to (and including) the {holder}. |
| 76 void AssumePrototypesStable(Type* receiver_type, Handle<JSObject> holder); | 76 void AssumePrototypesStable(Type* receiver_type, Handle<JSObject> holder); |
| 77 | 77 |
| 78 Graph* graph() const; | 78 Graph* graph() const; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 104 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); | 104 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) | 107 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) |
| 108 | 108 |
| 109 } // namespace compiler | 109 } // namespace compiler |
| 110 } // namespace internal | 110 } // namespace internal |
| 111 } // namespace v8 | 111 } // namespace v8 |
| 112 | 112 |
| 113 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ | 113 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ |
| OLD | NEW |