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

Side by Side Diff: src/globals.h

Issue 1811913002: [serializer] ensure that immortal immovable roots are correctly deserialized. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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
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 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
469 469
470 enum GarbageCollector { SCAVENGER, MARK_COMPACTOR }; 470 enum GarbageCollector { SCAVENGER, MARK_COMPACTOR };
471 471
472 enum Executability { NOT_EXECUTABLE, EXECUTABLE }; 472 enum Executability { NOT_EXECUTABLE, EXECUTABLE };
473 473
474 enum VisitMode { 474 enum VisitMode {
475 VISIT_ALL, 475 VISIT_ALL,
476 VISIT_ALL_IN_SCAVENGE, 476 VISIT_ALL_IN_SCAVENGE,
477 VISIT_ALL_IN_SWEEP_NEWSPACE, 477 VISIT_ALL_IN_SWEEP_NEWSPACE,
478 VISIT_ONLY_STRONG, 478 VISIT_ONLY_STRONG,
479 VISIT_ONLY_STRONG_FOR_SERIALIZATION 479 VISIT_ONLY_STRONG_FOR_SERIALIZATION,
480 VISIT_ONLY_STRONG_ROOT_LIST,
480 }; 481 };
481 482
482 // Flag indicating whether code is built into the VM (one of the natives files). 483 // Flag indicating whether code is built into the VM (one of the natives files).
483 enum NativesFlag { NOT_NATIVES_CODE, EXTENSION_CODE, NATIVES_CODE }; 484 enum NativesFlag { NOT_NATIVES_CODE, EXTENSION_CODE, NATIVES_CODE };
484 485
485 // JavaScript defines two kinds of 'nil'. 486 // JavaScript defines two kinds of 'nil'.
486 enum NilValue { kNullValue, kUndefinedValue }; 487 enum NilValue { kNullValue, kUndefinedValue };
487 488
488 // ParseRestriction is used to restrict the set of valid statements in a 489 // ParseRestriction is used to restrict the set of valid statements in a
489 // unit of compilation. Restriction violations cause a syntax error. 490 // unit of compilation. Restriction violations cause a syntax error.
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >> 1028 return static_cast<uint32_t>(bit_cast<uintptr_t>(address) >>
1028 kPointerSizeLog2); 1029 kPointerSizeLog2);
1029 } 1030 }
1030 1031
1031 } // namespace internal 1032 } // namespace internal
1032 } // namespace v8 1033 } // namespace v8
1033 1034
1034 namespace i = v8::internal; 1035 namespace i = v8::internal;
1035 1036
1036 #endif // V8_GLOBALS_H_ 1037 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/heap/heap.h » ('j') | src/snapshot/serializer.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698