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

Side by Side Diff: src/heap.h

Issue 169563002: Added a special stack guard to deopt marked allocation sites. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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/execution.cc ('k') | src/heap.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 1816 matching lines...) Expand 10 before | Expand all | Expand 10 after
1827 void AgeInlineCaches() { 1827 void AgeInlineCaches() {
1828 global_ic_age_ = (global_ic_age_ + 1) & SharedFunctionInfo::ICAgeBits::kMax; 1828 global_ic_age_ = (global_ic_age_ + 1) & SharedFunctionInfo::ICAgeBits::kMax;
1829 } 1829 }
1830 1830
1831 bool flush_monomorphic_ics() { return flush_monomorphic_ics_; } 1831 bool flush_monomorphic_ics() { return flush_monomorphic_ics_; }
1832 1832
1833 int64_t amount_of_external_allocated_memory() { 1833 int64_t amount_of_external_allocated_memory() {
1834 return amount_of_external_allocated_memory_; 1834 return amount_of_external_allocated_memory_;
1835 } 1835 }
1836 1836
1837 void DeoptMarkedAllocationSites();
1838
1837 // ObjectStats are kept in two arrays, counts and sizes. Related stats are 1839 // ObjectStats are kept in two arrays, counts and sizes. Related stats are
1838 // stored in a contiguous linear buffer. Stats groups are stored one after 1840 // stored in a contiguous linear buffer. Stats groups are stored one after
1839 // another. 1841 // another.
1840 enum { 1842 enum {
1841 FIRST_CODE_KIND_SUB_TYPE = LAST_TYPE + 1, 1843 FIRST_CODE_KIND_SUB_TYPE = LAST_TYPE + 1,
1842 FIRST_FIXED_ARRAY_SUB_TYPE = 1844 FIRST_FIXED_ARRAY_SUB_TYPE =
1843 FIRST_CODE_KIND_SUB_TYPE + Code::NUMBER_OF_KINDS, 1845 FIRST_CODE_KIND_SUB_TYPE + Code::NUMBER_OF_KINDS,
1844 FIRST_CODE_AGE_SUB_TYPE = 1846 FIRST_CODE_AGE_SUB_TYPE =
1845 FIRST_FIXED_ARRAY_SUB_TYPE + LAST_FIXED_ARRAY_SUB_TYPE + 1, 1847 FIRST_FIXED_ARRAY_SUB_TYPE + LAST_FIXED_ARRAY_SUB_TYPE + 1,
1846 OBJECT_STATS_COUNT = FIRST_CODE_AGE_SUB_TYPE + Code::kCodeAgeCount + 1 1848 OBJECT_STATS_COUNT = FIRST_CODE_AGE_SUB_TYPE + Code::kCodeAgeCount + 1
(...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after
3091 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3093 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3092 3094
3093 private: 3095 private:
3094 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3096 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3095 }; 3097 };
3096 #endif // DEBUG 3098 #endif // DEBUG
3097 3099
3098 } } // namespace v8::internal 3100 } } // namespace v8::internal
3099 3101
3100 #endif // V8_HEAP_H_ 3102 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/execution.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698