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 3060 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3071 HType HCheckFunction::CalculateInferredType() { | 3071 HType HCheckFunction::CalculateInferredType() { |
3072 return value()->type(); | 3072 return value()->type(); |
3073 } | 3073 } |
3074 | 3074 |
3075 | 3075 |
3076 HType HCheckHeapObject::CalculateInferredType() { | 3076 HType HCheckHeapObject::CalculateInferredType() { |
3077 return HType::NonPrimitive(); | 3077 return HType::NonPrimitive(); |
3078 } | 3078 } |
3079 | 3079 |
3080 | 3080 |
| 3081 HType HCheckSmi::CalculateInferredType() { |
| 3082 return HType::Smi(); |
| 3083 } |
| 3084 |
| 3085 |
3081 HType HPhi::CalculateInferredType() { | 3086 HType HPhi::CalculateInferredType() { |
3082 HType result = HType::Uninitialized(); | 3087 HType result = HType::Uninitialized(); |
3083 for (int i = 0; i < OperandCount(); ++i) { | 3088 for (int i = 0; i < OperandCount(); ++i) { |
3084 HType current = OperandAt(i)->type(); | 3089 HType current = OperandAt(i)->type(); |
3085 result = result.Combine(current); | 3090 result = result.Combine(current); |
3086 } | 3091 } |
3087 return result; | 3092 return result; |
3088 } | 3093 } |
3089 | 3094 |
3090 | 3095 |
(...skipping 795 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3886 case kBackingStore: | 3891 case kBackingStore: |
3887 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); | 3892 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); |
3888 stream->Add("[backing-store]"); | 3893 stream->Add("[backing-store]"); |
3889 break; | 3894 break; |
3890 } | 3895 } |
3891 | 3896 |
3892 stream->Add("@%d", offset()); | 3897 stream->Add("@%d", offset()); |
3893 } | 3898 } |
3894 | 3899 |
3895 } } // namespace v8::internal | 3900 } } // namespace v8::internal |
OLD | NEW |