commit | 6ded16be15dd865a9b21ea304d5273c8be299c87 | [log] [tgz] |
---|---|---|
author | Steve Block <steveblock@google.com> | Mon May 10 14:33:55 2010 +0100 |
committer | Steve Block <steveblock@google.com> | Mon May 10 15:08:22 2010 +0100 |
tree | b3661ae5d929e233f7024223f3fad0f2a284cd6e | |
parent | 6599b9dd3411791c9d89ab7efbfb4131e5664c48 [diff] [blame] |
Update V8 to r4588 We're using WebKit r58033, as used by http://src.chromium.org/svn/releases/5.0.387.0/DEPS This requires http://v8.googlecode.com/svn/trunk@4465 but this version has a crashing bug for ARM. Instead we use http://v8.googlecode.com/svn/trunk@4588, which is used by http://src.chromium.org/svn/releases/6.0.399.0/DEPS Note that a trivial bug fix was required in arm/codegen-arm.cc. This is guarded with ANDROID. See http://code.google.com/p/v8/issues/detail?id=703 Change-Id: I459647a8286c4f8c7405f0c5581ecbf051a6f1e8
diff --git a/src/spaces-inl.h b/src/spaces-inl.h index 72f8305..66894c4 100644 --- a/src/spaces-inl.h +++ b/src/spaces-inl.h
@@ -145,6 +145,40 @@ } +bool Page::GetPageFlag(PageFlag flag) { + return (flags & flag) != 0; +} + + +void Page::SetPageFlag(PageFlag flag, bool value) { + if (value) { + flags |= flag; + } else { + flags &= ~flag; + } +} + + +bool Page::WasInUseBeforeMC() { + return GetPageFlag(WAS_IN_USE_BEFORE_MC); +} + + +void Page::SetWasInUseBeforeMC(bool was_in_use) { + SetPageFlag(WAS_IN_USE_BEFORE_MC, was_in_use); +} + + +bool Page::IsLargeObjectPage() { + return !GetPageFlag(IS_NORMAL_PAGE); +} + + +void Page::SetIsLargeObjectPage(bool is_large_object_page) { + SetPageFlag(IS_NORMAL_PAGE, !is_large_object_page); +} + + // ----------------------------------------------------------------------------- // MemoryAllocator