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

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

Issue 8528018: Start checking inputs to dart api functions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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/dart_api_impl_test.cc ('k') | no next file » | 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) 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
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 LoadNotStarted() const {
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
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_
OLDNEW
« no previous file with comments | « runtime/vm/dart_api_impl_test.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698