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

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

Issue 681133004: [turbofan] Complete support for integer division/modulus in simplified lowering. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fixes Created 6 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 | Annotate | Revision Log
« no previous file with comments | « src/compiler/operator-properties-inl.h ('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 35
36 private: 36 private:
37 JSGraph* jsgraph_; 37 JSGraph* jsgraph_;
38 38
39 Node* SmiTag(Node* node); 39 Node* SmiTag(Node* node);
40 Node* IsTagged(Node* node); 40 Node* IsTagged(Node* node);
41 Node* Untag(Node* node); 41 Node* Untag(Node* node);
42 Node* OffsetMinusTagConstant(int32_t offset); 42 Node* OffsetMinusTagConstant(int32_t offset);
43 Node* ComputeIndex(const ElementAccess& access, Node* index); 43 Node* ComputeIndex(const ElementAccess& access, Node* index);
44 Node* StringComparison(Node* node, bool requires_ordering); 44 Node* StringComparison(Node* node, bool requires_ordering);
45 Node* Int32Div(Node* const node);
46 Node* Int32Mod(Node* const node);
47 Node* Uint32Div(Node* const node);
48 Node* Uint32Mod(Node* const node);
45 49
46 friend class RepresentationSelector; 50 friend class RepresentationSelector;
47 51
48 Zone* zone() { return jsgraph_->zone(); } 52 Zone* zone() { return jsgraph_->zone(); }
49 JSGraph* jsgraph() { return jsgraph_; } 53 JSGraph* jsgraph() { return jsgraph_; }
50 Graph* graph() { return jsgraph()->graph(); } 54 Graph* graph() { return jsgraph()->graph(); }
51 CommonOperatorBuilder* common() { return jsgraph()->common(); } 55 CommonOperatorBuilder* common() { return jsgraph()->common(); }
52 MachineOperatorBuilder* machine() { return jsgraph()->machine(); } 56 MachineOperatorBuilder* machine() { return jsgraph()->machine(); }
53 }; 57 };
54 58
55 } // namespace compiler 59 } // namespace compiler
56 } // namespace internal 60 } // namespace internal
57 } // namespace v8 61 } // namespace v8
58 62
59 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_ 63 #endif // V8_COMPILER_SIMPLIFIED_LOWERING_H_
OLDNEW
« no previous file with comments | « src/compiler/operator-properties-inl.h ('k') | src/compiler/simplified-lowering.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698