| OLD | NEW |
| 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 2325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2336 return raw_ptr()->load_state_ == RawLibrary::kLoadError; | 2336 return raw_ptr()->load_state_ == RawLibrary::kLoadError; |
| 2337 } | 2337 } |
| 2338 void SetLoadError() const; | 2338 void SetLoadError() const; |
| 2339 | 2339 |
| 2340 static intptr_t InstanceSize() { | 2340 static intptr_t InstanceSize() { |
| 2341 return RoundedAllocationSize(sizeof(RawLibrary)); | 2341 return RoundedAllocationSize(sizeof(RawLibrary)); |
| 2342 } | 2342 } |
| 2343 | 2343 |
| 2344 static RawLibrary* New(const String& url); | 2344 static RawLibrary* New(const String& url); |
| 2345 | 2345 |
| 2346 RawObject* Evaluate(const String& expr) const; |
| 2347 |
| 2346 // Library scope name dictionary. | 2348 // Library scope name dictionary. |
| 2347 // | 2349 // |
| 2348 // TODO(turnidge): The Lookup functions are not consistent in how | 2350 // TODO(turnidge): The Lookup functions are not consistent in how |
| 2349 // they deal with private names. Go through and make them a bit | 2351 // they deal with private names. Go through and make them a bit |
| 2350 // more regular. | 2352 // more regular. |
| 2351 void AddClass(const Class& cls) const; | 2353 void AddClass(const Class& cls) const; |
| 2352 void AddObject(const Object& obj, const String& name) const; | 2354 void AddObject(const Object& obj, const String& name) const; |
| 2353 void ReplaceObject(const Object& obj, const String& name) const; | 2355 void ReplaceObject(const Object& obj, const String& name) const; |
| 2354 RawObject* LookupExport(const String& name) const; | 2356 RawObject* LookupExport(const String& name) const; |
| 2355 RawObject* LookupObject(const String& name, | 2357 RawObject* LookupObject(const String& name, |
| (...skipping 3775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6131 | 6133 |
| 6132 | 6134 |
| 6133 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, | 6135 RawObject* MegamorphicCache::GetTargetFunction(const Array& array, |
| 6134 intptr_t index) { | 6136 intptr_t index) { |
| 6135 return array.At((index * kEntryLength) + kTargetFunctionIndex); | 6137 return array.At((index * kEntryLength) + kTargetFunctionIndex); |
| 6136 } | 6138 } |
| 6137 | 6139 |
| 6138 } // namespace dart | 6140 } // namespace dart |
| 6139 | 6141 |
| 6140 #endif // VM_OBJECT_H_ | 6142 #endif // VM_OBJECT_H_ |
| OLD | NEW |