Commit d024df4d authored by jarin's avatar jarin Committed by Commit bot

[turbofan] Fix representation change from bit to tagged pointer.

BUG=chromium:673244

Review-Url: https://codereview.chromium.org/2568053002
Cr-Commit-Position: refs/heads/master@{#41634}
parent 375fc067
...@@ -307,7 +307,12 @@ Node* RepresentationChanger::GetTaggedPointerRepresentationFor( ...@@ -307,7 +307,12 @@ Node* RepresentationChanger::GetTaggedPointerRepresentationFor(
// We just provide a dummy value here. // We just provide a dummy value here.
return jsgraph()->TheHoleConstant(); return jsgraph()->TheHoleConstant();
} else if (output_rep == MachineRepresentation::kBit) { } else if (output_rep == MachineRepresentation::kBit) {
return node; if (output_type->Is(Type::Boolean())) {
op = simplified()->ChangeBitToTagged();
} else {
return TypeError(node, output_rep, output_type,
MachineRepresentation::kTagged);
}
} else if (IsWord(output_rep)) { } else if (IsWord(output_rep)) {
if (output_type->Is(Type::Unsigned32())) { if (output_type->Is(Type::Unsigned32())) {
// uint32 -> float64 -> tagged // uint32 -> float64 -> tagged
......
// Copyright 2016 the V8 project authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// Flags: --allow-natives-syntax
function f() {
var accumulator = false;
for (var i = 0; i < 4; i++) {
accumulator = accumulator.hasOwnProperty(3);
if (i === 1) %OptimizeOsr();
}
}
f();
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