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 2895 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2906 return type_; | 2906 return type_; |
2907 } | 2907 } |
2908 | 2908 |
2909 | 2909 |
2910 void HAllocate::PrintDataTo(StringStream* stream) { | 2910 void HAllocate::PrintDataTo(StringStream* stream) { |
2911 size()->PrintNameTo(stream); | 2911 size()->PrintNameTo(stream); |
2912 if (!GuaranteedInNewSpace()) stream->Add(" (pretenure)"); | 2912 if (!GuaranteedInNewSpace()) stream->Add(" (pretenure)"); |
2913 } | 2913 } |
2914 | 2914 |
2915 | 2915 |
2916 HType HFastLiteral::CalculateInferredType() { | |
2917 // TODO(mstarzinger): Be smarter, could also be JSArray here. | |
2918 return HType::JSObject(); | |
2919 } | |
2920 | |
2921 | |
2922 HType HArrayLiteral::CalculateInferredType() { | 2916 HType HArrayLiteral::CalculateInferredType() { |
2923 return HType::JSArray(); | 2917 return HType::JSArray(); |
2924 } | 2918 } |
2925 | 2919 |
2926 | 2920 |
2927 HType HObjectLiteral::CalculateInferredType() { | 2921 HType HObjectLiteral::CalculateInferredType() { |
2928 return HType::JSObject(); | 2922 return HType::JSObject(); |
2929 } | 2923 } |
2930 | 2924 |
2931 | 2925 |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3519 | 3513 |
3520 | 3514 |
3521 void HCheckFunction::Verify() { | 3515 void HCheckFunction::Verify() { |
3522 HInstruction::Verify(); | 3516 HInstruction::Verify(); |
3523 ASSERT(HasNoUses()); | 3517 ASSERT(HasNoUses()); |
3524 } | 3518 } |
3525 | 3519 |
3526 #endif | 3520 #endif |
3527 | 3521 |
3528 } } // namespace v8::internal | 3522 } } // namespace v8::internal |
OLD | NEW |