OLD | NEW |
1 // Copyright (c) 2014, the Dartino project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino 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.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
4 | 4 |
5 #include "src/vm/object.h" | 5 #include "src/vm/object.h" |
6 | 6 |
7 #include <stdio.h> | 7 #include <stdio.h> |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 | 9 |
10 #include "src/shared/bytecodes.h" | 10 #include "src/shared/bytecodes.h" |
11 #include "src/shared/flags.h" | 11 #include "src/shared/flags.h" |
12 | 12 |
13 #include "src/vm/frame.h" | 13 #include "src/vm/frame.h" |
14 #include "src/vm/intrinsics.h" | 14 #include "src/vm/intrinsics.h" |
15 #include "src/vm/natives.h" | 15 #include "src/vm/natives.h" |
16 #include "src/vm/process.h" | 16 #include "src/vm/process.h" |
17 #include "src/vm/program.h" | 17 #include "src/vm/program.h" |
18 #include "src/vm/unicode.h" | 18 #include "src/vm/unicode.h" |
19 | 19 |
20 namespace fletch { | 20 namespace dartino { |
21 | 21 |
22 uint8 StaticClassStructures::meta_class_storage[Class::kSize]; | 22 uint8 StaticClassStructures::meta_class_storage[Class::kSize]; |
23 uint8 StaticClassStructures::free_list_chunk_class_storage[Class::kSize]; | 23 uint8 StaticClassStructures::free_list_chunk_class_storage[Class::kSize]; |
24 uint8 StaticClassStructures::one_word_filler_class_storage[Class::kSize]; | 24 uint8 StaticClassStructures::one_word_filler_class_storage[Class::kSize]; |
25 uint8 StaticClassStructures::promoted_track_class_storage[Class::kSize]; | 25 uint8 StaticClassStructures::promoted_track_class_storage[Class::kSize]; |
26 | 26 |
27 static void CopyBlock(Object** dst, Object** src, int byte_size) { | 27 static void CopyBlock(Object** dst, Object** src, int byte_size) { |
28 ASSERT(byte_size > 0); | 28 ASSERT(byte_size > 0); |
29 ASSERT(Utils::IsAligned(byte_size, kPointerSize)); | 29 ASSERT(Utils::IsAligned(byte_size, kPointerSize)); |
30 | 30 |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 PromotedTrack* PromotedTrack::Initialize(PromotedTrack* next, uword location, | 728 PromotedTrack* PromotedTrack::Initialize(PromotedTrack* next, uword location, |
729 uword end) { | 729 uword end) { |
730 PromotedTrack* self = | 730 PromotedTrack* self = |
731 reinterpret_cast<PromotedTrack*>(HeapObject::FromAddress(location)); | 731 reinterpret_cast<PromotedTrack*>(HeapObject::FromAddress(location)); |
732 self->set_class(StaticClassStructures::promoted_track_class()); | 732 self->set_class(StaticClassStructures::promoted_track_class()); |
733 self->set_next(next); | 733 self->set_next(next); |
734 self->set_end(end); | 734 self->set_end(end); |
735 return self; | 735 return self; |
736 } | 736 } |
737 | 737 |
738 } // namespace fletch | 738 } // namespace dartino |
OLD | NEW |