Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(204)

Side by Side Diff: src/compiler/js-native-context-specialization.h

Issue 2510553002: [turbofan] Specialize to (optimization time) known TypedArray instances. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 FeedbackVectorSlot slot); 108 FeedbackVectorSlot slot);
109 109
110 // Construct the appropriate subgraph for element access. 110 // Construct the appropriate subgraph for element access.
111 ValueEffectControl BuildElementAccess(Node* receiver, Node* index, 111 ValueEffectControl BuildElementAccess(Node* receiver, Node* index,
112 Node* value, Node* effect, 112 Node* value, Node* effect,
113 Node* control, 113 Node* control,
114 ElementAccessInfo const& access_info, 114 ElementAccessInfo const& access_info,
115 AccessMode access_mode, 115 AccessMode access_mode,
116 KeyedAccessStoreMode store_mode); 116 KeyedAccessStoreMode store_mode);
117 117
118 // Construct an appropriate heap object check.
119 Node* BuildCheckHeapObject(Node* receiver, Node** effect, Node* control);
120
118 // Construct an appropriate map check. 121 // Construct an appropriate map check.
119 Node* BuildCheckMaps(Node* receiver, Node* effect, Node* control, 122 Node* BuildCheckMaps(Node* receiver, Node* effect, Node* control,
120 std::vector<Handle<Map>> const& maps); 123 std::vector<Handle<Map>> const& maps);
121 124
122 // Adds stability dependencies on all prototypes of every class in 125 // Adds stability dependencies on all prototypes of every class in
123 // {receiver_type} up to (and including) the {holder}. 126 // {receiver_type} up to (and including) the {holder}.
124 void AssumePrototypesStable(std::vector<Handle<Map>> const& receiver_maps, 127 void AssumePrototypesStable(std::vector<Handle<Map>> const& receiver_maps,
125 Handle<JSObject> holder); 128 Handle<JSObject> holder);
126 129
127 // Checks if we can turn the hole into undefined when loading an element 130 // Checks if we can turn the hole into undefined when loading an element
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); 175 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization);
173 }; 176 };
174 177
175 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) 178 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags)
176 179
177 } // namespace compiler 180 } // namespace compiler
178 } // namespace internal 181 } // namespace internal
179 } // namespace v8 182 } // namespace v8
180 183
181 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ 184 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_
OLDNEW
« no previous file with comments | « src/compiler/effect-control-linearizer.cc ('k') | src/compiler/js-native-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698