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 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
991 | 991 |
992 class HAllocationMode V8_FINAL BASE_EMBEDDED { | 992 class HAllocationMode V8_FINAL BASE_EMBEDDED { |
993 public: | 993 public: |
994 explicit HAllocationMode(Handle<AllocationSite> feedback_site) | 994 explicit HAllocationMode(Handle<AllocationSite> feedback_site) |
995 : current_site_(NULL), feedback_site_(feedback_site), | 995 : current_site_(NULL), feedback_site_(feedback_site), |
996 pretenure_flag_(NOT_TENURED) {} | 996 pretenure_flag_(NOT_TENURED) {} |
997 explicit HAllocationMode(HValue* current_site) | 997 explicit HAllocationMode(HValue* current_site) |
998 : current_site_(current_site), pretenure_flag_(NOT_TENURED) {} | 998 : current_site_(current_site), pretenure_flag_(NOT_TENURED) {} |
999 explicit HAllocationMode(PretenureFlag pretenure_flag) | 999 explicit HAllocationMode(PretenureFlag pretenure_flag) |
1000 : current_site_(NULL), pretenure_flag_(pretenure_flag) {} | 1000 : current_site_(NULL), pretenure_flag_(pretenure_flag) {} |
1001 HAllocationMode() | |
1002 : current_site_(NULL), pretenure_flag_(NOT_TENURED) {} | |
Hannes Payer (out of office)
2014/02/18 16:24:26
indent
mvstanton
2014/02/19 08:40:26
Done.
| |
1001 | 1003 |
1002 HValue* current_site() const { return current_site_; } | 1004 HValue* current_site() const { return current_site_; } |
1003 Handle<AllocationSite> feedback_site() const { return feedback_site_; } | 1005 Handle<AllocationSite> feedback_site() const { return feedback_site_; } |
1004 | 1006 |
1005 bool CreateAllocationMementos() const V8_WARN_UNUSED_RESULT { | 1007 bool CreateAllocationMementos() const V8_WARN_UNUSED_RESULT { |
1006 return current_site() != NULL; | 1008 return current_site() != NULL; |
1007 } | 1009 } |
1008 | 1010 |
1009 PretenureFlag GetPretenureMode() const V8_WARN_UNUSED_RESULT { | 1011 PretenureFlag GetPretenureMode() const V8_WARN_UNUSED_RESULT { |
1010 if (!feedback_site().is_null()) return feedback_site()->GetPretenureMode(); | 1012 if (!feedback_site().is_null()) return feedback_site()->GetPretenureMode(); |
(...skipping 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2739 } | 2741 } |
2740 | 2742 |
2741 private: | 2743 private: |
2742 HGraphBuilder* builder_; | 2744 HGraphBuilder* builder_; |
2743 }; | 2745 }; |
2744 | 2746 |
2745 | 2747 |
2746 } } // namespace v8::internal | 2748 } } // namespace v8::internal |
2747 | 2749 |
2748 #endif // V8_HYDROGEN_H_ | 2750 #endif // V8_HYDROGEN_H_ |
OLD | NEW |