| Index: src/hydrogen-instructions.cc
|
| ===================================================================
|
| --- src/hydrogen-instructions.cc (revision 8931)
|
| +++ src/hydrogen-instructions.cc (working copy)
|
| @@ -635,6 +635,12 @@
|
| }
|
|
|
|
|
| +void HBoundsCheck::PrintDataTo(StringStream* stream) {
|
| + index()->PrintNameTo(stream);
|
| + stream->Add(" ");
|
| + length()->PrintNameTo(stream);
|
| +}
|
| +
|
| void HCallConstantFunction::PrintDataTo(StringStream* stream) {
|
| if (IsApplyFunction()) {
|
| stream->Add("optimized apply ");
|
| @@ -862,19 +868,10 @@
|
|
|
|
|
| Range* HValue::InferRange() {
|
| - if (representation().IsTagged()) {
|
| - // Tagged values are always in int32 range when converted to integer,
|
| - // but they can contain -0.
|
| - Range* result = new Range();
|
| - result->set_can_be_minus_zero(true);
|
| - return result;
|
| - } else if (representation().IsNone()) {
|
| - return NULL;
|
| - } else {
|
| - // Untagged integer32 cannot be -0 and we don't compute ranges for
|
| - // untagged doubles.
|
| - return new Range();
|
| - }
|
| + // Untagged integer32 cannot be -0, all other representations can.
|
| + Range* result = new Range();
|
| + result->set_can_be_minus_zero(!representation().IsInteger32());
|
| + return result;
|
| }
|
|
|
|
|
| @@ -1373,6 +1370,20 @@
|
| }
|
|
|
|
|
| +void HLoadNamedFieldPolymorphic::PrintDataTo(StringStream* stream) {
|
| + object()->PrintNameTo(stream);
|
| + stream->Add(" .");
|
| + stream->Add(*String::cast(*name())->ToCString());
|
| +}
|
| +
|
| +
|
| +void HLoadNamedGeneric::PrintDataTo(StringStream* stream) {
|
| + object()->PrintNameTo(stream);
|
| + stream->Add(" .");
|
| + stream->Add(*String::cast(*name())->ToCString());
|
| +}
|
| +
|
| +
|
| void HLoadKeyedFastElement::PrintDataTo(StringStream* stream) {
|
| object()->PrintNameTo(stream);
|
| stream->Add("[");
|
|
|