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

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

Issue 2045023003: Fix deferred load errors / bug #26482 (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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
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 5403 matching lines...) Expand 10 before | Expand all | Expand 10 after
5414 RawInstance* LoadError() const; 5414 RawInstance* LoadError() const;
5415 5415
5416 bool ContainsLibrary(const Library& library) const; 5416 bool ContainsLibrary(const Library& library) const;
5417 RawLibrary* GetLibrary(int index) const; 5417 RawLibrary* GetLibrary(int index) const;
5418 void AddImport(const Namespace& import) const; 5418 void AddImport(const Namespace& import) const;
5419 RawObject* LookupObject(const String& name) const; 5419 RawObject* LookupObject(const String& name) const;
5420 RawClass* LookupClass(const String& class_name) const; 5420 RawClass* LookupClass(const String& class_name) const;
5421 5421
5422 bool is_deferred_load() const { return raw_ptr()->is_deferred_load_; } 5422 bool is_deferred_load() const { return raw_ptr()->is_deferred_load_; }
5423 bool is_loaded() const { return raw_ptr()->is_loaded_; } 5423 bool is_loaded() const { return raw_ptr()->is_loaded_; }
5424 bool has_error() const;
5424 bool LoadLibrary() const; 5425 bool LoadLibrary() const;
5425 5426
5426 // Return the list of code objects that were compiled when this 5427 // Return the list of code objects that were compiled when this
5427 // prefix was not yet loaded. These code objects will be invalidated 5428 // prefix was not yet loaded. These code objects will be invalidated
5428 // when the prefix is loaded. 5429 // when the prefix is loaded.
5429 RawArray* dependent_code() const; 5430 RawArray* dependent_code() const;
5430 void set_dependent_code(const Array& array) const; 5431 void set_dependent_code(const Array& array) const;
5431 5432
5432 // Add the given code object to the list of dependent ones. 5433 // Add the given code object to the list of dependent ones.
5433 void RegisterDependentCode(const Code& code) const; 5434 void RegisterDependentCode(const Code& code) const;
(...skipping 3278 matching lines...) Expand 10 before | Expand all | Expand 10 after
8712 8713
8713 inline void TypeArguments::SetHash(intptr_t value) const { 8714 inline void TypeArguments::SetHash(intptr_t value) const {
8714 // This is only safe because we create a new Smi, which does not cause 8715 // This is only safe because we create a new Smi, which does not cause
8715 // heap allocation. 8716 // heap allocation.
8716 StoreSmi(&raw_ptr()->hash_, Smi::New(value)); 8717 StoreSmi(&raw_ptr()->hash_, Smi::New(value));
8717 } 8718 }
8718 8719
8719 } // namespace dart 8720 } // namespace dart
8720 8721
8721 #endif // VM_OBJECT_H_ 8722 #endif // VM_OBJECT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698