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

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

Issue 2555223002: [turbofan] Inlining of API functions. (Closed)
Patch Set: Update. Created 4 years 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') | src/compiler/js-call-reducer.cc » ('J')
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 Handle<Context> native_context) 34 Handle<Context> native_context)
35 : AdvancedReducer(editor), 35 : AdvancedReducer(editor),
36 jsgraph_(jsgraph), 36 jsgraph_(jsgraph),
37 flags_(flags), 37 flags_(flags),
38 native_context_(native_context) {} 38 native_context_(native_context) {}
39 39
40 Reduction Reduce(Node* node) final; 40 Reduction Reduce(Node* node) final;
41 41
42 private: 42 private:
43 Reduction ReduceArrayConstructor(Node* node); 43 Reduction ReduceArrayConstructor(Node* node);
44 Reduction ReduceCallApiFunction(
45 Node* node, Node* target,
46 Handle<FunctionTemplateInfo> function_template_info);
44 Reduction ReduceNumberConstructor(Node* node); 47 Reduction ReduceNumberConstructor(Node* node);
45 Reduction ReduceFunctionPrototypeApply(Node* node); 48 Reduction ReduceFunctionPrototypeApply(Node* node);
46 Reduction ReduceFunctionPrototypeCall(Node* node); 49 Reduction ReduceFunctionPrototypeCall(Node* node);
47 Reduction ReduceFunctionPrototypeHasInstance(Node* node); 50 Reduction ReduceFunctionPrototypeHasInstance(Node* node);
48 Reduction ReduceObjectPrototypeGetProto(Node* node); 51 Reduction ReduceObjectPrototypeGetProto(Node* node);
49 Reduction ReduceJSCallConstruct(Node* node); 52 Reduction ReduceJSCallConstruct(Node* node);
50 Reduction ReduceJSCallFunction(Node* node); 53 Reduction ReduceJSCallFunction(Node* node);
51 54
55 enum HolderLookup { kHolderNotFound, kHolderIsReceiver, kHolderFound };
56
57 HolderLookup LookupHolder(Handle<JSObject> object,
58 Handle<FunctionTemplateInfo> function_template_info,
59 Handle<JSObject>* holder);
60
52 Graph* graph() const; 61 Graph* graph() const;
53 Flags flags() const { return flags_; } 62 Flags flags() const { return flags_; }
54 JSGraph* jsgraph() const { return jsgraph_; } 63 JSGraph* jsgraph() const { return jsgraph_; }
55 Isolate* isolate() const; 64 Isolate* isolate() const;
56 Handle<Context> native_context() const { return native_context_; } 65 Handle<Context> native_context() const { return native_context_; }
57 CommonOperatorBuilder* common() const; 66 CommonOperatorBuilder* common() const;
58 JSOperatorBuilder* javascript() const; 67 JSOperatorBuilder* javascript() const;
59 SimplifiedOperatorBuilder* simplified() const; 68 SimplifiedOperatorBuilder* simplified() const;
60 69
61 JSGraph* const jsgraph_; 70 JSGraph* const jsgraph_;
62 Flags const flags_; 71 Flags const flags_;
63 Handle<Context> const native_context_; 72 Handle<Context> const native_context_;
64 }; 73 };
65 74
66 DEFINE_OPERATORS_FOR_FLAGS(JSCallReducer::Flags) 75 DEFINE_OPERATORS_FOR_FLAGS(JSCallReducer::Flags)
67 76
68 } // namespace compiler 77 } // namespace compiler
69 } // namespace internal 78 } // namespace internal
70 } // namespace v8 79 } // namespace v8
71 80
72 #endif // V8_COMPILER_JS_CALL_REDUCER_H_ 81 #endif // V8_COMPILER_JS_CALL_REDUCER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-call-reducer.cc » ('j') | src/compiler/js-call-reducer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698