| 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 1765 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1776 | 1776 |
| 1777 RawString* PrivateName(const String& name) const; | 1777 RawString* PrivateName(const String& name) const; |
| 1778 | 1778 |
| 1779 intptr_t index() const { return raw_ptr()->index_; } | 1779 intptr_t index() const { return raw_ptr()->index_; } |
| 1780 void set_index(intptr_t value) const { | 1780 void set_index(intptr_t value) const { |
| 1781 raw_ptr()->index_ = value; | 1781 raw_ptr()->index_ = value; |
| 1782 } | 1782 } |
| 1783 | 1783 |
| 1784 void Register() const; | 1784 void Register() const; |
| 1785 | 1785 |
| 1786 bool IsDebuggable() const { |
| 1787 return raw_ptr()->debuggable_; |
| 1788 } |
| 1789 void set_debuggable(bool value) const { |
| 1790 raw_ptr()->debuggable_ = value; |
| 1791 } |
| 1792 |
| 1786 RawString* DuplicateDefineErrorString(const String& entry_name, | 1793 RawString* DuplicateDefineErrorString(const String& entry_name, |
| 1787 const Library& conflicting_lib) const; | 1794 const Library& conflicting_lib) const; |
| 1788 static RawLibrary* LookupLibrary(const String& url); | 1795 static RawLibrary* LookupLibrary(const String& url); |
| 1789 static RawLibrary* GetLibrary(intptr_t index); | 1796 static RawLibrary* GetLibrary(intptr_t index); |
| 1790 static RawString* CheckForDuplicateDefinition(); | 1797 static RawString* CheckForDuplicateDefinition(); |
| 1791 static bool IsKeyUsed(intptr_t key); | 1798 static bool IsKeyUsed(intptr_t key); |
| 1792 | 1799 |
| 1793 static void InitCoreLibrary(Isolate* isolate); | 1800 static void InitCoreLibrary(Isolate* isolate); |
| 1794 static void InitMathLibrary(Isolate* isolate); | 1801 static void InitMathLibrary(Isolate* isolate); |
| 1795 static void InitIsolateLibrary(Isolate* isolate); | 1802 static void InitIsolateLibrary(Isolate* isolate); |
| (...skipping 3161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4957 } | 4964 } |
| 4958 | 4965 |
| 4959 | 4966 |
| 4960 intptr_t Stackmap::SizeInBits() const { | 4967 intptr_t Stackmap::SizeInBits() const { |
| 4961 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); | 4968 return (Smi::Value(raw_ptr()->bitmap_size_in_bytes_) * kBitsPerByte); |
| 4962 } | 4969 } |
| 4963 | 4970 |
| 4964 } // namespace dart | 4971 } // namespace dart |
| 4965 | 4972 |
| 4966 #endif // VM_OBJECT_H_ | 4973 #endif // VM_OBJECT_H_ |
| OLD | NEW |