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 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
989 | 989 |
990 class HAllocationMode V8_FINAL BASE_EMBEDDED { | 990 class HAllocationMode V8_FINAL BASE_EMBEDDED { |
991 public: | 991 public: |
992 explicit HAllocationMode(Handle<AllocationSite> feedback_site) | 992 explicit HAllocationMode(Handle<AllocationSite> feedback_site) |
993 : current_site_(NULL), feedback_site_(feedback_site), | 993 : current_site_(NULL), feedback_site_(feedback_site), |
994 pretenure_flag_(NOT_TENURED) {} | 994 pretenure_flag_(NOT_TENURED) {} |
995 explicit HAllocationMode(HValue* current_site) | 995 explicit HAllocationMode(HValue* current_site) |
996 : current_site_(current_site), pretenure_flag_(NOT_TENURED) {} | 996 : current_site_(current_site), pretenure_flag_(NOT_TENURED) {} |
997 explicit HAllocationMode(PretenureFlag pretenure_flag) | 997 explicit HAllocationMode(PretenureFlag pretenure_flag) |
998 : current_site_(NULL), pretenure_flag_(pretenure_flag) {} | 998 : current_site_(NULL), pretenure_flag_(pretenure_flag) {} |
| 999 HAllocationMode() |
| 1000 : current_site_(NULL), pretenure_flag_(NOT_TENURED) {} |
999 | 1001 |
1000 HValue* current_site() const { return current_site_; } | 1002 HValue* current_site() const { return current_site_; } |
1001 Handle<AllocationSite> feedback_site() const { return feedback_site_; } | 1003 Handle<AllocationSite> feedback_site() const { return feedback_site_; } |
1002 | 1004 |
1003 bool CreateAllocationMementos() const V8_WARN_UNUSED_RESULT { | 1005 bool CreateAllocationMementos() const V8_WARN_UNUSED_RESULT { |
1004 return current_site() != NULL; | 1006 return current_site() != NULL; |
1005 } | 1007 } |
1006 | 1008 |
1007 PretenureFlag GetPretenureMode() const V8_WARN_UNUSED_RESULT { | 1009 PretenureFlag GetPretenureMode() const V8_WARN_UNUSED_RESULT { |
1008 if (!feedback_site().is_null()) return feedback_site()->GetPretenureMode(); | 1010 if (!feedback_site().is_null()) return feedback_site()->GetPretenureMode(); |
(...skipping 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2737 } | 2739 } |
2738 | 2740 |
2739 private: | 2741 private: |
2740 HGraphBuilder* builder_; | 2742 HGraphBuilder* builder_; |
2741 }; | 2743 }; |
2742 | 2744 |
2743 | 2745 |
2744 } } // namespace v8::internal | 2746 } } // namespace v8::internal |
2745 | 2747 |
2746 #endif // V8_HYDROGEN_H_ | 2748 #endif // V8_HYDROGEN_H_ |
OLD | NEW |