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/access-info.h" | 9 #include "src/compiler/access-info.h" |
10 #include "src/compiler/graph-reducer.h" | 10 #include "src/compiler/graph-reducer.h" |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 private: | 52 private: |
53 Reduction ReduceJSCallFunction(Node* node); | 53 Reduction ReduceJSCallFunction(Node* node); |
54 Reduction ReduceJSLoadNamed(Node* node); | 54 Reduction ReduceJSLoadNamed(Node* node); |
55 Reduction ReduceJSStoreNamed(Node* node); | 55 Reduction ReduceJSStoreNamed(Node* node); |
56 Reduction ReduceJSLoadProperty(Node* node); | 56 Reduction ReduceJSLoadProperty(Node* node); |
57 Reduction ReduceJSStoreProperty(Node* node); | 57 Reduction ReduceJSStoreProperty(Node* node); |
58 | 58 |
59 Reduction ReduceElementAccess(Node* node, Node* index, Node* value, | 59 Reduction ReduceElementAccess(Node* node, Node* index, Node* value, |
60 MapHandleList const& receiver_maps, | 60 MapHandleList const& receiver_maps, |
61 AccessMode access_mode, | 61 AccessMode access_mode, |
62 LanguageMode language_mode); | 62 LanguageMode language_mode, |
| 63 KeyedAccessStoreMode store_mode); |
63 Reduction ReduceKeyedAccess(Node* node, Node* index, Node* value, | 64 Reduction ReduceKeyedAccess(Node* node, Node* index, Node* value, |
64 FeedbackNexus const& nexus, | 65 FeedbackNexus const& nexus, |
65 AccessMode access_mode, | 66 AccessMode access_mode, |
66 LanguageMode language_mode); | 67 LanguageMode language_mode, |
| 68 KeyedAccessStoreMode store_mode); |
67 Reduction ReduceNamedAccess(Node* node, Node* value, | 69 Reduction ReduceNamedAccess(Node* node, Node* value, |
68 MapHandleList const& receiver_maps, | 70 MapHandleList const& receiver_maps, |
69 Handle<Name> name, AccessMode access_mode, | 71 Handle<Name> name, AccessMode access_mode, |
70 LanguageMode language_mode, | 72 LanguageMode language_mode, |
71 Node* index = nullptr); | 73 Node* index = nullptr); |
72 | 74 |
73 // Adds stability dependencies on all prototypes of every class in | 75 // Adds stability dependencies on all prototypes of every class in |
74 // {receiver_type} up to (and including) the {holder}. | 76 // {receiver_type} up to (and including) the {holder}. |
75 void AssumePrototypesStable(Type* receiver_type, Handle<JSObject> holder); | 77 void AssumePrototypesStable(Type* receiver_type, Handle<JSObject> holder); |
76 | 78 |
(...skipping 26 matching lines...) Expand all Loading... |
103 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); | 105 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); |
104 }; | 106 }; |
105 | 107 |
106 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) | 108 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) |
107 | 109 |
108 } // namespace compiler | 110 } // namespace compiler |
109 } // namespace internal | 111 } // namespace internal |
110 } // namespace v8 | 112 } // namespace v8 |
111 | 113 |
112 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ | 114 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ |
OLD | NEW |