Commit 0e703bd3 authored by bmeurer's avatar bmeurer Committed by Commit bot

[turbofan] Typed lowering requires typed nodes.

There's no point in checking whether a node is typed in JSTypedLowering.

R=jarin@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#27863}
parent d641cc45
......@@ -747,14 +747,10 @@ Reduction JSTypedLowering::ReduceJSToString(Node* node) {
}
static bool IsGlobalObject(Node* node) {
return NodeProperties::IsTyped(node) &&
NodeProperties::GetBounds(node).upper->Is(Type::GlobalObject());
}
Reduction JSTypedLowering::ReduceJSLoadNamed(Node* node) {
if (IsGlobalObject(node->InputAt(0))) {
Node* object = NodeProperties::GetValueInput(node, 0);
Type* object_type = NodeProperties::GetBounds(object).upper;
if (object_type->Is(Type::GlobalObject())) {
// Optimize global constants like "undefined", "Infinity", and "NaN".
Handle<Name> name = LoadNamedParametersOf(node->op()).name().handle();
Handle<Object> constant_value = factory()->GlobalConstantFor(name);
......
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