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

Side by Side Diff: src/globals.h

Issue 2114015: Cardmarking writebarrier. (Closed)
Patch Set: Created 10 years, 7 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/flag-definitions.h ('k') | src/heap.h » ('j') | src/heap.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 285 matching lines...) Expand 10 before | Expand all | Expand 10 after
296 class FunctionTemplateInfo; 296 class FunctionTemplateInfo;
297 class NumberDictionary; 297 class NumberDictionary;
298 class StringDictionary; 298 class StringDictionary;
299 class FreeStoreAllocationPolicy; 299 class FreeStoreAllocationPolicy;
300 template <typename T> class Handle; 300 template <typename T> class Handle;
301 class Heap; 301 class Heap;
302 class HeapObject; 302 class HeapObject;
303 class IC; 303 class IC;
304 class InterceptorInfo; 304 class InterceptorInfo;
305 class IterationStatement; 305 class IterationStatement;
306 class Array;
307 class JSArray; 306 class JSArray;
308 class JSFunction; 307 class JSFunction;
309 class JSObject; 308 class JSObject;
310 class LargeObjectSpace; 309 class LargeObjectSpace;
311 template <typename T, class P = FreeStoreAllocationPolicy> class List; 310 template <typename T, class P = FreeStoreAllocationPolicy> class List;
312 class LookupResult; 311 class LookupResult;
313 class MacroAssembler; 312 class MacroAssembler;
314 class Map; 313 class Map;
315 class MapSpace; 314 class MapSpace;
316 class MarkCompactCollector; 315 class MarkCompactCollector;
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
537 // Macros 536 // Macros
538 537
539 // Testers for test. 538 // Testers for test.
540 539
541 #define HAS_SMI_TAG(value) \ 540 #define HAS_SMI_TAG(value) \
542 ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag) 541 ((reinterpret_cast<intptr_t>(value) & kSmiTagMask) == kSmiTag)
543 542
544 #define HAS_FAILURE_TAG(value) \ 543 #define HAS_FAILURE_TAG(value) \
545 ((reinterpret_cast<intptr_t>(value) & kFailureTagMask) == kFailureTag) 544 ((reinterpret_cast<intptr_t>(value) & kFailureTagMask) == kFailureTag)
546 545
547 // OBJECT_SIZE_ALIGN returns the value aligned HeapObject size 546 // OBJECT_POINTER_ALIGN returns the value aligned as a HeapObject pointer
548 #define OBJECT_SIZE_ALIGN(value) \ 547 #define OBJECT_POINTER_ALIGN(value) \
549 (((value) + kObjectAlignmentMask) & ~kObjectAlignmentMask) 548 (((value) + kObjectAlignmentMask) & ~kObjectAlignmentMask)
550 549
551 // POINTER_SIZE_ALIGN returns the value aligned as a pointer. 550 // POINTER_SIZE_ALIGN returns the value aligned as a pointer.
552 #define POINTER_SIZE_ALIGN(value) \ 551 #define POINTER_SIZE_ALIGN(value) \
553 (((value) + kPointerAlignmentMask) & ~kPointerAlignmentMask) 552 (((value) + kPointerAlignmentMask) & ~kPointerAlignmentMask)
554 553
555 // MAP_SIZE_ALIGN returns the value aligned as a map pointer. 554 // MAP_POINTER_ALIGN returns the value aligned as a map pointer.
556 #define MAP_SIZE_ALIGN(value) \ 555 #define MAP_POINTER_ALIGN(value) \
557 (((value) + kMapAlignmentMask) & ~kMapAlignmentMask) 556 (((value) + kMapAlignmentMask) & ~kMapAlignmentMask)
558 557
559 // The expression OFFSET_OF(type, field) computes the byte-offset 558 // The expression OFFSET_OF(type, field) computes the byte-offset
560 // of the specified field relative to the containing type. This 559 // of the specified field relative to the containing type. This
561 // corresponds to 'offsetof' (in stddef.h), except that it doesn't 560 // corresponds to 'offsetof' (in stddef.h), except that it doesn't
562 // use 0 or NULL, which causes a problem with the compiler warnings 561 // use 0 or NULL, which causes a problem with the compiler warnings
563 // we have enabled (which is also why 'offsetof' doesn't seem to work). 562 // we have enabled (which is also why 'offsetof' doesn't seem to work).
564 // Here we simply use the non-zero value 4, which seems to work. 563 // Here we simply use the non-zero value 4, which seems to work.
565 #define OFFSET_OF(type, field) \ 564 #define OFFSET_OF(type, field) \
566 (reinterpret_cast<intptr_t>(&(reinterpret_cast<type*>(4)->field)) - 4) 565 (reinterpret_cast<intptr_t>(&(reinterpret_cast<type*>(4)->field)) - 4)
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
653 CMOV = 15, // x86 652 CMOV = 15, // x86
654 RDTSC = 4, // x86 653 RDTSC = 4, // x86
655 CPUID = 10, // x86 654 CPUID = 10, // x86
656 VFP3 = 1, // ARM 655 VFP3 = 1, // ARM
657 ARMv7 = 2, // ARM 656 ARMv7 = 2, // ARM
658 SAHF = 0}; // x86 657 SAHF = 0}; // x86
659 658
660 } } // namespace v8::internal 659 } } // namespace v8::internal
661 660
662 #endif // V8_GLOBALS_H_ 661 #endif // V8_GLOBALS_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/heap.h » ('j') | src/heap.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698