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

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

Issue 10800002: Hide names of internal classes from the user by mapping them to the documented (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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
« no previous file with comments | « runtime/vm/parser.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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 kAllocated, // Initial state. 369 kAllocated, // Initial state.
370 kPreFinalized, // VM classes: size precomputed, but no checks done. 370 kPreFinalized, // VM classes: size precomputed, but no checks done.
371 kFinalized, // All checks completed, class ready for use. 371 kFinalized, // All checks completed, class ready for use.
372 }; 372 };
373 373
374 private: 374 private:
375 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); 375 RAW_HEAP_OBJECT_IMPLEMENTATION(Class);
376 376
377 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 377 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
378 RawString* name_; 378 RawString* name_;
379 RawString* user_visible_name_;
srdjan 2012/07/18 00:41:39 Let's talk tomorrow if we need that extra field, i
379 RawArray* functions_; 380 RawArray* functions_;
380 RawArray* fields_; 381 RawArray* fields_;
381 RawGrowableObjectArray* closure_functions_; // Local functions and literals. 382 RawGrowableObjectArray* closure_functions_; // Local functions and literals.
382 RawArray* interfaces_; // Array of AbstractType. 383 RawArray* interfaces_; // Array of AbstractType.
383 RawScript* script_; 384 RawScript* script_;
384 RawLibrary* library_; 385 RawLibrary* library_;
385 RawTypeArguments* type_parameters_; // Array of TypeParameter. 386 RawTypeArguments* type_parameters_; // Array of TypeParameter.
386 RawType* super_type_; 387 RawType* super_type_;
387 RawObject* factory_class_; // UnresolvedClass (until finalization) or Class. 388 RawObject* factory_class_; // UnresolvedClass (until finalization) or Class.
388 RawFunction* signature_function_; // Associated function for signature class. 389 RawFunction* signature_function_; // Associated function for signature class.
(...skipping 1127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1516 kExternalUint64Array == kByteArray + 18 && 1517 kExternalUint64Array == kByteArray + 18 &&
1517 kExternalFloat32Array == kByteArray + 19 && 1518 kExternalFloat32Array == kByteArray + 19 &&
1518 kExternalFloat64Array == kByteArray + 20 && 1519 kExternalFloat64Array == kByteArray + 20 &&
1519 kClosure == kByteArray + 21); 1520 kClosure == kByteArray + 21);
1520 return (index >= kByteArray && index <= kClosure); 1521 return (index >= kByteArray && index <= kClosure);
1521 } 1522 }
1522 1523
1523 } // namespace dart 1524 } // namespace dart
1524 1525
1525 #endif // VM_RAW_OBJECT_H_ 1526 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698