Commit 204b6ff0 authored by bradnelson's avatar bradnelson Committed by Commit bot

Drop region parameter to Unbounded, as it can be done without.

Unbounded is defined in terms of None any Any,
which don't require an explicit zone.
Switching Unbounded to be the same.

BUG= None
TEST= trybots
R= titzer@chromium.org
LOG=N

Review URL: https://codereview.chromium.org/1322003002

Cr-Commit-Position: refs/heads/master@{#30482}
parent 4d3a0a7c
......@@ -406,7 +406,7 @@ class Expression : public AstNode {
Expression(Zone* zone, int pos)
: AstNode(pos),
base_id_(BailoutId::None().ToInt()),
bounds_(Bounds::Unbounded(zone)),
bounds_(Bounds::Unbounded()),
bit_field_(0) {}
static int parent_num_ids() { return 0; }
void set_to_boolean_types(uint16_t types) {
......
......@@ -483,7 +483,7 @@ Bounds Typer::Visitor::TypeStart(Node* node) {
Bounds Typer::Visitor::TypeIfException(Node* node) {
return Bounds::Unbounded(zone());
return Bounds::Unbounded();
}
......@@ -497,12 +497,12 @@ Bounds Typer::Visitor::TypeParameter(Node* node) {
return Bounds(Type::None(), function_type->Parameter(index));
}
}
return Bounds::Unbounded(zone());
return Bounds::Unbounded();
}
Bounds Typer::Visitor::TypeOsrValue(Node* node) {
return Bounds::Unbounded(zone());
return Bounds::Unbounded();
}
......@@ -605,18 +605,18 @@ Bounds Typer::Visitor::TypeTypedStateValues(Node* node) {
Bounds Typer::Visitor::TypeCall(Node* node) {
return Bounds::Unbounded(zone());
return Bounds::Unbounded();
}
Bounds Typer::Visitor::TypeProjection(Node* node) {
// TODO(titzer): use the output type of the input to determine the bounds.
return Bounds::Unbounded(zone());
return Bounds::Unbounded();
}
Bounds Typer::Visitor::TypeDead(Node* node) {
return Bounds::Unbounded(zone());
return Bounds::Unbounded();
}
......@@ -1204,12 +1204,12 @@ Bounds Typer::Visitor::TypeJSLoadProperty(Node* node) {
Bounds Typer::Visitor::TypeJSLoadNamed(Node* node) {
return Bounds::Unbounded(zone());
return Bounds::Unbounded();
}
Bounds Typer::Visitor::TypeJSLoadGlobal(Node* node) {
return Bounds::Unbounded(zone());
return Bounds::Unbounded();
}
......@@ -1377,12 +1377,12 @@ Bounds Typer::Visitor::TypeJSStoreContext(Node* node) {
Bounds Typer::Visitor::TypeJSLoadDynamicGlobal(Node* node) {
return Bounds::Unbounded(zone());
return Bounds::Unbounded();
}
Bounds Typer::Visitor::TypeJSLoadDynamicContext(Node* node) {
return Bounds::Unbounded(zone());
return Bounds::Unbounded();
}
......@@ -1432,7 +1432,7 @@ Bounds Typer::Visitor::TypeJSCreateScriptContext(Node* node) {
Bounds Typer::Visitor::TypeJSYield(Node* node) {
return Bounds::Unbounded(zone());
return Bounds::Unbounded();
}
......@@ -1483,7 +1483,7 @@ Bounds Typer::Visitor::TypeJSCallRuntime(Node* node) {
default:
break;
}
return Bounds::Unbounded(zone());
return Bounds::Unbounded();
}
......@@ -1495,7 +1495,7 @@ Bounds Typer::Visitor::TypeJSForInNext(Node* node) {
Bounds Typer::Visitor::TypeJSForInPrepare(Node* node) {
// TODO(bmeurer): Return a tuple type here.
return Bounds::Unbounded(zone());
return Bounds::Unbounded();
}
......@@ -1512,7 +1512,7 @@ Bounds Typer::Visitor::TypeJSForInStep(Node* node) {
Bounds Typer::Visitor::TypeJSStackCheck(Node* node) {
return Bounds::Unbounded(zone());
return Bounds::Unbounded();
}
......@@ -1764,7 +1764,7 @@ Bounds Typer::Visitor::TypeObjectIsNonNegativeSmi(Node* node) {
// Machine operators.
Bounds Typer::Visitor::TypeLoad(Node* node) {
return Bounds::Unbounded(zone());
return Bounds::Unbounded();
}
......@@ -2213,7 +2213,7 @@ Bounds Typer::Visitor::TypeLoadFramePointer(Node* node) {
Bounds Typer::Visitor::TypeCheckedLoad(Node* node) {
return Bounds::Unbounded(zone());
return Bounds::Unbounded();
}
......
......@@ -35,11 +35,11 @@ struct Effect {
// The unknown effect.
static Effect Unknown(Zone* zone) {
return Effect(Bounds::Unbounded(zone), POSSIBLE);
return Effect(Bounds::Unbounded(), POSSIBLE);
}
static Effect Forget(Zone* zone) {
return Effect(Bounds::Unbounded(zone), DEFINITE);
return Effect(Bounds::Unbounded(), DEFINITE);
}
// Sequential composition, as in 'e1; e2'.
......@@ -87,7 +87,7 @@ class EffectsMixin: public Base {
Bounds LookupBounds(Var var) {
Effect effect = Lookup(var);
return effect.modality == Effect::DEFINITE
? effect.bounds : Bounds::Unbounded(Base::zone());
? effect.bounds : Bounds::Unbounded();
}
// Sequential composition.
......
......@@ -1134,8 +1134,8 @@ struct BoundsImpl {
}
// Unrestricted bounds.
static BoundsImpl Unbounded(Region* region) {
return BoundsImpl(Type::None(region), Type::Any(region));
static BoundsImpl Unbounded() {
return BoundsImpl(Type::None(), Type::Any());
}
// Meet: both b1 and b2 are known to hold.
......
......@@ -15,11 +15,11 @@ namespace internal {
TypingReseter::TypingReseter(CompilationInfo* info)
: AstExpressionVisitor(info), info_(info) {}
: AstExpressionVisitor(info) {}
void TypingReseter::VisitExpression(Expression* expression) {
expression->set_bounds(Bounds::Unbounded(info_->zone()));
expression->set_bounds(Bounds::Unbounded());
}
}
} // namespace v8::internal
......@@ -19,9 +19,6 @@ class TypingReseter : public AstExpressionVisitor {
protected:
void VisitExpression(Expression* expression) override;
private:
CompilationInfo* info_;
};
}
} // namespace v8::internal
......
......@@ -14,7 +14,7 @@
CHECK_EQ(index, types.size()); \
}
#define DEFAULT_TYPE Bounds::Unbounded(handles.main_zone())
#define DEFAULT_TYPE Bounds::Unbounded()
#define INT32_TYPE \
Bounds(Type::Signed32(handles.main_zone()), \
Type::Signed32(handles.main_zone()))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment