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

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

Issue 1266013006: [stubs] Unify (and optimize) implementation of ToObject. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add missing support for %_ToObject in TurboFan and Crankshaft. Created 5 years, 4 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/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 #include "src/compiler/simplified-operator.h" 10 #include "src/compiler/simplified-operator.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 Reduction ReduceSeqStringGetChar(Node* node, String::Encoding encoding); 51 Reduction ReduceSeqStringGetChar(Node* node, String::Encoding encoding);
52 Reduction ReduceSeqStringSetChar(Node* node, String::Encoding encoding); 52 Reduction ReduceSeqStringSetChar(Node* node, String::Encoding encoding);
53 Reduction ReduceStringGetLength(Node* node); 53 Reduction ReduceStringGetLength(Node* node);
54 Reduction ReduceUnLikely(Node* node, BranchHint hint); 54 Reduction ReduceUnLikely(Node* node, BranchHint hint);
55 Reduction ReduceValueOf(Node* node); 55 Reduction ReduceValueOf(Node* node);
56 Reduction ReduceFixedArrayGet(Node* node); 56 Reduction ReduceFixedArrayGet(Node* node);
57 Reduction ReduceFixedArraySet(Node* node); 57 Reduction ReduceFixedArraySet(Node* node);
58 Reduction ReduceGetTypeFeedbackVector(Node* node); 58 Reduction ReduceGetTypeFeedbackVector(Node* node);
59 Reduction ReduceGetCallerJSFunction(Node* node); 59 Reduction ReduceGetCallerJSFunction(Node* node);
60 Reduction ReduceThrowNotDateError(Node* node); 60 Reduction ReduceThrowNotDateError(Node* node);
61 Reduction ReduceToObject(Node* node);
61 Reduction ReduceCallFunction(Node* node); 62 Reduction ReduceCallFunction(Node* node);
62 63
63 Reduction Change(Node* node, const Operator* op); 64 Reduction Change(Node* node, const Operator* op);
64 Reduction Change(Node* node, const Operator* op, Node* a, Node* b); 65 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); 66 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, 67 Reduction Change(Node* node, const Operator* op, Node* a, Node* b, Node* c,
67 Node* d); 68 Node* d);
68 Reduction ChangeToUndefined(Node* node, Node* effect = nullptr); 69 Reduction ChangeToUndefined(Node* node, Node* effect = nullptr);
69 70
70 Graph* graph() const; 71 Graph* graph() const;
71 JSGraph* jsgraph() const { return jsgraph_; } 72 JSGraph* jsgraph() const { return jsgraph_; }
72 CommonOperatorBuilder* common() const; 73 CommonOperatorBuilder* common() const;
73 JSOperatorBuilder* javascript() const; 74 JSOperatorBuilder* javascript() const;
74 MachineOperatorBuilder* machine() const; 75 MachineOperatorBuilder* machine() const;
75 DeoptimizationMode mode() const { return mode_; } 76 DeoptimizationMode mode() const { return mode_; }
76 SimplifiedOperatorBuilder* simplified() { return &simplified_; } 77 SimplifiedOperatorBuilder* simplified() { return &simplified_; }
77 78
78 JSGraph* const jsgraph_; 79 JSGraph* const jsgraph_;
79 DeoptimizationMode const mode_; 80 DeoptimizationMode const mode_;
80 SimplifiedOperatorBuilder simplified_; 81 SimplifiedOperatorBuilder simplified_;
81 }; 82 };
82 83
83 } // namespace compiler 84 } // namespace compiler
84 } // namespace internal 85 } // namespace internal
85 } // namespace v8 86 } // namespace v8
86 87
87 #endif // V8_COMPILER_JS_INTRINSIC_LOWERING_H_ 88 #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