| 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 656 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 667 | 667 |
| 668 RawCode* allocation_stub() const { | 668 RawCode* allocation_stub() const { |
| 669 return raw_ptr()->allocation_stub_; | 669 return raw_ptr()->allocation_stub_; |
| 670 } | 670 } |
| 671 void set_allocation_stub(const Code& value) const; | 671 void set_allocation_stub(const Code& value) const; |
| 672 | 672 |
| 673 RawArray* constants() const; | 673 RawArray* constants() const; |
| 674 | 674 |
| 675 void Finalize() const; | 675 void Finalize() const; |
| 676 | 676 |
| 677 void ApplyPatch(const Class& patch) const; | 677 const char* ApplyPatch(const Class& patch) const; |
| 678 | 678 |
| 679 // Allocate a class used for VM internal objects. | 679 // Allocate a class used for VM internal objects. |
| 680 template <class FakeObject> static RawClass* New(); | 680 template <class FakeObject> static RawClass* New(); |
| 681 | 681 |
| 682 // Allocate instance classes and interfaces. | 682 // Allocate instance classes and interfaces. |
| 683 static RawClass* New(const String& name, | 683 static RawClass* New(const String& name, |
| 684 const Script& script, | 684 const Script& script, |
| 685 intptr_t token_pos); | 685 intptr_t token_pos); |
| 686 static RawClass* NewInterface(const String& name, | 686 static RawClass* NewInterface(const String& name, |
| 687 const Script& script, | 687 const Script& script, |
| (...skipping 4826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5514 if (this->CharAt(i) != str.CharAt(begin_index + i)) { | 5514 if (this->CharAt(i) != str.CharAt(begin_index + i)) { |
| 5515 return false; | 5515 return false; |
| 5516 } | 5516 } |
| 5517 } | 5517 } |
| 5518 return true; | 5518 return true; |
| 5519 } | 5519 } |
| 5520 | 5520 |
| 5521 } // namespace dart | 5521 } // namespace dart |
| 5522 | 5522 |
| 5523 #endif // VM_OBJECT_H_ | 5523 #endif // VM_OBJECT_H_ |
| OLD | NEW |