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

Side by Side Diff: src/compiler/js-intrinsic-lowering.h

Issue 2647833004: [turbofan] Properly implement %_ClassOf intrinsic. (Closed)
Patch Set: Created 3 years, 11 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 | « src/compiler/js-generic-lowering.cc ('k') | src/compiler/js-intrinsic-lowering.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_INTRINSIC_LOWERING_H_ 5 #ifndef V8_COMPILER_JS_INTRINSIC_LOWERING_H_
6 #define V8_COMPILER_JS_INTRINSIC_LOWERING_H_ 6 #define V8_COMPILER_JS_INTRINSIC_LOWERING_H_
7 7
8 #include "src/base/compiler-specific.h" 8 #include "src/base/compiler-specific.h"
9 #include "src/compiler/common-operator.h" 9 #include "src/compiler/common-operator.h"
10 #include "src/compiler/graph-reducer.h" 10 #include "src/compiler/graph-reducer.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 Reduction ReduceToString(Node* node); 60 Reduction ReduceToString(Node* node);
61 Reduction ReduceCall(Node* node); 61 Reduction ReduceCall(Node* node);
62 Reduction ReduceGetSuperConstructor(Node* node); 62 Reduction ReduceGetSuperConstructor(Node* node);
63 63
64 // TODO(turbofan): collection.js support; drop once Maps and Sets are 64 // TODO(turbofan): collection.js support; drop once Maps and Sets are
65 // converted to proper CodeStubAssembler based builtins. 65 // converted to proper CodeStubAssembler based builtins.
66 Reduction ReduceJSCollectionGetTable(Node* node); 66 Reduction ReduceJSCollectionGetTable(Node* node);
67 Reduction ReduceStringGetRawHashField(Node* node); 67 Reduction ReduceStringGetRawHashField(Node* node);
68 Reduction ReduceTheHole(Node* node); 68 Reduction ReduceTheHole(Node* node);
69 69
70 // TODO(turbofan): JavaScript builtins support; drop once all uses of
71 // %_ClassOf in JavaScript builtins are eliminated.
72 Reduction ReduceClassOf(Node* node);
73
70 Reduction Change(Node* node, const Operator* op); 74 Reduction Change(Node* node, const Operator* op);
71 Reduction Change(Node* node, const Operator* op, Node* a, Node* b); 75 Reduction Change(Node* node, const Operator* op, Node* a, Node* b);
72 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c); 76 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c);
73 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c, 77 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c,
74 Node* d); 78 Node* d);
75 Reduction Change(Node* node, Callable const& callable, 79 Reduction Change(Node* node, Callable const& callable,
76 int stack_parameter_count); 80 int stack_parameter_count);
77 81
78 Graph* graph() const; 82 Graph* graph() const;
79 JSGraph* jsgraph() const { return jsgraph_; } 83 JSGraph* jsgraph() const { return jsgraph_; }
80 Isolate* isolate() const; 84 Isolate* isolate() const;
81 CommonOperatorBuilder* common() const; 85 CommonOperatorBuilder* common() const;
82 JSOperatorBuilder* javascript() const; 86 JSOperatorBuilder* javascript() const;
83 SimplifiedOperatorBuilder* simplified() const; 87 SimplifiedOperatorBuilder* simplified() const;
84 DeoptimizationMode mode() const { return mode_; } 88 DeoptimizationMode mode() const { return mode_; }
85 89
86 JSGraph* const jsgraph_; 90 JSGraph* const jsgraph_;
87 DeoptimizationMode const mode_; 91 DeoptimizationMode const mode_;
88 }; 92 };
89 93
90 } // namespace compiler 94 } // namespace compiler
91 } // namespace internal 95 } // namespace internal
92 } // namespace v8 96 } // namespace v8
93 97
94 #endif // V8_COMPILER_JS_INTRINSIC_LOWERING_H_ 98 #endif // V8_COMPILER_JS_INTRINSIC_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/compiler/js-intrinsic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698