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

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

Issue 11233063: Move ObjectNotClosureException and ClosureArgumentMismatchException to patch file. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: checked mode test expectations. Created 8 years, 2 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/dart_entry.cc ('k') | tests/co19/co19-dart2dart.status » ('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/exceptions.h" 5 #include "vm/exceptions.h"
6 6
7 #include "vm/dart_entry.h" 7 #include "vm/dart_entry.h"
8 #include "vm/debugger.h" 8 #include "vm/debugger.h"
9 #include "vm/flags.h" 9 #include "vm/flags.h"
10 #include "vm/object.h" 10 #include "vm/object.h"
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 case kArgument: 403 case kArgument:
404 library = Library::CoreLibrary(); 404 library = Library::CoreLibrary();
405 class_name = Symbols::New("ArgumentError"); 405 class_name = Symbols::New("ArgumentError");
406 break; 406 break;
407 case kNoSuchMethod: 407 case kNoSuchMethod:
408 library = Library::CoreLibrary(); 408 library = Library::CoreLibrary();
409 class_name = Symbols::New("NoSuchMethodError"); 409 class_name = Symbols::New("NoSuchMethodError");
410 break; 410 break;
411 case kClosureArgumentMismatch: 411 case kClosureArgumentMismatch:
412 library = Library::CoreLibrary(); 412 library = Library::CoreLibrary();
413 class_name = Symbols::New("ClosureArgumentMismatchException"); 413 class_name = Symbols::New("_ClosureArgumentMismatchException");
414 break; 414 break;
415 case kObjectNotClosure: 415 case kObjectNotClosure:
416 library = Library::CoreLibrary(); 416 library = Library::CoreLibrary();
417 class_name = Symbols::New("ObjectNotClosureException"); 417 class_name = Symbols::New("_ObjectNotClosureException");
418 break; 418 break;
419 case kFormat: 419 case kFormat:
420 library = Library::CoreLibrary(); 420 library = Library::CoreLibrary();
421 class_name = Symbols::New("FormatException"); 421 class_name = Symbols::New("FormatException");
422 break; 422 break;
423 case kStackOverflow: 423 case kStackOverflow:
424 library = Library::CoreLibrary(); 424 library = Library::CoreLibrary();
425 class_name = Symbols::New("StackOverflowError"); 425 class_name = Symbols::New("StackOverflowError");
426 break; 426 break;
427 case kOutOfMemory: 427 case kOutOfMemory:
(...skipping 15 matching lines...) Expand all
443 case kIsolateSpawn: 443 case kIsolateSpawn:
444 library = Library::IsolateLibrary(); 444 library = Library::IsolateLibrary();
445 class_name = Symbols::New("IsolateSpawnException"); 445 class_name = Symbols::New("IsolateSpawnException");
446 break; 446 break;
447 } 447 }
448 448
449 return DartLibraryCalls::ExceptionCreate(library, class_name, arguments); 449 return DartLibraryCalls::ExceptionCreate(library, class_name, arguments);
450 } 450 }
451 451
452 } // namespace dart 452 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/dart_entry.cc ('k') | tests/co19/co19-dart2dart.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698