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 3125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3136 if (!input_rep.IsTagged()) rep = rep.generalize(input_rep); | 3136 if (!input_rep.IsTagged()) rep = rep.generalize(input_rep); |
3137 return rep; | 3137 return rep; |
3138 } | 3138 } |
3139 | 3139 |
3140 | 3140 |
3141 HType HStringCharFromCode::CalculateInferredType() { | 3141 HType HStringCharFromCode::CalculateInferredType() { |
3142 return HType::String(); | 3142 return HType::String(); |
3143 } | 3143 } |
3144 | 3144 |
3145 | 3145 |
| 3146 HType HAllocateObject::CalculateInferredType() { |
| 3147 return HType::JSObject(); |
| 3148 } |
| 3149 |
| 3150 |
3146 HType HAllocate::CalculateInferredType() { | 3151 HType HAllocate::CalculateInferredType() { |
3147 return type_; | 3152 return type_; |
3148 } | 3153 } |
3149 | 3154 |
3150 | 3155 |
3151 void HAllocate::PrintDataTo(StringStream* stream) { | 3156 void HAllocate::PrintDataTo(StringStream* stream) { |
3152 size()->PrintNameTo(stream); | 3157 size()->PrintNameTo(stream); |
3153 if (!GuaranteedInNewSpace()) stream->Add(" (pretenure)"); | 3158 if (!GuaranteedInNewSpace()) stream->Add(" (pretenure)"); |
3154 } | 3159 } |
3155 | 3160 |
(...skipping 710 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3866 case kBackingStore: | 3871 case kBackingStore: |
3867 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); | 3872 if (!name_.is_null()) stream->Add(*String::cast(*name_)->ToCString()); |
3868 stream->Add("[backing-store]"); | 3873 stream->Add("[backing-store]"); |
3869 break; | 3874 break; |
3870 } | 3875 } |
3871 | 3876 |
3872 stream->Add("@%d", offset()); | 3877 stream->Add("@%d", offset()); |
3873 } | 3878 } |
3874 | 3879 |
3875 } } // namespace v8::internal | 3880 } } // namespace v8::internal |
OLD | NEW |