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

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

Issue 8501034: Deal with unhandled exceptions the same way in all Dart api functions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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/raw_object.h ('k') | runtime/vm/raw_object_snapshot.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/raw_object.h" 5 #include "vm/raw_object.h"
6 6
7 #include "vm/object.h" 7 #include "vm/object.h"
8 #include "vm/visitor.h" 8 #include "vm/visitor.h"
9 9
10 10
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 } 341 }
342 342
343 343
344 intptr_t RawUnhandledException::VisitUnhandledExceptionPointers( 344 intptr_t RawUnhandledException::VisitUnhandledExceptionPointers(
345 RawUnhandledException* raw_obj, ObjectPointerVisitor* visitor) { 345 RawUnhandledException* raw_obj, ObjectPointerVisitor* visitor) {
346 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 346 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
347 return UnhandledException::InstanceSize(); 347 return UnhandledException::InstanceSize();
348 } 348 }
349 349
350 350
351 intptr_t RawApiFailure::VisitApiFailurePointers( 351 intptr_t RawApiError::VisitApiErrorPointers(
352 RawApiFailure* raw_obj, ObjectPointerVisitor* visitor) { 352 RawApiError* raw_obj, ObjectPointerVisitor* visitor) {
353 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 353 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
354 return ApiFailure::InstanceSize(); 354 return ApiError::InstanceSize();
355 } 355 }
356 356
357 357
358 intptr_t RawInstance::VisitInstancePointers(RawInstance* raw_obj, 358 intptr_t RawInstance::VisitInstancePointers(RawInstance* raw_obj,
359 ObjectPointerVisitor* visitor) { 359 ObjectPointerVisitor* visitor) {
360 // Make sure that we got here with the tagged pointer as this. 360 // Make sure that we got here with the tagged pointer as this.
361 ASSERT(raw_obj->IsHeapObject()); 361 ASSERT(raw_obj->IsHeapObject());
362 RawInstance* obj = raw_obj->ptr(); 362 RawInstance* obj = raw_obj->ptr();
363 intptr_t instance_size = obj->class_->ptr()->instance_size_; 363 intptr_t instance_size = obj->class_->ptr()->instance_size_;
364 intptr_t num_native_fields = obj->class_->ptr()->num_native_fields_; 364 intptr_t num_native_fields = obj->class_->ptr()->num_native_fields_;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj, 497 intptr_t RawJSRegExp::VisitJSRegExpPointers(RawJSRegExp* raw_obj,
498 ObjectPointerVisitor* visitor) { 498 ObjectPointerVisitor* visitor) {
499 // Make sure that we got here with the tagged pointer as this. 499 // Make sure that we got here with the tagged pointer as this.
500 ASSERT(raw_obj->IsHeapObject()); 500 ASSERT(raw_obj->IsHeapObject());
501 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_); 501 intptr_t length = Smi::Value(raw_obj->ptr()->data_length_);
502 visitor->VisitPointers(raw_obj->from(), raw_obj->to()); 502 visitor->VisitPointers(raw_obj->from(), raw_obj->to());
503 return JSRegExp::InstanceSize(length); 503 return JSRegExp::InstanceSize(length);
504 } 504 }
505 505
506 } // namespace dart 506 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/raw_object.h ('k') | runtime/vm/raw_object_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698