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

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

Issue 2458643002: [turbofan] Handle inlining of API getters/setters. (Closed)
Patch Set: Update. 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
« no previous file with comments | « src/compiler/access-info.cc ('k') | src/compiler/js-native-context-specialization.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 MapHandleList* receiver_maps); 138 MapHandleList* receiver_maps);
139 139
140 // Try to infer a map for the given {receiver} at the current {effect}. 140 // Try to infer a map for the given {receiver} at the current {effect}.
141 // If a map is returned then you can be sure that the {receiver} definitely 141 // If a map is returned then you can be sure that the {receiver} definitely
142 // has the returned map at this point in the program (identified by {effect}). 142 // has the returned map at this point in the program (identified by {effect}).
143 MaybeHandle<Map> InferReceiverMap(Node* receiver, Node* effect); 143 MaybeHandle<Map> InferReceiverMap(Node* receiver, Node* effect);
144 // Try to infer a root map for the {receiver} independent of the current 144 // Try to infer a root map for the {receiver} independent of the current
145 // program location. 145 // program location.
146 MaybeHandle<Map> InferReceiverRootMap(Node* receiver); 146 MaybeHandle<Map> InferReceiverRootMap(Node* receiver);
147 147
148 ValueEffectControl InlineApiCall(
149 Node* receiver, Node* context, Node* target, Node* frame_state,
150 ZoneVector<Node*>* stack_parameters, Node* effect, Node* control,
151 Handle<SharedFunctionInfo> shared_info,
152 Handle<FunctionTemplateInfo> function_template_info);
153
148 Graph* graph() const; 154 Graph* graph() const;
149 JSGraph* jsgraph() const { return jsgraph_; } 155 JSGraph* jsgraph() const { return jsgraph_; }
150 Isolate* isolate() const; 156 Isolate* isolate() const;
151 Factory* factory() const; 157 Factory* factory() const;
152 CommonOperatorBuilder* common() const; 158 CommonOperatorBuilder* common() const;
153 JSOperatorBuilder* javascript() const; 159 JSOperatorBuilder* javascript() const;
154 SimplifiedOperatorBuilder* simplified() const; 160 SimplifiedOperatorBuilder* simplified() const;
155 MachineOperatorBuilder* machine() const; 161 MachineOperatorBuilder* machine() const;
156 Flags flags() const { return flags_; } 162 Flags flags() const { return flags_; }
157 Handle<Context> native_context() const { return native_context_; } 163 Handle<Context> native_context() const { return native_context_; }
(...skipping 10 matching lines...) Expand all
168 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization); 174 DISALLOW_COPY_AND_ASSIGN(JSNativeContextSpecialization);
169 }; 175 };
170 176
171 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags) 177 DEFINE_OPERATORS_FOR_FLAGS(JSNativeContextSpecialization::Flags)
172 178
173 } // namespace compiler 179 } // namespace compiler
174 } // namespace internal 180 } // namespace internal
175 } // namespace v8 181 } // namespace v8
176 182
177 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_ 183 #endif // V8_COMPILER_JS_NATIVE_CONTEXT_SPECIALIZATION_H_
OLDNEW
« no previous file with comments | « src/compiler/access-info.cc ('k') | src/compiler/js-native-context-specialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698