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

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

Issue 10538043: Second local mirrors CL. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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 | Annotate | Revision Log
« runtime/lib/mirrors_impl.dart ('K') | « runtime/vm/object.cc ('k') | no next file » | 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/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 static bool IsCreatedFromSnapshot(intptr_t value) { 298 static bool IsCreatedFromSnapshot(intptr_t value) {
299 return CreatedFromSnapshotTag::decode(value); 299 return CreatedFromSnapshotTag::decode(value);
300 } 300 }
301 301
302 static bool IsCanonical(intptr_t value) { 302 static bool IsCanonical(intptr_t value) {
303 return CanonicalObjectTag::decode(value); 303 return CanonicalObjectTag::decode(value);
304 } 304 }
305 305
306 // ObjectKind predicates. 306 // ObjectKind predicates.
307 static bool IsErrorClassId(intptr_t index); 307 static bool IsErrorClassId(intptr_t index);
308 static bool IsInstanceClassIndex(intptr_t index);
Ivan Posva 2012/06/11 16:45:02 Where is the implementation for this?
turnidge 2012/06/12 20:51:46 Nowhere. Reverted this file.
308 static bool IsNumberClassId(intptr_t index); 309 static bool IsNumberClassId(intptr_t index);
309 static bool IsIntegerClassId(intptr_t index); 310 static bool IsIntegerClassId(intptr_t index);
310 static bool IsStringClassId(intptr_t index); 311 static bool IsStringClassId(intptr_t index);
311 static bool IsOneByteStringClassId(intptr_t index); 312 static bool IsOneByteStringClassId(intptr_t index);
312 static bool IsTwoByteStringClassId(intptr_t index); 313 static bool IsTwoByteStringClassId(intptr_t index);
313 static bool IsExternalStringClassId(intptr_t index); 314 static bool IsExternalStringClassId(intptr_t index);
314 static bool IsBuiltinListClassId(intptr_t index); 315 static bool IsBuiltinListClassId(intptr_t index);
315 static bool IsByteArrayClassId(intptr_t index); 316 static bool IsByteArrayClassId(intptr_t index);
316 317
317 protected: 318 protected:
(...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after
1500 kExternalUint64Array == kByteArray + 18 && 1501 kExternalUint64Array == kByteArray + 18 &&
1501 kExternalFloat32Array == kByteArray + 19 && 1502 kExternalFloat32Array == kByteArray + 19 &&
1502 kExternalFloat64Array == kByteArray + 20 && 1503 kExternalFloat64Array == kByteArray + 20 &&
1503 kClosure == kByteArray + 21); 1504 kClosure == kByteArray + 21);
1504 return (index >= kByteArray && index <= kClosure); 1505 return (index >= kByteArray && index <= kClosure);
1505 } 1506 }
1506 1507
1507 } // namespace dart 1508 } // namespace dart
1508 1509
1509 #endif // VM_RAW_OBJECT_H_ 1510 #endif // VM_RAW_OBJECT_H_
OLDNEW
« runtime/lib/mirrors_impl.dart ('K') | « runtime/vm/object.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698