| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 } else { | 236 } else { |
| 237 flags_ = (flags_ & ~(1 << WATERMARK_INVALIDATED)) | | 237 flags_ = (flags_ & ~(1 << WATERMARK_INVALIDATED)) | |
| 238 (watermark_invalidated_mark_ ^ (1 << WATERMARK_INVALIDATED)); | 238 (watermark_invalidated_mark_ ^ (1 << WATERMARK_INVALIDATED)); |
| 239 } | 239 } |
| 240 | 240 |
| 241 ASSERT(IsWatermarkValid() == !value); | 241 ASSERT(IsWatermarkValid() == !value); |
| 242 } | 242 } |
| 243 | 243 |
| 244 | 244 |
| 245 bool Page::GetPageFlag(PageFlag flag) { | 245 bool Page::GetPageFlag(PageFlag flag) { |
| 246 return (flags_ & (1 << flag)) != 0; | 246 return (flags_ & static_cast<intptr_t>(1 << flag)) != 0; |
| 247 } | 247 } |
| 248 | 248 |
| 249 | 249 |
| 250 void Page::SetPageFlag(PageFlag flag, bool value) { | 250 void Page::SetPageFlag(PageFlag flag, bool value) { |
| 251 if (value) { | 251 if (value) { |
| 252 flags_ |= (1 << flag); | 252 flags_ |= static_cast<intptr_t>(1 << flag); |
| 253 } else { | 253 } else { |
| 254 flags_ &= ~(1 << flag); | 254 flags_ &= ~static_cast<intptr_t>(1 << flag); |
| 255 } | 255 } |
| 256 } | 256 } |
| 257 | 257 |
| 258 | 258 |
| 259 void Page::ClearPageFlags() { | 259 void Page::ClearPageFlags() { |
| 260 flags_ = 0; | 260 flags_ = 0; |
| 261 } | 261 } |
| 262 | 262 |
| 263 | 263 |
| 264 void Page::ClearGCFields() { | 264 void Page::ClearGCFields() { |
| (...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 484 | 484 |
| 485 bool FreeListNode::IsFreeListNode(HeapObject* object) { | 485 bool FreeListNode::IsFreeListNode(HeapObject* object) { |
| 486 return object->map() == Heap::raw_unchecked_byte_array_map() | 486 return object->map() == Heap::raw_unchecked_byte_array_map() |
| 487 || object->map() == Heap::raw_unchecked_one_pointer_filler_map() | 487 || object->map() == Heap::raw_unchecked_one_pointer_filler_map() |
| 488 || object->map() == Heap::raw_unchecked_two_pointer_filler_map(); | 488 || object->map() == Heap::raw_unchecked_two_pointer_filler_map(); |
| 489 } | 489 } |
| 490 | 490 |
| 491 } } // namespace v8::internal | 491 } } // namespace v8::internal |
| 492 | 492 |
| 493 #endif // V8_SPACES_INL_H_ | 493 #endif // V8_SPACES_INL_H_ |
| OLD | NEW |