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 3033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3044 HType HCheckMaps::CalculateInferredType() { | 3044 HType HCheckMaps::CalculateInferredType() { |
3045 return value()->type(); | 3045 return value()->type(); |
3046 } | 3046 } |
3047 | 3047 |
3048 | 3048 |
3049 HType HCheckFunction::CalculateInferredType() { | 3049 HType HCheckFunction::CalculateInferredType() { |
3050 return value()->type(); | 3050 return value()->type(); |
3051 } | 3051 } |
3052 | 3052 |
3053 | 3053 |
3054 HType HCheckNonSmi::CalculateInferredType() { | 3054 HType HCheckHeapObject::CalculateInferredType() { |
3055 // TODO(kasperl): Is there any way to signal that this isn't a smi? | 3055 return HType::NonPrimitive(); |
3056 return HType::Tagged(); | |
3057 } | 3056 } |
3058 | 3057 |
3059 | 3058 |
3060 HType HPhi::CalculateInferredType() { | 3059 HType HPhi::CalculateInferredType() { |
3061 HType result = HType::Uninitialized(); | 3060 HType result = HType::Uninitialized(); |
3062 for (int i = 0; i < OperandCount(); ++i) { | 3061 for (int i = 0; i < OperandCount(); ++i) { |
3063 HType current = OperandAt(i)->type(); | 3062 HType current = OperandAt(i)->type(); |
3064 result = result.Combine(current); | 3063 result = result.Combine(current); |
3065 } | 3064 } |
3066 return result; | 3065 return result; |
(...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3716 } | 3715 } |
3717 } | 3716 } |
3718 | 3717 |
3719 | 3718 |
3720 void HSimulate::Verify() { | 3719 void HSimulate::Verify() { |
3721 HInstruction::Verify(); | 3720 HInstruction::Verify(); |
3722 ASSERT(HasAstId()); | 3721 ASSERT(HasAstId()); |
3723 } | 3722 } |
3724 | 3723 |
3725 | 3724 |
3726 void HCheckNonSmi::Verify() { | 3725 void HCheckHeapObject::Verify() { |
3727 HInstruction::Verify(); | 3726 HInstruction::Verify(); |
3728 ASSERT(HasNoUses()); | 3727 ASSERT(HasNoUses()); |
3729 } | 3728 } |
3730 | 3729 |
3731 | 3730 |
3732 void HCheckFunction::Verify() { | 3731 void HCheckFunction::Verify() { |
3733 HInstruction::Verify(); | 3732 HInstruction::Verify(); |
3734 ASSERT(HasNoUses()); | 3733 ASSERT(HasNoUses()); |
3735 } | 3734 } |
3736 | 3735 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3866 case kBackingStore: | 3865 case kBackingStore: |
3867 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); | 3866 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); |
3868 stream->Add("[backing-store]"); | 3867 stream->Add("[backing-store]"); |
3869 break; | 3868 break; |
3870 } | 3869 } |
3871 | 3870 |
3872 stream->Add("@%d", offset()); | 3871 stream->Add("@%d", offset()); |
3873 } | 3872 } |
3874 | 3873 |
3875 } } // namespace v8::internal | 3874 } } // namespace v8::internal |
OLD | NEW |