Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 "vm/assert.h" | 8 #include "vm/assert.h" |
| 9 #include "vm/dart.h" | 9 #include "vm/dart.h" |
| 10 #include "vm/globals.h" | 10 #include "vm/globals.h" |
| (...skipping 1514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1525 }; | 1525 }; |
| 1526 | 1526 |
| 1527 | 1527 |
| 1528 class Library : public Object { | 1528 class Library : public Object { |
| 1529 public: | 1529 public: |
| 1530 RawString* name() const { return raw_ptr()->name_; } | 1530 RawString* name() const { return raw_ptr()->name_; } |
| 1531 void SetName(const String& name) const; | 1531 void SetName(const String& name) const; |
| 1532 | 1532 |
| 1533 RawString* url() const { return raw_ptr()->url_; } | 1533 RawString* url() const { return raw_ptr()->url_; } |
| 1534 RawString* private_key() const { return raw_ptr()->private_key_; } | 1534 RawString* private_key() const { return raw_ptr()->private_key_; } |
| 1535 bool NotLoaded() const { | |
|
siva
2011/11/21 18:24:59
The name NotLoaded() sounds like a negation of Loa
turnidge
2011/11/21 18:52:16
Going with LoadNotStarted for now.
| |
| 1536 return raw_ptr()->load_state_ == RawLibrary::kAllocated; | |
| 1537 } | |
| 1535 bool LoadInProgress() const { | 1538 bool LoadInProgress() const { |
| 1536 return raw_ptr()->load_state_ == RawLibrary::kLoadInProgress; | 1539 return raw_ptr()->load_state_ == RawLibrary::kLoadInProgress; |
| 1537 } | 1540 } |
| 1538 void SetLoadInProgress() const; | 1541 void SetLoadInProgress() const; |
| 1539 bool Loaded() const { return raw_ptr()->load_state_ == RawLibrary::kLoaded; } | 1542 bool Loaded() const { return raw_ptr()->load_state_ == RawLibrary::kLoaded; } |
| 1540 void SetLoaded() const; | 1543 void SetLoaded() const; |
| 1541 bool LoadError() const { | 1544 bool LoadError() const { |
| 1542 return raw_ptr()->load_state_ == RawLibrary::kLoadError; | 1545 return raw_ptr()->load_state_ == RawLibrary::kLoadError; |
| 1543 } | 1546 } |
| 1544 void SetLoadError() const; | 1547 void SetLoadError() const; |
| (...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3233 } | 3236 } |
| 3234 | 3237 |
| 3235 | 3238 |
| 3236 void Context::SetAt(intptr_t index, const Instance& value) const { | 3239 void Context::SetAt(intptr_t index, const Instance& value) const { |
| 3237 StorePointer(InstanceAddr(index), value.raw()); | 3240 StorePointer(InstanceAddr(index), value.raw()); |
| 3238 } | 3241 } |
| 3239 | 3242 |
| 3240 } // namespace dart | 3243 } // namespace dart |
| 3241 | 3244 |
| 3242 #endif // VM_OBJECT_H_ | 3245 #endif // VM_OBJECT_H_ |
| OLD | NEW |