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

Side by Side Diff: src/globals.h

Issue 1051233002: Reland "Merge old data and pointer space." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months 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 | « src/factory.cc ('k') | src/heap/heap.h » ('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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 401
402 typedef bool (*WeakSlotCallbackWithHeap)(Heap* heap, Object** pointer); 402 typedef bool (*WeakSlotCallbackWithHeap)(Heap* heap, Object** pointer);
403 403
404 // ----------------------------------------------------------------------------- 404 // -----------------------------------------------------------------------------
405 // Miscellaneous 405 // Miscellaneous
406 406
407 // NOTE: SpaceIterator depends on AllocationSpace enumeration values being 407 // NOTE: SpaceIterator depends on AllocationSpace enumeration values being
408 // consecutive. 408 // consecutive.
409 // Keep this enum in sync with the ObjectSpace enum in v8.h 409 // Keep this enum in sync with the ObjectSpace enum in v8.h
410 enum AllocationSpace { 410 enum AllocationSpace {
411 NEW_SPACE, // Semispaces collected with copying collector. 411 NEW_SPACE, // Semispaces collected with copying collector.
412 OLD_POINTER_SPACE, // May contain pointers to new space. 412 OLD_SPACE, // May contain pointers to new space.
413 OLD_DATA_SPACE, // Must not have pointers to new space. 413 CODE_SPACE, // No pointers to new space, marked executable.
414 CODE_SPACE, // No pointers to new space, marked executable. 414 MAP_SPACE, // Only and all map objects.
415 MAP_SPACE, // Only and all map objects. 415 CELL_SPACE, // Only and all cell objects.
416 CELL_SPACE, // Only and all cell objects. 416 LO_SPACE, // Promoted large objects.
417 LO_SPACE, // Promoted large objects.
418 417
419 FIRST_SPACE = NEW_SPACE, 418 FIRST_SPACE = NEW_SPACE,
420 LAST_SPACE = LO_SPACE, 419 LAST_SPACE = LO_SPACE,
421 FIRST_PAGED_SPACE = OLD_POINTER_SPACE, 420 FIRST_PAGED_SPACE = OLD_SPACE,
422 LAST_PAGED_SPACE = CELL_SPACE 421 LAST_PAGED_SPACE = CELL_SPACE
423 }; 422 };
424 const int kSpaceTagSize = 3; 423 const int kSpaceTagSize = 3;
425 const int kSpaceTagMask = (1 << kSpaceTagSize) - 1; 424 const int kSpaceTagMask = (1 << kSpaceTagSize) - 1;
426 425
427 426
428 // A flag that indicates whether objects should be pretenured when 427 // A flag that indicates whether objects should be pretenured when
429 // allocated (allocated directly into the old generation) or not 428 // allocated (allocated directly into the old generation) or not
430 // (allocated in the young generation if the object size and type 429 // (allocated in the young generation if the object size and type
431 // allows). 430 // allows).
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after
925 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { 924 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) {
926 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); 925 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral);
927 DCHECK(IsValidFunctionKind(kind)); 926 DCHECK(IsValidFunctionKind(kind));
928 return kind; 927 return kind;
929 } 928 }
930 } } // namespace v8::internal 929 } } // namespace v8::internal
931 930
932 namespace i = v8::internal; 931 namespace i = v8::internal;
933 932
934 #endif // V8_GLOBALS_H_ 933 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698