| 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 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 } | 564 } |
| 565 stream->Add("]"); | 565 stream->Add("]"); |
| 566 } | 566 } |
| 567 | 567 |
| 568 | 568 |
| 569 void HValue::PrintNameTo(StringStream* stream) { | 569 void HValue::PrintNameTo(StringStream* stream) { |
| 570 stream->Add("%s%d", representation_.Mnemonic(), id()); | 570 stream->Add("%s%d", representation_.Mnemonic(), id()); |
| 571 } | 571 } |
| 572 | 572 |
| 573 | 573 |
| 574 bool HValue::HasMonomorphicJSObjectType() { |
| 575 return !GetMonomorphicJSObjectMap().is_null(); |
| 576 } |
| 577 |
| 578 |
| 574 bool HValue::UpdateInferredType() { | 579 bool HValue::UpdateInferredType() { |
| 575 HType type = CalculateInferredType(); | 580 HType type = CalculateInferredType(); |
| 576 bool result = (!type.Equals(type_)); | 581 bool result = (!type.Equals(type_)); |
| 577 type_ = type; | 582 type_ = type; |
| 578 return result; | 583 return result; |
| 579 } | 584 } |
| 580 | 585 |
| 581 | 586 |
| 582 void HValue::RegisterUse(int index, HValue* new_value) { | 587 void HValue::RegisterUse(int index, HValue* new_value) { |
| 583 HValue* old_value = OperandAt(index); | 588 HValue* old_value = OperandAt(index); |
| (...skipping 2250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2834 | 2839 |
| 2835 | 2840 |
| 2836 void HCheckFunction::Verify() { | 2841 void HCheckFunction::Verify() { |
| 2837 HInstruction::Verify(); | 2842 HInstruction::Verify(); |
| 2838 ASSERT(HasNoUses()); | 2843 ASSERT(HasNoUses()); |
| 2839 } | 2844 } |
| 2840 | 2845 |
| 2841 #endif | 2846 #endif |
| 2842 | 2847 |
| 2843 } } // namespace v8::internal | 2848 } } // namespace v8::internal |
| OLD | NEW |