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

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

Issue 264743010: Don't remap class/type names in the vm service. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/service_test.cc » ('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/globals.h" 9 #include "vm/globals.h"
10 #include "vm/token.h" 10 #include "vm/token.h"
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 kAllocated = 0, // Initial state. 473 kAllocated = 0, // Initial state.
474 kPreFinalized, // VM classes: size precomputed, but no checks done. 474 kPreFinalized, // VM classes: size precomputed, but no checks done.
475 kFinalized, // Class parsed, finalized and ready for use. 475 kFinalized, // Class parsed, finalized and ready for use.
476 }; 476 };
477 477
478 private: 478 private:
479 RAW_HEAP_OBJECT_IMPLEMENTATION(Class); 479 RAW_HEAP_OBJECT_IMPLEMENTATION(Class);
480 480
481 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); } 481 RawObject** from() { return reinterpret_cast<RawObject**>(&ptr()->name_); }
482 RawString* name_; 482 RawString* name_;
483 RawString* pretty_name_;
Cutch 2014/05/02 20:16:21 Is the extra space worth the cost of regenerating
turnidge 2014/05/02 21:36:36 Changed the code to no longer cache this value.
483 RawString* user_name_; 484 RawString* user_name_;
484 RawArray* functions_; 485 RawArray* functions_;
485 RawArray* fields_; 486 RawArray* fields_;
486 RawArray* offset_in_words_to_field_; 487 RawArray* offset_in_words_to_field_;
487 RawGrowableObjectArray* closure_functions_; // Local functions and literals. 488 RawGrowableObjectArray* closure_functions_; // Local functions and literals.
488 RawArray* interfaces_; // Array of AbstractType. 489 RawArray* interfaces_; // Array of AbstractType.
489 RawGrowableObjectArray* direct_subclasses_; // Array of Class. 490 RawGrowableObjectArray* direct_subclasses_; // Array of Class.
490 RawScript* script_; 491 RawScript* script_;
491 RawLibrary* library_; 492 RawLibrary* library_;
492 RawTypeArguments* type_parameters_; // Array of TypeParameter. 493 RawTypeArguments* type_parameters_; // Array of TypeParameter.
(...skipping 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after
1833 // Make sure this is updated when new TypedData types are added. 1834 // Make sure this is updated when new TypedData types are added.
1834 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); 1835 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14);
1835 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); 1836 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15);
1836 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); 1837 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14);
1837 return (kNullCid - kTypedDataInt8ArrayCid); 1838 return (kNullCid - kTypedDataInt8ArrayCid);
1838 } 1839 }
1839 1840
1840 } // namespace dart 1841 } // namespace dart
1841 1842
1842 #endif // VM_RAW_OBJECT_H_ 1843 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698