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

Side by Side Diff: runtime/vm/raw_object.h

Issue 1176183002: Refactor delay set to allow more than one marking visitor (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Remove DrainTask Created 5 years, 6 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 | « runtime/vm/gc_marker.cc ('k') | runtime/vm/visitor.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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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_RAW_OBJECT_H_ 5 #ifndef VM_RAW_OBJECT_H_
6 #define VM_RAW_OBJECT_H_ 6 #define VM_RAW_OBJECT_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/atomic.h" 9 #include "vm/atomic.h"
10 #include "vm/globals.h" 10 #include "vm/globals.h"
(...skipping 1909 matching lines...) Expand 10 before | Expand all | Expand 10 after
1920 1920
1921 RawObject** from() { 1921 RawObject** from() {
1922 return reinterpret_cast<RawObject**>(&ptr()->key_); 1922 return reinterpret_cast<RawObject**>(&ptr()->key_);
1923 } 1923 }
1924 RawObject* key_; 1924 RawObject* key_;
1925 RawObject* value_; 1925 RawObject* value_;
1926 RawObject** to() { 1926 RawObject** to() {
1927 return reinterpret_cast<RawObject**>(&ptr()->value_); 1927 return reinterpret_cast<RawObject**>(&ptr()->value_);
1928 } 1928 }
1929 1929
1930 friend class DelaySet;
1930 friend class GCMarker; 1931 friend class GCMarker;
1931 friend class MarkingVisitor; 1932 friend class MarkingVisitor;
1932 friend class Scavenger; 1933 friend class Scavenger;
1933 friend class ScavengerVisitor; 1934 friend class ScavengerVisitor;
1934 }; 1935 };
1935 1936
1936 // MirrorReferences are used by mirrors to hold reflectees that are VM 1937 // MirrorReferences are used by mirrors to hold reflectees that are VM
1937 // internal objects, such as libraries, classes, functions or types. 1938 // internal objects, such as libraries, classes, functions or types.
1938 class RawMirrorReference : public RawInstance { 1939 class RawMirrorReference : public RawInstance {
1939 RAW_HEAP_OBJECT_IMPLEMENTATION(MirrorReference); 1940 RAW_HEAP_OBJECT_IMPLEMENTATION(MirrorReference);
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
2182 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid == 2183 COMPILE_ASSERT(kExternalTypedDataInt8ArrayCid ==
2183 kTypedDataInt8ArrayViewCid + 15); 2184 kTypedDataInt8ArrayViewCid + 15);
2184 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14); 2185 COMPILE_ASSERT(kByteBufferCid == kExternalTypedDataInt8ArrayCid + 14);
2185 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1); 2186 COMPILE_ASSERT(kNullCid == kByteBufferCid + 1);
2186 return (kNullCid - kTypedDataInt8ArrayCid); 2187 return (kNullCid - kTypedDataInt8ArrayCid);
2187 } 2188 }
2188 2189
2189 } // namespace dart 2190 } // namespace dart
2190 2191
2191 #endif // VM_RAW_OBJECT_H_ 2192 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/gc_marker.cc ('k') | runtime/vm/visitor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698