| 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 2985 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2996 left()->PrintNameTo(stream); | 2996 left()->PrintNameTo(stream); |
| 2997 stream->Add(" "); | 2997 stream->Add(" "); |
| 2998 right()->PrintNameTo(stream); | 2998 right()->PrintNameTo(stream); |
| 2999 HControlInstruction::PrintDataTo(stream); | 2999 HControlInstruction::PrintDataTo(stream); |
| 3000 } | 3000 } |
| 3001 | 3001 |
| 3002 | 3002 |
| 3003 bool HCompareObjectEqAndBranch::KnownSuccessorBlock(HBasicBlock** block) { | 3003 bool HCompareObjectEqAndBranch::KnownSuccessorBlock(HBasicBlock** block) { |
| 3004 if (left()->IsConstant() && right()->IsConstant()) { | 3004 if (left()->IsConstant() && right()->IsConstant()) { |
| 3005 bool comparison_result = | 3005 bool comparison_result = |
| 3006 HConstant::cast(left())->Equals(HConstant::cast(right())); | 3006 HConstant::cast(left())->DataEquals(HConstant::cast(right())); |
| 3007 *block = comparison_result | 3007 *block = comparison_result |
| 3008 ? FirstSuccessor() | 3008 ? FirstSuccessor() |
| 3009 : SecondSuccessor(); | 3009 : SecondSuccessor(); |
| 3010 return true; | 3010 return true; |
| 3011 } | 3011 } |
| 3012 *block = NULL; | 3012 *block = NULL; |
| 3013 return false; | 3013 return false; |
| 3014 } | 3014 } |
| 3015 | 3015 |
| 3016 | 3016 |
| (...skipping 1451 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4468 break; | 4468 break; |
| 4469 case kExternalMemory: | 4469 case kExternalMemory: |
| 4470 stream->Add("[external-memory]"); | 4470 stream->Add("[external-memory]"); |
| 4471 break; | 4471 break; |
| 4472 } | 4472 } |
| 4473 | 4473 |
| 4474 stream->Add("@%d", offset()); | 4474 stream->Add("@%d", offset()); |
| 4475 } | 4475 } |
| 4476 | 4476 |
| 4477 } } // namespace v8::internal | 4477 } } // namespace v8::internal |
| OLD | NEW |