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

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

Issue 2537763002: [turbofan] Also optimize instanceof with bound functions. (Closed)
Patch Set: 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 | « src/compiler/js-builtin-reducer.cc ('k') | 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 26 matching lines...) Expand all
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 ReduceNumberConstructor(Node* node); 44 Reduction ReduceNumberConstructor(Node* node);
45 Reduction ReduceFunctionPrototypeApply(Node* node); 45 Reduction ReduceFunctionPrototypeApply(Node* node);
46 Reduction ReduceFunctionPrototypeCall(Node* node); 46 Reduction ReduceFunctionPrototypeCall(Node* node);
47 Reduction ReduceFunctionPrototypeHasInstance(Node* node);
47 Reduction ReduceObjectPrototypeGetProto(Node* node); 48 Reduction ReduceObjectPrototypeGetProto(Node* node);
48 Reduction ReduceJSCallConstruct(Node* node); 49 Reduction ReduceJSCallConstruct(Node* node);
49 Reduction ReduceJSCallFunction(Node* node); 50 Reduction ReduceJSCallFunction(Node* node);
50 51
51 Graph* graph() const; 52 Graph* graph() const;
52 Flags flags() const { return flags_; } 53 Flags flags() const { return flags_; }
53 JSGraph* jsgraph() const { return jsgraph_; } 54 JSGraph* jsgraph() const { return jsgraph_; }
54 Isolate* isolate() const; 55 Isolate* isolate() const;
55 Handle<Context> native_context() const { return native_context_; } 56 Handle<Context> native_context() const { return native_context_; }
56 CommonOperatorBuilder* common() const; 57 CommonOperatorBuilder* common() const;
57 JSOperatorBuilder* javascript() const; 58 JSOperatorBuilder* javascript() const;
58 SimplifiedOperatorBuilder* simplified() const; 59 SimplifiedOperatorBuilder* simplified() const;
59 60
60 JSGraph* const jsgraph_; 61 JSGraph* const jsgraph_;
61 Flags const flags_; 62 Flags const flags_;
62 Handle<Context> const native_context_; 63 Handle<Context> const native_context_;
63 }; 64 };
64 65
65 DEFINE_OPERATORS_FOR_FLAGS(JSCallReducer::Flags) 66 DEFINE_OPERATORS_FOR_FLAGS(JSCallReducer::Flags)
66 67
67 } // namespace compiler 68 } // namespace compiler
68 } // namespace internal 69 } // namespace internal
69 } // namespace v8 70 } // namespace v8
70 71
71 #endif // V8_COMPILER_JS_CALL_REDUCER_H_ 72 #endif // V8_COMPILER_JS_CALL_REDUCER_H_
OLDNEW
« no previous file with comments | « src/compiler/js-builtin-reducer.cc ('k') | src/compiler/js-call-reducer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698