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

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

Issue 227433004: Add runtime and native entry tags (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 8 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
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 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 RawArray* exports_; // List of re-exported Namespaces. 767 RawArray* exports_; // List of re-exported Namespaces.
768 RawArray* loaded_scripts_; // Array of scripts loaded in this library. 768 RawArray* loaded_scripts_; // Array of scripts loaded in this library.
769 RawObject** to() { 769 RawObject** to() {
770 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_); 770 return reinterpret_cast<RawObject**>(&ptr()->loaded_scripts_);
771 } 771 }
772 772
773 intptr_t index_; // Library id number. 773 intptr_t index_; // Library id number.
774 intptr_t num_imports_; // Number of entries in imports_. 774 intptr_t num_imports_; // Number of entries in imports_.
775 intptr_t num_anonymous_; // Number of entries in anonymous_classes_. 775 intptr_t num_anonymous_; // Number of entries in anonymous_classes_.
776 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives. 776 Dart_NativeEntryResolver native_entry_resolver_; // Resolves natives.
777 Dart_NativeEntrySymbol native_entry_symbol_resolver_;
777 bool corelib_imported_; 778 bool corelib_imported_;
778 bool debuggable_; // True if debugger can stop in library. 779 bool debuggable_; // True if debugger can stop in library.
779 int8_t load_state_; // Of type LibraryState. 780 int8_t load_state_; // Of type LibraryState.
780 781
781 friend class Isolate; 782 friend class Isolate;
782 }; 783 };
783 784
784 785
785 class RawNamespace : public RawObject { 786 class RawNamespace : public RawObject {
786 RAW_HEAP_OBJECT_IMPLEMENTATION(Namespace); 787 RAW_HEAP_OBJECT_IMPLEMENTATION(Namespace);
(...skipping 993 matching lines...) Expand 10 before | Expand all | Expand 10 after
1780 // Make sure this is updated when new TypedData types are added. 1781 // Make sure this is updated when new TypedData types are added.
1781 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14); 1782 ASSERT(kTypedDataInt8ArrayViewCid == kTypedDataInt8ArrayCid + 14);
1782 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15); 1783 ASSERT(kExternalTypedDataInt8ArrayCid == kTypedDataInt8ArrayViewCid + 15);
1783 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14); 1784 ASSERT(kNullCid == kExternalTypedDataInt8ArrayCid + 14);
1784 return (kNullCid - kTypedDataInt8ArrayCid); 1785 return (kNullCid - kTypedDataInt8ArrayCid);
1785 } 1786 }
1786 1787
1787 } // namespace dart 1788 } // namespace dart
1788 1789
1789 #endif // VM_RAW_OBJECT_H_ 1790 #endif // VM_RAW_OBJECT_H_
OLDNEW
« no previous file with comments | « runtime/vm/profiler.cc ('k') | runtime/vm/runtime_entry.h » ('j') | runtime/vm/stack_frame.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698