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

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

Issue 9114054: Port a couple more stubs to x64. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 11 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/cpu_x64.cc ('k') | runtime/vm/stub_code_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) 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 #include "vm/raw_object.h" 5 #include "vm/raw_object.h"
6 6
7 #include "vm/freelist.h" 7 #include "vm/freelist.h"
8 #include "vm/isolate.h" 8 #include "vm/isolate.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/visitor.h" 10 #include "vm/visitor.h"
11 11
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 instance_size = element->Size(); 158 instance_size = element->Size();
159 break; 159 break;
160 } 160 }
161 default: 161 default:
162 UNREACHABLE(); 162 UNREACHABLE();
163 break; 163 break;
164 } 164 }
165 } 165 }
166 ASSERT(instance_size != 0); 166 ASSERT(instance_size != 0);
167 intptr_t tags = ptr()->tags_; 167 intptr_t tags = ptr()->tags_;
168 ASSERT((instance_size == (SizeTag::decode(tags))) || 168 ASSERT((instance_size == SizeTag::decode(tags)) ||
169 (SizeTag::decode(tags) == 0) || 169 (SizeTag::decode(tags) == 0) ||
170 FreeBit::decode(tags)); 170 FreeBit::decode(tags));
171 return instance_size; 171 return instance_size;
172 } 172 }
173 173
174 174
175 intptr_t RawObject::VisitPointers(ObjectPointerVisitor* visitor) { 175 intptr_t RawObject::VisitPointers(ObjectPointerVisitor* visitor) {
176 intptr_t size = 0; 176 intptr_t size = 0;
177 NoHandleScope no_handles(Isolate::Current()); 177 NoHandleScope no_handles(Isolate::Current());
178 178
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj, 606 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj,
607 ObjectPointerVisitor* visitor) { 607 ObjectPointerVisitor* visitor) {
608 // Make sure that we got here with the tagged pointer as this. 608 // Make sure that we got here with the tagged pointer as this.
609 ASSERT(raw_obj->IsHeapObject()); 609 ASSERT(raw_obj->IsHeapObject());
610 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_); 610 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_);
611 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 611 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
612 return JSRegExp::InstanceSize(length); 612 return JSRegExp::InstanceSize(length);
613 } 613 }
614 614
615 } // namespace dart 615 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/cpu_x64.cc ('k') | runtime/vm/stub_code_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698