| Index: src/hydrogen-instructions.cc
|
| ===================================================================
|
| --- src/hydrogen-instructions.cc (revision 6437)
|
| +++ src/hydrogen-instructions.cc (working copy)
|
| @@ -570,37 +570,32 @@
|
| }
|
|
|
|
|
| -void HBranch::PrintDataTo(StringStream* stream) const {
|
| - int first_id = FirstSuccessor()->block_id();
|
| - int second_id = SecondSuccessor()->block_id();
|
| - stream->Add("on ");
|
| - value()->PrintNameTo(stream);
|
| - stream->Add(" (B%d, B%d)", first_id, second_id);
|
| +void HControlInstruction::PrintDataTo(StringStream* stream) const {
|
| + if (FirstSuccessor() != NULL) {
|
| + int first_id = FirstSuccessor()->block_id();
|
| + if (SecondSuccessor() == NULL) {
|
| + stream->Add(" B%d", first_id);
|
| + } else {
|
| + int second_id = SecondSuccessor()->block_id();
|
| + stream->Add(" goto (B%d, B%d)", first_id, second_id);
|
| + }
|
| + }
|
| }
|
|
|
|
|
| -void HCompareMapAndBranch::PrintDataTo(StringStream* stream) const {
|
| - stream->Add("on ");
|
| +void HUnaryControlInstruction::PrintDataTo(StringStream* stream) const {
|
| value()->PrintNameTo(stream);
|
| - stream->Add(" (%p)", *map());
|
| + HControlInstruction::PrintDataTo(stream);
|
| }
|
|
|
|
|
| -void HGoto::PrintDataTo(StringStream* stream) const {
|
| - stream->Add("B%d", FirstSuccessor()->block_id());
|
| -}
|
| -
|
| -
|
| -void HReturn::PrintDataTo(StringStream* stream) const {
|
| +void HCompareMap::PrintDataTo(StringStream* stream) const {
|
| value()->PrintNameTo(stream);
|
| + stream->Add(" (%p)", *map());
|
| + HControlInstruction::PrintDataTo(stream);
|
| }
|
|
|
|
|
| -void HThrow::PrintDataTo(StringStream* stream) const {
|
| - value()->PrintNameTo(stream);
|
| -}
|
| -
|
| -
|
| const char* HUnaryMathOperation::OpName() const {
|
| switch (op()) {
|
| case kMathFloor: return "floor";
|
| @@ -1255,6 +1250,11 @@
|
| }
|
|
|
|
|
| +HType HBitwiseBinaryOperation::CalculateInferredType() const {
|
| + return HType::TaggedNumber();
|
| +}
|
| +
|
| +
|
| HType HArithmeticBinaryOperation::CalculateInferredType() const {
|
| return HType::TaggedNumber();
|
| }
|
|
|