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

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

Issue 14520010: First step towards loading the core library scripts directly from the sources (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 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
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_OBJECT_H_ 5 #ifndef VM_OBJECT_H_
6 #define VM_OBJECT_H_ 6 #define VM_OBJECT_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "platform/utils.h" 10 #include "platform/utils.h"
(...skipping 2205 matching lines...) Expand 10 before | Expand all | Expand 10 after
2216 RawArray* dictionary() const { return raw_ptr()->dictionary_; } 2216 RawArray* dictionary() const { return raw_ptr()->dictionary_; }
2217 void InitClassDictionary() const; 2217 void InitClassDictionary() const;
2218 void InitImportList() const; 2218 void InitImportList() const;
2219 void GrowDictionary(const Array& dict, intptr_t dict_size) const; 2219 void GrowDictionary(const Array& dict, intptr_t dict_size) const;
2220 static RawLibrary* NewLibraryHelper(const String& url, 2220 static RawLibrary* NewLibraryHelper(const String& url,
2221 bool import_core_lib); 2221 bool import_core_lib);
2222 RawObject* LookupEntry(const String& name, intptr_t *index) const; 2222 RawObject* LookupEntry(const String& name, intptr_t *index) const;
2223 2223
2224 FINAL_HEAP_OBJECT_IMPLEMENTATION(Library, Object); 2224 FINAL_HEAP_OBJECT_IMPLEMENTATION(Library, Object);
2225 2225
2226 friend class Object; 2226 friend class Bootstrap;
2227 friend class Class; 2227 friend class Class;
2228 friend class Debugger; 2228 friend class Debugger;
2229 friend class DictionaryIterator; 2229 friend class DictionaryIterator;
2230 friend class Isolate; 2230 friend class Isolate;
2231 friend class Namespace; 2231 friend class Namespace;
2232 friend class Object;
2232 }; 2233 };
2233 2234
2234 2235
2235 class LibraryPrefix : public Object { 2236 class LibraryPrefix : public Object {
2236 public: 2237 public:
2237 RawString* name() const { return raw_ptr()->name_; } 2238 RawString* name() const { return raw_ptr()->name_; }
2238 virtual RawString* DictionaryName() const { return name(); } 2239 virtual RawString* DictionaryName() const { return name(); }
2239 2240
2240 RawArray* imports() const { return raw_ptr()->imports_; } 2241 RawArray* imports() const { return raw_ptr()->imports_; }
2241 intptr_t num_imports() const { return raw_ptr()->num_imports_; } 2242 intptr_t num_imports() const { return raw_ptr()->num_imports_; }
(...skipping 3469 matching lines...) Expand 10 before | Expand all | Expand 10 after
5711 5712
5712 5713
5713 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, 5714 RawObject* MegamorphicCache::GetTargetFunction(const Array& array,
5714 intptr_t index) { 5715 intptr_t index) {
5715 return array.At((index * kEntryLength) + kTargetFunctionIndex); 5716 return array.At((index * kEntryLength) + kTargetFunctionIndex);
5716 } 5717 }
5717 5718
5718 } // namespace dart 5719 } // namespace dart
5719 5720
5720 #endif // VM_OBJECT_H_ 5721 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698