| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 2973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2984 left()->PrintNameTo(stream); | 2984 left()->PrintNameTo(stream); |
| 2985 stream->Add(" "); | 2985 stream->Add(" "); |
| 2986 right()->PrintNameTo(stream); | 2986 right()->PrintNameTo(stream); |
| 2987 HControlInstruction::PrintDataTo(stream); | 2987 HControlInstruction::PrintDataTo(stream); |
| 2988 } | 2988 } |
| 2989 | 2989 |
| 2990 | 2990 |
| 2991 bool HCompareObjectEqAndBranch::KnownSuccessorBlock(HBasicBlock** block) { | 2991 bool HCompareObjectEqAndBranch::KnownSuccessorBlock(HBasicBlock** block) { |
| 2992 if (left()->IsConstant() && right()->IsConstant()) { | 2992 if (left()->IsConstant() && right()->IsConstant()) { |
| 2993 bool comparison_result = | 2993 bool comparison_result = |
| 2994 HConstant::cast(left())->Equals(HConstant::cast(right())); | 2994 HConstant::cast(left())->DataEquals(HConstant::cast(right())); |
| 2995 *block = comparison_result | 2995 *block = comparison_result |
| 2996 ? FirstSuccessor() | 2996 ? FirstSuccessor() |
| 2997 : SecondSuccessor(); | 2997 : SecondSuccessor(); |
| 2998 return true; | 2998 return true; |
| 2999 } | 2999 } |
| 3000 *block = NULL; | 3000 *block = NULL; |
| 3001 return false; | 3001 return false; |
| 3002 } | 3002 } |
| 3003 | 3003 |
| 3004 | 3004 |
| (...skipping 1400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4405 break; | 4405 break; |
| 4406 case kExternalMemory: | 4406 case kExternalMemory: |
| 4407 stream->Add("[external-memory]"); | 4407 stream->Add("[external-memory]"); |
| 4408 break; | 4408 break; |
| 4409 } | 4409 } |
| 4410 | 4410 |
| 4411 stream->Add("@%d", offset()); | 4411 stream->Add("@%d", offset()); |
| 4412 } | 4412 } |
| 4413 | 4413 |
| 4414 } } // namespace v8::internal | 4414 } } // namespace v8::internal |
| OLD | NEW |