Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: src/hydrogen.h

Issue 132963012: Pretenure call new support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/factory.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after
1024 1024
1025 class HAllocationMode V8_FINAL BASE_EMBEDDED { 1025 class HAllocationMode V8_FINAL BASE_EMBEDDED {
1026 public: 1026 public:
1027 explicit HAllocationMode(Handle<AllocationSite> feedback_site) 1027 explicit HAllocationMode(Handle<AllocationSite> feedback_site)
1028 : current_site_(NULL), feedback_site_(feedback_site), 1028 : current_site_(NULL), feedback_site_(feedback_site),
1029 pretenure_flag_(NOT_TENURED) {} 1029 pretenure_flag_(NOT_TENURED) {}
1030 explicit HAllocationMode(HValue* current_site) 1030 explicit HAllocationMode(HValue* current_site)
1031 : current_site_(current_site), pretenure_flag_(NOT_TENURED) {} 1031 : current_site_(current_site), pretenure_flag_(NOT_TENURED) {}
1032 explicit HAllocationMode(PretenureFlag pretenure_flag) 1032 explicit HAllocationMode(PretenureFlag pretenure_flag)
1033 : current_site_(NULL), pretenure_flag_(pretenure_flag) {} 1033 : current_site_(NULL), pretenure_flag_(pretenure_flag) {}
1034 HAllocationMode()
1035 : current_site_(NULL), pretenure_flag_(NOT_TENURED) {}
1034 1036
1035 HValue* current_site() const { return current_site_; } 1037 HValue* current_site() const { return current_site_; }
1036 Handle<AllocationSite> feedback_site() const { return feedback_site_; } 1038 Handle<AllocationSite> feedback_site() const { return feedback_site_; }
1037 1039
1038 bool CreateAllocationMementos() const V8_WARN_UNUSED_RESULT { 1040 bool CreateAllocationMementos() const V8_WARN_UNUSED_RESULT {
1039 return current_site() != NULL; 1041 return current_site() != NULL;
1040 } 1042 }
1041 1043
1042 PretenureFlag GetPretenureMode() const V8_WARN_UNUSED_RESULT { 1044 PretenureFlag GetPretenureMode() const V8_WARN_UNUSED_RESULT {
1043 if (!feedback_site().is_null()) return feedback_site()->GetPretenureMode(); 1045 if (!feedback_site().is_null()) return feedback_site()->GetPretenureMode();
(...skipping 1742 matching lines...) Expand 10 before | Expand all | Expand 10 after
2786 } 2788 }
2787 2789
2788 private: 2790 private:
2789 HGraphBuilder* builder_; 2791 HGraphBuilder* builder_;
2790 }; 2792 };
2791 2793
2792 2794
2793 } } // namespace v8::internal 2795 } } // namespace v8::internal
2794 2796
2795 #endif // V8_HYDROGEN_H_ 2797 #endif // V8_HYDROGEN_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698