| 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 3049 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3060 return value()->type(); | 3060 return value()->type(); |
| 3061 } | 3061 } |
| 3062 | 3062 |
| 3063 | 3063 |
| 3064 HType HCheckNonSmi::CalculateInferredType() { | 3064 HType HCheckNonSmi::CalculateInferredType() { |
| 3065 // TODO(kasperl): Is there any way to signal that this isn't a smi? | 3065 // TODO(kasperl): Is there any way to signal that this isn't a smi? |
| 3066 return HType::Tagged(); | 3066 return HType::Tagged(); |
| 3067 } | 3067 } |
| 3068 | 3068 |
| 3069 | 3069 |
| 3070 HType HCheckSmi::CalculateInferredType() { |
| 3071 return HType::Smi(); |
| 3072 } |
| 3073 |
| 3074 |
| 3070 HType HPhi::CalculateInferredType() { | 3075 HType HPhi::CalculateInferredType() { |
| 3071 HType result = HType::Uninitialized(); | 3076 HType result = HType::Uninitialized(); |
| 3072 for (int i = 0; i < OperandCount(); ++i) { | 3077 for (int i = 0; i < OperandCount(); ++i) { |
| 3073 HType current = OperandAt(i)->type(); | 3078 HType current = OperandAt(i)->type(); |
| 3074 result = result.Combine(current); | 3079 result = result.Combine(current); |
| 3075 } | 3080 } |
| 3076 return result; | 3081 return result; |
| 3077 } | 3082 } |
| 3078 | 3083 |
| 3079 | 3084 |
| (...skipping 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3881 case kBackingStore: | 3886 case kBackingStore: |
| 3882 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); | 3887 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); |
| 3883 stream->Add("[backing-store]"); | 3888 stream->Add("[backing-store]"); |
| 3884 break; | 3889 break; |
| 3885 } | 3890 } |
| 3886 | 3891 |
| 3887 stream->Add("@%d", offset()); | 3892 stream->Add("@%d", offset()); |
| 3888 } | 3893 } |
| 3889 | 3894 |
| 3890 } } // namespace v8::internal | 3895 } } // namespace v8::internal |
| OLD | NEW |