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

Side by Side Diff: src/heap.h

Issue 10534063: Reland r11425 "Re-enable optimization for hot functions that have optimization disabled due to many… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 6 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/deoptimizer.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 1579 matching lines...) Expand 10 before | Expand all | Expand 10 after
1590 // For post mortem debugging. 1590 // For post mortem debugging.
1591 void RememberUnmappedPage(Address page, bool compacted); 1591 void RememberUnmappedPage(Address page, bool compacted);
1592 1592
1593 // Global inline caching age: it is incremented on some GCs after context 1593 // Global inline caching age: it is incremented on some GCs after context
1594 // disposal. We use it to flush inline caches. 1594 // disposal. We use it to flush inline caches.
1595 int global_ic_age() { 1595 int global_ic_age() {
1596 return global_ic_age_; 1596 return global_ic_age_;
1597 } 1597 }
1598 1598
1599 void AgeInlineCaches() { 1599 void AgeInlineCaches() {
1600 ++global_ic_age_; 1600 global_ic_age_ = (global_ic_age_ + 1) & SharedFunctionInfo::ICAgeBits::kMax;
1601 } 1601 }
1602 1602
1603 private: 1603 private:
1604 Heap(); 1604 Heap();
1605 1605
1606 // This can be calculated directly from a pointer to the heap; however, it is 1606 // This can be calculated directly from a pointer to the heap; however, it is
1607 // more expedient to get at the isolate directly from within Heap methods. 1607 // more expedient to get at the isolate directly from within Heap methods.
1608 Isolate* isolate_; 1608 Isolate* isolate_;
1609 1609
1610 Object* roots_[kRootListLength]; 1610 Object* roots_[kRootListLength];
(...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after
2701 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2701 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2702 2702
2703 private: 2703 private:
2704 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2704 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2705 }; 2705 };
2706 #endif // DEBUG || LIVE_OBJECT_LIST 2706 #endif // DEBUG || LIVE_OBJECT_LIST
2707 2707
2708 } } // namespace v8::internal 2708 } } // namespace v8::internal
2709 2709
2710 #endif // V8_HEAP_H_ 2710 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/deoptimizer.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698