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

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

Issue 11783009: Big merge from experimental to bleeding edge. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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/exceptions.h ('k') | runtime/vm/flow_graph_builder.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/exceptions.h" 5 #include "vm/exceptions.h"
6 6
7 #include "vm/dart_api_impl.h" 7 #include "vm/dart_api_impl.h"
8 #include "vm/dart_entry.h" 8 #include "vm/dart_entry.h"
9 #include "vm/debugger.h" 9 #include "vm/debugger.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 class_name = &Symbols::ArgumentError(); 407 class_name = &Symbols::ArgumentError();
408 break; 408 break;
409 case kNoSuchMethod: 409 case kNoSuchMethod:
410 library = Library::CoreLibrary(); 410 library = Library::CoreLibrary();
411 class_name = &Symbols::NoSuchMethodError(); 411 class_name = &Symbols::NoSuchMethodError();
412 break; 412 break;
413 case kFormat: 413 case kFormat:
414 library = Library::CoreLibrary(); 414 library = Library::CoreLibrary();
415 class_name = &Symbols::FormatException(); 415 class_name = &Symbols::FormatException();
416 break; 416 break;
417 case kUnsupported:
418 library = Library::CoreLibrary();
419 class_name = &Symbols::UnsupportedError();
420 break;
417 case kStackOverflow: 421 case kStackOverflow:
418 library = Library::CoreLibrary(); 422 library = Library::CoreLibrary();
419 class_name = &Symbols::StackOverflowError(); 423 class_name = &Symbols::StackOverflowError();
420 break; 424 break;
421 case kOutOfMemory: 425 case kOutOfMemory:
422 library = Library::CoreLibrary(); 426 library = Library::CoreLibrary();
423 class_name = &Symbols::OutOfMemoryError(); 427 class_name = &Symbols::OutOfMemoryError();
424 break; 428 break;
425 case kInternalError: 429 case kInternalError:
426 library = Library::CoreLibrary(); 430 library = Library::CoreLibrary();
(...skipping 14 matching lines...) Expand all
441 case kIsolateUnhandledException: 445 case kIsolateUnhandledException:
442 library = Library::IsolateLibrary(); 446 library = Library::IsolateLibrary();
443 class_name = &Symbols::IsolateUnhandledException(); 447 class_name = &Symbols::IsolateUnhandledException();
444 break; 448 break;
445 } 449 }
446 450
447 return DartLibraryCalls::ExceptionCreate(library, *class_name, arguments); 451 return DartLibraryCalls::ExceptionCreate(library, *class_name, arguments);
448 } 452 }
449 453
450 } // namespace dart 454 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/exceptions.h ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698