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

Side by Side Diff: src/compiler/js-call-reducer.h

Issue 2839953002: [turbofan] Optimize API function calls based on inferred receiver maps. (Closed)
Patch Set: REBASE Created 3 years, 8 months 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 | « no previous file | src/compiler/js-call-reducer.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_CALL_REDUCER_H_ 5 #ifndef V8_COMPILER_JS_CALL_REDUCER_H_
6 #define V8_COMPILER_JS_CALL_REDUCER_H_ 6 #define V8_COMPILER_JS_CALL_REDUCER_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 10
(...skipping 23 matching lines...) Expand all
34 jsgraph_(jsgraph), 34 jsgraph_(jsgraph),
35 native_context_(native_context), 35 native_context_(native_context),
36 dependencies_(dependencies) {} 36 dependencies_(dependencies) {}
37 37
38 Reduction Reduce(Node* node) final; 38 Reduction Reduce(Node* node) final;
39 39
40 private: 40 private:
41 Reduction ReduceArrayConstructor(Node* node); 41 Reduction ReduceArrayConstructor(Node* node);
42 Reduction ReduceBooleanConstructor(Node* node); 42 Reduction ReduceBooleanConstructor(Node* node);
43 Reduction ReduceCallApiFunction( 43 Reduction ReduceCallApiFunction(
44 Node* node, Node* target, 44 Node* node, Handle<FunctionTemplateInfo> function_template_info);
45 Handle<FunctionTemplateInfo> function_template_info);
46 Reduction ReduceNumberConstructor(Node* node); 45 Reduction ReduceNumberConstructor(Node* node);
47 Reduction ReduceFunctionPrototypeApply(Node* node); 46 Reduction ReduceFunctionPrototypeApply(Node* node);
48 Reduction ReduceFunctionPrototypeCall(Node* node); 47 Reduction ReduceFunctionPrototypeCall(Node* node);
49 Reduction ReduceFunctionPrototypeHasInstance(Node* node); 48 Reduction ReduceFunctionPrototypeHasInstance(Node* node);
50 Reduction ReduceObjectGetPrototype(Node* node, Node* object); 49 Reduction ReduceObjectGetPrototype(Node* node, Node* object);
51 Reduction ReduceObjectGetPrototypeOf(Node* node); 50 Reduction ReduceObjectGetPrototypeOf(Node* node);
52 Reduction ReduceObjectPrototypeGetProto(Node* node); 51 Reduction ReduceObjectPrototypeGetProto(Node* node);
53 Reduction ReduceReflectGetPrototypeOf(Node* node); 52 Reduction ReduceReflectGetPrototypeOf(Node* node);
54 Reduction ReduceSpreadCall(Node* node, int arity); 53 Reduction ReduceSpreadCall(Node* node, int arity);
55 Reduction ReduceJSConstruct(Node* node); 54 Reduction ReduceJSConstruct(Node* node);
56 Reduction ReduceJSConstructWithSpread(Node* node); 55 Reduction ReduceJSConstructWithSpread(Node* node);
57 Reduction ReduceJSCall(Node* node); 56 Reduction ReduceJSCall(Node* node);
58 Reduction ReduceJSCallWithSpread(Node* node); 57 Reduction ReduceJSCallWithSpread(Node* node);
59 58
60 enum HolderLookup { kHolderNotFound, kHolderIsReceiver, kHolderFound };
61
62 HolderLookup LookupHolder(Handle<JSObject> object,
63 Handle<FunctionTemplateInfo> function_template_info,
64 Handle<JSObject>* holder);
65
66 Graph* graph() const; 59 Graph* graph() const;
67 JSGraph* jsgraph() const { return jsgraph_; } 60 JSGraph* jsgraph() const { return jsgraph_; }
68 Isolate* isolate() const; 61 Isolate* isolate() const;
69 Factory* factory() const; 62 Factory* factory() const;
70 Handle<Context> native_context() const { return native_context_; } 63 Handle<Context> native_context() const { return native_context_; }
64 Handle<JSGlobalProxy> global_proxy() const;
71 CommonOperatorBuilder* common() const; 65 CommonOperatorBuilder* common() const;
72 JSOperatorBuilder* javascript() const; 66 JSOperatorBuilder* javascript() const;
73 SimplifiedOperatorBuilder* simplified() const; 67 SimplifiedOperatorBuilder* simplified() const;
74 CompilationDependencies* dependencies() const { return dependencies_; } 68 CompilationDependencies* dependencies() const { return dependencies_; }
75 69
76 JSGraph* const jsgraph_; 70 JSGraph* const jsgraph_;
77 Handle<Context> const native_context_; 71 Handle<Context> const native_context_;
78 CompilationDependencies* const dependencies_; 72 CompilationDependencies* const dependencies_;
79 }; 73 };
80 74
81 } // namespace compiler 75 } // namespace compiler
82 } // namespace internal 76 } // namespace internal
83 } // namespace v8 77 } // namespace v8
84 78
85 #endif // V8_COMPILER_JS_CALL_REDUCER_H_ 79 #endif // V8_COMPILER_JS_CALL_REDUCER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-call-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698