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

Side by Side Diff: runtime/vm/assembler_macros_ia32.cc

Issue 10441111: - Rename class index to class id. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_macros_x64.cc » ('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) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 #include "vm/globals.h" 5 #include "vm/globals.h"
6 #if defined(TARGET_ARCH_IA32) 6 #if defined(TARGET_ARCH_IA32)
7 7
8 #include "vm/assembler_macros.h" 8 #include "vm/assembler_macros.h"
9 9
10 #include "vm/assembler.h" 10 #include "vm/assembler.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // Successfully allocated the object, now update top to point to 42 // Successfully allocated the object, now update top to point to
43 // next object start and store the class in the class field of object. 43 // next object start and store the class in the class field of object.
44 __ movl(Address::Absolute(heap->TopAddress()), instance_reg); 44 __ movl(Address::Absolute(heap->TopAddress()), instance_reg);
45 ASSERT(instance_size >= kHeapObjectTag); 45 ASSERT(instance_size >= kHeapObjectTag);
46 __ subl(instance_reg, Immediate(instance_size - kHeapObjectTag)); 46 __ subl(instance_reg, Immediate(instance_size - kHeapObjectTag));
47 __ StoreIntoObject(instance_reg, 47 __ StoreIntoObject(instance_reg,
48 FieldAddress(instance_reg, Instance::class_offset()), 48 FieldAddress(instance_reg, Instance::class_offset()),
49 class_reg); 49 class_reg);
50 uword tags = 0; 50 uword tags = 0;
51 tags = RawObject::SizeTag::update(instance_size, tags); 51 tags = RawObject::SizeTag::update(instance_size, tags);
52 ASSERT(cls.index() != kIllegalObjectKind); 52 ASSERT(cls.id() != kIllegalObjectKind);
53 tags = RawObject::ClassTag::update(cls.index(), tags); 53 tags = RawObject::ClassIdTag::update(cls.id(), tags);
54 __ movl(FieldAddress(instance_reg, Object::tags_offset()), Immediate(tags)); 54 __ movl(FieldAddress(instance_reg, Object::tags_offset()), Immediate(tags));
55 } else { 55 } else {
56 __ jmp(failure); 56 __ jmp(failure);
57 } 57 }
58 } 58 }
59 59
60 60
61 void AssemblerMacros::EnterDartFrame(Assembler* assembler, 61 void AssemblerMacros::EnterDartFrame(Assembler* assembler,
62 intptr_t frame_size) { 62 intptr_t frame_size) {
63 const intptr_t offset = assembler->CodeSize(); 63 const intptr_t offset = assembler->CodeSize();
(...skipping 15 matching lines...) Expand all
79 void AssemblerMacros::EnterStubFrame(Assembler* assembler) { 79 void AssemblerMacros::EnterStubFrame(Assembler* assembler) {
80 __ EnterFrame(0); 80 __ EnterFrame(0);
81 __ pushl(Immediate(0)); // Push 0 in the saved PC area for stub frames. 81 __ pushl(Immediate(0)); // Push 0 in the saved PC area for stub frames.
82 } 82 }
83 83
84 #undef __ 84 #undef __
85 85
86 } // namespace dart 86 } // namespace dart
87 87
88 #endif // defined TARGET_ARCH_IA32 88 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_macros_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698