summaryrefslogtreecommitdiff
path: root/deps/v8/src/compiler/simplified-lowering.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/compiler/simplified-lowering.h')
-rw-r--r--deps/v8/src/compiler/simplified-lowering.h20
1 files changed, 9 insertions, 11 deletions
diff --git a/deps/v8/src/compiler/simplified-lowering.h b/deps/v8/src/compiler/simplified-lowering.h
index 49662a60c6..f9410f8b41 100644
--- a/deps/v8/src/compiler/simplified-lowering.h
+++ b/deps/v8/src/compiler/simplified-lowering.h
@@ -12,6 +12,11 @@
namespace v8 {
namespace internal {
+
+// Forward declarations.
+class TypeCache;
+
+
namespace compiler {
// Forward declarations.
@@ -26,20 +31,14 @@ class SimplifiedLowering final {
void LowerAllNodes();
- // TODO(titzer): These are exposed for direct testing. Use a friend class.
- void DoAllocate(Node* node);
- void DoLoadField(Node* node);
- void DoStoreField(Node* node);
- // TODO(turbofan): The output_type can be removed once the result of the
+ // TODO(turbofan): The representation can be removed once the result of the
// representation analysis is stored in the node bounds.
- void DoLoadBuffer(Node* node, MachineType output_type,
+ void DoLoadBuffer(Node* node, MachineRepresentation rep,
RepresentationChanger* changer);
void DoStoreBuffer(Node* node);
- void DoLoadElement(Node* node);
- void DoStoreElement(Node* node);
void DoObjectIsNumber(Node* node);
void DoObjectIsSmi(Node* node);
- void DoShift(Node* node, Operator const* op);
+ void DoShift(Node* node, Operator const* op, Type* rhs_type);
void DoStringEqual(Node* node);
void DoStringLessThan(Node* node);
void DoStringLessThanOrEqual(Node* node);
@@ -47,7 +46,7 @@ class SimplifiedLowering final {
private:
JSGraph* const jsgraph_;
Zone* const zone_;
- Type* const zero_thirtyone_range_;
+ TypeCache const& type_cache_;
// TODO(danno): SimplifiedLowering shouldn't know anything about the source
// positions table, but must for now since there currently is no other way to
@@ -56,7 +55,6 @@ class SimplifiedLowering final {
// position information via the SourcePositionWrapper like all other reducers.
SourcePositionTable* source_positions_;
- Node* ComputeIndex(const ElementAccess& access, Node* const key);
Node* StringComparison(Node* node);
Node* Int32Div(Node* const node);
Node* Int32Mod(Node* const node);