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 2931 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2942 return value()->type(); | 2942 return value()->type(); |
2943 } | 2943 } |
2944 | 2944 |
2945 | 2945 |
2946 HType HCheckNonSmi::CalculateInferredType() { | 2946 HType HCheckNonSmi::CalculateInferredType() { |
2947 // TODO(kasperl): Is there any way to signal that this isn't a smi? | 2947 // TODO(kasperl): Is there any way to signal that this isn't a smi? |
2948 return HType::Tagged(); | 2948 return HType::Tagged(); |
2949 } | 2949 } |
2950 | 2950 |
2951 | 2951 |
2952 HType HCheckSmi::CalculateInferredType() { | |
2953 return HType::Smi(); | |
2954 } | |
2955 | |
2956 | |
2957 HType HPhi::CalculateInferredType() { | 2952 HType HPhi::CalculateInferredType() { |
2958 HType result = HType::Uninitialized(); | 2953 HType result = HType::Uninitialized(); |
2959 for (int i = 0; i < OperandCount(); ++i) { | 2954 for (int i = 0; i < OperandCount(); ++i) { |
2960 HType current = OperandAt(i)->type(); | 2955 HType current = OperandAt(i)->type(); |
2961 result = result.Combine(current); | 2956 result = result.Combine(current); |
2962 } | 2957 } |
2963 return result; | 2958 return result; |
2964 } | 2959 } |
2965 | 2960 |
2966 | 2961 |
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3644 } | 3639 } |
3645 } | 3640 } |
3646 | 3641 |
3647 | 3642 |
3648 void HSimulate::Verify() { | 3643 void HSimulate::Verify() { |
3649 HInstruction::Verify(); | 3644 HInstruction::Verify(); |
3650 ASSERT(HasAstId()); | 3645 ASSERT(HasAstId()); |
3651 } | 3646 } |
3652 | 3647 |
3653 | 3648 |
3654 void HCheckSmi::Verify() { | |
3655 HInstruction::Verify(); | |
3656 ASSERT(HasNoUses()); | |
3657 } | |
3658 | |
3659 | |
3660 void HCheckNonSmi::Verify() { | 3649 void HCheckNonSmi::Verify() { |
3661 HInstruction::Verify(); | 3650 HInstruction::Verify(); |
3662 ASSERT(HasNoUses()); | 3651 ASSERT(HasNoUses()); |
3663 } | 3652 } |
3664 | 3653 |
3665 | 3654 |
3666 void HCheckFunction::Verify() { | 3655 void HCheckFunction::Verify() { |
3667 HInstruction::Verify(); | 3656 HInstruction::Verify(); |
3668 ASSERT(HasNoUses()); | 3657 ASSERT(HasNoUses()); |
3669 } | 3658 } |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3801 case kBackingStore: | 3790 case kBackingStore: |
3802 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); | 3791 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); |
3803 stream->Add("[backing-store]"); | 3792 stream->Add("[backing-store]"); |
3804 break; | 3793 break; |
3805 } | 3794 } |
3806 | 3795 |
3807 stream->Add("@%d", offset()); | 3796 stream->Add("@%d", offset()); |
3808 } | 3797 } |
3809 | 3798 |
3810 } } // namespace v8::internal | 3799 } } // namespace v8::internal |
OLD | NEW |