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

Side by Side Diff: src/vm/object.cc

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 10 months 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
« no previous file with comments | « src/vm/object.h ('k') | src/vm/object_list.h » ('j') | 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) 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
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
OLDNEW
« no previous file with comments | « src/vm/object.h ('k') | src/vm/object_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698