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

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

Issue 1428243003: [turbofan] Add support for relevant ES6 type conversion intrinsics. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Address comments. Created 5 years, 1 month 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-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/compiler/common-operator.h" 8 #include "src/compiler/common-operator.h"
9 #include "src/compiler/graph-reducer.h" 9 #include "src/compiler/graph-reducer.h"
10 10
11 namespace v8 { 11 namespace v8 {
12 namespace internal { 12 namespace internal {
13
14 // Forward declarations.
15 class TypeCache;
16
17
13 namespace compiler { 18 namespace compiler {
14 19
15 // Forward declarations. 20 // Forward declarations.
16 class CommonOperatorBuilder; 21 class CommonOperatorBuilder;
17 class JSOperatorBuilder; 22 class JSOperatorBuilder;
18 class JSGraph; 23 class JSGraph;
19 class MachineOperatorBuilder; 24 class MachineOperatorBuilder;
20 class SimplifiedOperatorBuilder; 25 class SimplifiedOperatorBuilder;
21 26
22 27
(...skipping 27 matching lines...) Expand all
50 Reduction ReduceSeqStringGetChar(Node* node, String::Encoding encoding); 55 Reduction ReduceSeqStringGetChar(Node* node, String::Encoding encoding);
51 Reduction ReduceSeqStringSetChar(Node* node, String::Encoding encoding); 56 Reduction ReduceSeqStringSetChar(Node* node, String::Encoding encoding);
52 Reduction ReduceStringGetLength(Node* node); 57 Reduction ReduceStringGetLength(Node* node);
53 Reduction ReduceUnLikely(Node* node, BranchHint hint); 58 Reduction ReduceUnLikely(Node* node, BranchHint hint);
54 Reduction ReduceValueOf(Node* node); 59 Reduction ReduceValueOf(Node* node);
55 Reduction ReduceFixedArrayGet(Node* node); 60 Reduction ReduceFixedArrayGet(Node* node);
56 Reduction ReduceFixedArraySet(Node* node); 61 Reduction ReduceFixedArraySet(Node* node);
57 Reduction ReduceGetTypeFeedbackVector(Node* node); 62 Reduction ReduceGetTypeFeedbackVector(Node* node);
58 Reduction ReduceGetCallerJSFunction(Node* node); 63 Reduction ReduceGetCallerJSFunction(Node* node);
59 Reduction ReduceThrowNotDateError(Node* node); 64 Reduction ReduceThrowNotDateError(Node* node);
65 Reduction ReduceToInteger(Node* node);
66 Reduction ReduceToLength(Node* node);
67 Reduction ReduceToName(Node* node);
68 Reduction ReduceToNumber(Node* node);
60 Reduction ReduceToObject(Node* node); 69 Reduction ReduceToObject(Node* node);
70 Reduction ReduceToPrimitive(Node* node);
71 Reduction ReduceToString(Node* node);
61 Reduction ReduceCallFunction(Node* node); 72 Reduction ReduceCallFunction(Node* node);
62 73
63 Reduction Change(Node* node, const Operator* op); 74 Reduction Change(Node* node, const Operator* op);
64 Reduction Change(Node* node, const Operator* op, Node* a, Node* b); 75 Reduction Change(Node* node, const Operator* op, Node* a, Node* b);
65 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);
66 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,
67 Node* d); 78 Node* d);
68 Reduction ChangeToUndefined(Node* node, Node* effect = nullptr); 79 Reduction ChangeToUndefined(Node* node, Node* effect = nullptr);
69 80
70 Graph* graph() const; 81 Graph* graph() const;
71 JSGraph* jsgraph() const { return jsgraph_; } 82 JSGraph* jsgraph() const { return jsgraph_; }
83 Isolate* isolate() const;
72 CommonOperatorBuilder* common() const; 84 CommonOperatorBuilder* common() const;
73 JSOperatorBuilder* javascript() const; 85 JSOperatorBuilder* javascript() const;
74 MachineOperatorBuilder* machine() const; 86 MachineOperatorBuilder* machine() const;
75 SimplifiedOperatorBuilder* simplified() const; 87 SimplifiedOperatorBuilder* simplified() const;
76 DeoptimizationMode mode() const { return mode_; } 88 DeoptimizationMode mode() const { return mode_; }
89 TypeCache const& type_cache() const { return type_cache_; }
77 90
78 JSGraph* const jsgraph_; 91 JSGraph* const jsgraph_;
79 DeoptimizationMode const mode_; 92 DeoptimizationMode const mode_;
93 TypeCache const& type_cache_;
80 }; 94 };
81 95
82 } // namespace compiler 96 } // namespace compiler
83 } // namespace internal 97 } // namespace internal
84 } // namespace v8 98 } // namespace v8
85 99
86 #endif // V8_COMPILER_JS_INTRINSIC_LOWERING_H_ 100 #endif // V8_COMPILER_JS_INTRINSIC_LOWERING_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/js-intrinsic-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698