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

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

Issue 1132423004: [turbofan] Add a Simplified::CheckMaps instruction. Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/operator-properties.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 24 matching lines...) Expand all
35 // representation analysis is stored in the node bounds. 35 // representation analysis is stored in the node bounds.
36 void DoLoadBuffer(Node* node, MachineType output_type, 36 void DoLoadBuffer(Node* node, MachineType output_type,
37 RepresentationChanger* changer); 37 RepresentationChanger* changer);
38 void DoStoreBuffer(Node* node); 38 void DoStoreBuffer(Node* node);
39 void DoLoadElement(Node* node); 39 void DoLoadElement(Node* node);
40 void DoStoreElement(Node* node); 40 void DoStoreElement(Node* node);
41 void DoStringAdd(Node* node); 41 void DoStringAdd(Node* node);
42 void DoStringEqual(Node* node); 42 void DoStringEqual(Node* node);
43 void DoStringLessThan(Node* node); 43 void DoStringLessThan(Node* node);
44 void DoStringLessThanOrEqual(Node* node); 44 void DoStringLessThanOrEqual(Node* node);
45 void DoCheckMaps(Node* node);
45 46
46 private: 47 private:
47 JSGraph* const jsgraph_; 48 JSGraph* const jsgraph_;
48 Zone* const zone_; 49 Zone* const zone_;
49 50
50 // TODO(danno): SimplifiedLowering shouldn't know anything about the source 51 // TODO(danno): SimplifiedLowering shouldn't know anything about the source
51 // positions table, but must for now since there currently is no other way to 52 // positions table, but must for now since there currently is no other way to
52 // pass down source position information to nodes created during 53 // pass down source position information to nodes created during
53 // lowering. Once this phase becomes a vanilla reducer, it should get source 54 // lowering. Once this phase becomes a vanilla reducer, it should get source
54 // position information via the SourcePositionWrapper like all other reducers. 55 // position information via the SourcePositionWrapper like all other reducers.
55 SourcePositionTable* source_positions_; 56 SourcePositionTable* source_positions_;
56 57
57 Node* SmiTag(Node* node); 58 Node* SmiTag(Node* node);
58 Node* IsTagged(Node* node); 59 Node* IsTagged(Node* node);
60 Node* IsSmi(Node* node);
59 Node* Untag(Node* node); 61 Node* Untag(Node* node);
60 Node* OffsetMinusTagConstant(int32_t offset); 62 Node* OffsetMinusTagConstant(int32_t offset);
61 Node* ComputeIndex(const ElementAccess& access, Node* const key); 63 Node* ComputeIndex(const ElementAccess& access, Node* const key);
62 Node* StringComparison(Node* node, bool requires_ordering); 64 Node* StringComparison(Node* node, bool requires_ordering);
63 Node* Int32Div(Node* const node); 65 Node* Int32Div(Node* const node);
64 Node* Int32Mod(Node* const node); 66 Node* Int32Mod(Node* const node);
65 Node* Uint32Div(Node* const node); 67 Node* Uint32Div(Node* const node);
66 Node* Uint32Mod(Node* const node); 68 Node* Uint32Mod(Node* const node);
67 69
70 void AddDeoptimize(Node* frame_state_before, Node* effect, Node* control);
71
68 friend class RepresentationSelector; 72 friend class RepresentationSelector;
69 73
70 Zone* zone() { return jsgraph_->zone(); } 74 Zone* zone() { return jsgraph_->zone(); }
71 JSGraph* jsgraph() { return jsgraph_; } 75 JSGraph* jsgraph() { return jsgraph_; }
72 Graph* graph() { return jsgraph()->graph(); } 76 Graph* graph() { return jsgraph()->graph(); }
73 CommonOperatorBuilder* common() { return jsgraph()->common(); } 77 CommonOperatorBuilder* common() { return jsgraph()->common(); }
74 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } 78 MachineOperatorBuilder* machine() { return jsgraph()->machine(); }
75 }; 79 };
76 80
77 } // namespace compiler 81 } // namespace compiler
78 } // namespace internal 82 } // namespace internal
79 } // namespace v8 83 } // namespace v8
80 84
81 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ 85 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/operator-properties.cc ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698