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