OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 the V8 project authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef V8_COMPILER_JS_INTRINSIC_BUILDER_H_ | |
6 #define V8_COMPILER_JS_INTRINSIC_BUILDER_H_ | |
7 | |
8 #include "src/compiler/js-graph.h" | |
9 #include "src/v8.h" | |
10 | |
11 namespace v8 { | |
12 namespace internal { | |
13 namespace compiler { | |
14 | |
15 class JSIntrinsicBuilder { | |
16 public: | |
17 explicit JSIntrinsicBuilder(JSGraph* jsgraph) : jsgraph_(jsgraph) {} | |
18 | |
19 std::pair<Node*, Node*> BuildGraphFor(Runtime::FunctionId id, | |
Michael Starzinger
2014/10/15 08:44:59
Can we add a typedef for this pair?
sigurds
2014/10/15 12:39:35
Done.
| |
20 const NodeVector& arguments); | |
21 | |
22 std::pair<Node*, Node*> BuildGraphFor_IsSmi(const NodeVector& arguments); | |
Michael Starzinger
2014/10/15 08:44:59
Can we make the dispatched methods private and onl
sigurds
2014/10/15 12:39:35
Done.
| |
23 std::pair<Node*, Node*> BuildGraphFor_IsNonNegativeSmi( | |
24 const NodeVector& arguments); | |
25 std::pair<Node*, Node*> BuildGraphFor_ValueOf(const NodeVector& arguments); | |
26 | |
27 private: | |
28 std::pair<Node*, Node*> BuildMapCheck(Node* object, Node* effect, | |
29 InstanceType map_type); | |
30 | |
31 Graph* graph() const { return jsgraph_->graph(); } | |
32 CommonOperatorBuilder* common() const { return jsgraph_->common(); } | |
33 JSGraph* jsgraph_; | |
34 }; | |
35 } | |
36 } | |
37 } // namespace v8::internal::compiler | |
38 | |
39 #endif // V8_COMPILER_JS_INTRINSIC_BUILDER_H_ | |
OLD | NEW |