Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef VM_PAGES_H_ | 5 #ifndef VM_PAGES_H_ |
| 6 #define VM_PAGES_H_ | 6 #define VM_PAGES_H_ |
| 7 | 7 |
| 8 #include "vm/freelist.h" | 8 #include "vm/freelist.h" |
| 9 #include "vm/globals.h" | 9 #include "vm/globals.h" |
| 10 #include "vm/lockers.h" | 10 #include "vm/lockers.h" |
| (...skipping 328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 339 // and illegal in debug mode. | 339 // and illegal in debug mode. |
| 340 uword TryAllocateSmiInitializedLocked(intptr_t size, | 340 uword TryAllocateSmiInitializedLocked(intptr_t size, |
| 341 GrowthPolicy growth_policy); | 341 GrowthPolicy growth_policy); |
| 342 | 342 |
| 343 // Bump block allocation from generated code. | 343 // Bump block allocation from generated code. |
| 344 uword* TopAddress() { return &bump_top_; } | 344 uword* TopAddress() { return &bump_top_; } |
| 345 uword* EndAddress() { return &bump_end_; } | 345 uword* EndAddress() { return &bump_end_; } |
| 346 static intptr_t top_offset() { return OFFSET_OF(PageSpace, bump_top_); } | 346 static intptr_t top_offset() { return OFFSET_OF(PageSpace, bump_top_); } |
| 347 static intptr_t end_offset() { return OFFSET_OF(PageSpace, bump_end_); } | 347 static intptr_t end_offset() { return OFFSET_OF(PageSpace, bump_end_); } |
| 348 | 348 |
| 349 void SetupInstructionsSnapshotPage(void* pointer, uword size); | 349 void SetupInstructionsSnapshotPage( |
|
rmacnak
2016/01/15 00:57:01
SetupExternalPage
Florian Schneider
2016/01/15 15:56:01
Done.
| |
| 350 void* pointer, uword size, bool is_executable); | |
| 350 | 351 |
| 351 private: | 352 private: |
| 352 // Ids for time and data records in Heap::GCStats. | 353 // Ids for time and data records in Heap::GCStats. |
| 353 enum { | 354 enum { |
| 354 // Time | 355 // Time |
| 355 kMarkObjects = 0, | 356 kMarkObjects = 0, |
| 356 kResetFreeLists = 1, | 357 kResetFreeLists = 1, |
| 357 kSweepPages = 2, | 358 kSweepPages = 2, |
| 358 kSweepLargePages = 3, | 359 kSweepLargePages = 3, |
| 359 // Data | 360 // Data |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 448 friend class HeapIterationScope; | 449 friend class HeapIterationScope; |
| 449 friend class PageSpaceController; | 450 friend class PageSpaceController; |
| 450 friend class SweeperTask; | 451 friend class SweeperTask; |
| 451 | 452 |
| 452 DISALLOW_IMPLICIT_CONSTRUCTORS(PageSpace); | 453 DISALLOW_IMPLICIT_CONSTRUCTORS(PageSpace); |
| 453 }; | 454 }; |
| 454 | 455 |
| 455 } // namespace dart | 456 } // namespace dart |
| 456 | 457 |
| 457 #endif // VM_PAGES_H_ | 458 #endif // VM_PAGES_H_ |
| OLD | NEW |