[heap] Force inlining of AllocatedSinceLastGC

Speculatively forcining inlining as not inlining potentially regresses
performance.

BUG=chromium:605524
LOG=N

Review-Url: https://codereview.chromium.org/1924033003
Cr-Commit-Position: refs/heads/master@{#35869}
This commit is contained in:
mlippautz 2016-04-28 06:51:34 -07:00 committed by Commit bot
parent 9e7793eaac
commit 08dbdd4037
2 changed files with 3 additions and 3 deletions

View File

@ -1256,8 +1256,8 @@ class Heap {
return static_cast<intptr_t>(total);
}
inline void UpdateNewSpaceAllocationCounter();
inline size_t NewSpaceAllocationCounter();
V8_INLINE void UpdateNewSpaceAllocationCounter();
V8_INLINE size_t NewSpaceAllocationCounter();
// This should be used only for testing.
void set_new_space_allocation_counter(size_t new_value) {

View File

@ -2601,7 +2601,7 @@ class NewSpace : public Space {
// Return the available bytes without growing.
intptr_t Available() override { return Capacity() - Size(); }
inline size_t AllocatedSinceLastGC();
V8_INLINE size_t AllocatedSinceLastGC();
bool ReplaceWithEmptyPage(Page* page) {
// This method is called after flipping the semispace.