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

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

Issue 11228002: Rename OutOfMemoryException to OutOfMemoryError. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Made ExceptionImplementation private. Rmoved references in tests. 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/tests/vm/dart/isolate_mirror_local_test.dart ('k') | tests/co19/co19-runtime.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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
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("StackOverflowException"); 425 class_name = Symbols::New("StackOverflowException");
426 break; 426 break;
427 case kOutOfMemory: 427 case kOutOfMemory:
428 library = Library::CoreLibrary(); 428 library = Library::CoreLibrary();
429 class_name = Symbols::New("OutOfMemoryException"); 429 class_name = Symbols::New("OutOfMemoryError");
430 break; 430 break;
431 case kWrongArgumentCount: 431 case kWrongArgumentCount:
432 library = Library::CoreLibrary(); 432 library = Library::CoreLibrary();
433 class_name = Symbols::New("WrongArgumentCountException"); 433 class_name = Symbols::New("WrongArgumentCountException");
434 break; 434 break;
435 case kInternalError: 435 case kInternalError:
436 library = Library::CoreLibrary(); 436 library = Library::CoreLibrary();
437 class_name = Symbols::New("InternalError"); 437 class_name = Symbols::New("InternalError");
438 break; 438 break;
439 case kNullPointer: 439 case kNullPointer:
440 library = Library::CoreLibrary(); 440 library = Library::CoreLibrary();
441 class_name = Symbols::New("NullPointerException"); 441 class_name = Symbols::New("NullPointerException");
442 break; 442 break;
443 case kIllegalJSRegExp: 443 case kIllegalJSRegExp:
444 library = Library::CoreLibrary(); 444 library = Library::CoreLibrary();
445 class_name = Symbols::New("IllegalJSRegExpException"); 445 class_name = Symbols::New("IllegalJSRegExpException");
446 break; 446 break;
447 case kIsolateSpawn: 447 case kIsolateSpawn:
448 library = Library::IsolateLibrary(); 448 library = Library::IsolateLibrary();
449 class_name = Symbols::New("IsolateSpawnException"); 449 class_name = Symbols::New("IsolateSpawnException");
450 break; 450 break;
451 } 451 }
452 452
453 return DartLibraryCalls::ExceptionCreate(library, class_name, arguments); 453 return DartLibraryCalls::ExceptionCreate(library, class_name, arguments);
454 } 454 }
455 455
456 } // namespace dart 456 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/tests/vm/dart/isolate_mirror_local_test.dart ('k') | tests/co19/co19-runtime.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698