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

Side by Side Diff: src/globals.h

Issue 806693011: Keep AllocationSpace and ObjectSpace enums in sync. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « include/v8.h ('k') | src/heap/spaces.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_GLOBALS_H_ 5 #ifndef V8_GLOBALS_H_
6 #define V8_GLOBALS_H_ 6 #define V8_GLOBALS_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 341
342 typedef bool (*WeakSlotCallback)(Object** pointer); 342 typedef bool (*WeakSlotCallback)(Object** pointer);
343 343
344 typedef bool (*WeakSlotCallbackWithHeap)(Heap* heap, Object** pointer); 344 typedef bool (*WeakSlotCallbackWithHeap)(Heap* heap, Object** pointer);
345 345
346 // ----------------------------------------------------------------------------- 346 // -----------------------------------------------------------------------------
347 // Miscellaneous 347 // Miscellaneous
348 348
349 // NOTE: SpaceIterator depends on AllocationSpace enumeration values being 349 // NOTE: SpaceIterator depends on AllocationSpace enumeration values being
350 // consecutive. 350 // consecutive.
351 // Keep this enum in sync with the ObjectSpace enum in v8.h
351 enum AllocationSpace { 352 enum AllocationSpace {
352 NEW_SPACE, // Semispaces collected with copying collector. 353 NEW_SPACE, // Semispaces collected with copying collector.
353 OLD_POINTER_SPACE, // May contain pointers to new space. 354 OLD_POINTER_SPACE, // May contain pointers to new space.
354 OLD_DATA_SPACE, // Must not have pointers to new space. 355 OLD_DATA_SPACE, // Must not have pointers to new space.
355 CODE_SPACE, // No pointers to new space, marked executable. 356 CODE_SPACE, // No pointers to new space, marked executable.
356 MAP_SPACE, // Only and all map objects. 357 MAP_SPACE, // Only and all map objects.
357 CELL_SPACE, // Only and all cell objects. 358 CELL_SPACE, // Only and all cell objects.
358 PROPERTY_CELL_SPACE, // Only and all global property cell objects. 359 PROPERTY_CELL_SPACE, // Only and all global property cell objects.
359 LO_SPACE, // Promoted large objects. 360 LO_SPACE, // Promoted large objects.
360 361
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after
794 DCHECK(IsValidFunctionKind(kind)); 795 DCHECK(IsValidFunctionKind(kind));
795 return kind & FunctionKind::kDefaultConstructor; 796 return kind & FunctionKind::kDefaultConstructor;
796 } 797 }
797 798
798 799
799 } } // namespace v8::internal 800 } } // namespace v8::internal
800 801
801 namespace i = v8::internal; 802 namespace i = v8::internal;
802 803
803 #endif // V8_GLOBALS_H_ 804 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/heap/spaces.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698