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

Side by Side Diff: src/compiler/simplified-lowering.h

Issue 968773004: [turbofan] Use the typer to statically detect Smis. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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/change-lowering.cc ('k') | src/compiler/simplified-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 2014 the V8 project authors. All rights reserved. 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 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_SIMPLIFIED_LOWERING_H_ 5 #ifndef V8_COMPILER_SIMPLIFIED_LOWERING_H_
6 #define V8_COMPILER_SIMPLIFIED_LOWERING_H_ 6 #define V8_COMPILER_SIMPLIFIED_LOWERING_H_
7 7
8 #include "src/compiler/js-graph.h" 8 #include "src/compiler/js-graph.h"
9 #include "src/compiler/machine-operator.h" 9 #include "src/compiler/machine-operator.h"
10 #include "src/compiler/node.h" 10 #include "src/compiler/node.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // positions table, but must for now since there currently is no other way to 50 // positions table, but must for now since there currently is no other way to
51 // pass down source position information to nodes created during 51 // pass down source position information to nodes created during
52 // lowering. Once this phase becomes a vanilla reducer, it should get source 52 // lowering. Once this phase becomes a vanilla reducer, it should get source
53 // position information via the SourcePositionWrapper like all other reducers. 53 // position information via the SourcePositionWrapper like all other reducers.
54 SourcePositionTable* source_positions_; 54 SourcePositionTable* source_positions_;
55 55
56 Node* SmiTag(Node* node); 56 Node* SmiTag(Node* node);
57 Node* IsTagged(Node* node); 57 Node* IsTagged(Node* node);
58 Node* Untag(Node* node); 58 Node* Untag(Node* node);
59 Node* OffsetMinusTagConstant(int32_t offset); 59 Node* OffsetMinusTagConstant(int32_t offset);
60 WriteBarrierKind ComputeWriteBarrierKind(BaseTaggedness base_is_tagged,
61 MachineType representation,
62 Node* value);
63 Node* ComputeIndex(const ElementAccess& access, Node* const key); 60 Node* ComputeIndex(const ElementAccess& access, Node* const key);
64 Node* StringComparison(Node* node, bool requires_ordering); 61 Node* StringComparison(Node* node, bool requires_ordering);
65 Node* Int32Div(Node* const node); 62 Node* Int32Div(Node* const node);
66 Node* Int32Mod(Node* const node); 63 Node* Int32Mod(Node* const node);
67 Node* Uint32Div(Node* const node); 64 Node* Uint32Div(Node* const node);
68 Node* Uint32Mod(Node* const node); 65 Node* Uint32Mod(Node* const node);
69 66
70 friend class RepresentationSelector; 67 friend class RepresentationSelector;
71 68
72 Zone* zone() { return jsgraph_->zone(); } 69 Zone* zone() { return jsgraph_->zone(); }
73 JSGraph* jsgraph() { return jsgraph_; } 70 JSGraph* jsgraph() { return jsgraph_; }
74 Graph* graph() { return jsgraph()->graph(); } 71 Graph* graph() { return jsgraph()->graph(); }
75 CommonOperatorBuilder* common() { return jsgraph()->common(); } 72 CommonOperatorBuilder* common() { return jsgraph()->common(); }
76 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } 73 MachineOperatorBuilder* machine() { return jsgraph()->machine(); }
77 }; 74 };
78 75
79 } // namespace compiler 76 } // namespace compiler
80 } // namespace internal 77 } // namespace internal
81 } // namespace v8 78 } // namespace v8
82 79
83 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ 80 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/change-lowering.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698