| OLD | NEW |
| 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 414 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 class_name = Symbols::New("InternalError"); | 425 class_name = Symbols::New("InternalError"); |
| 426 break; | 426 break; |
| 427 case kNullPointer: | 427 case kNullPointer: |
| 428 library = Library::CoreLibrary(); | 428 library = Library::CoreLibrary(); |
| 429 class_name = Symbols::New("NullPointerException"); | 429 class_name = Symbols::New("NullPointerException"); |
| 430 break; | 430 break; |
| 431 case kIllegalJSRegExp: | 431 case kIllegalJSRegExp: |
| 432 library = Library::CoreLibrary(); | 432 library = Library::CoreLibrary(); |
| 433 class_name = Symbols::New("IllegalJSRegExpException"); | 433 class_name = Symbols::New("IllegalJSRegExpException"); |
| 434 break; | 434 break; |
| 435 case kIllegalArgument: |
| 436 library = Library::CoreLibrary(); |
| 437 class_name = Symbols::New("IllegalArgumentException"); |
| 438 break; |
| 435 case kIsolateSpawn: | 439 case kIsolateSpawn: |
| 436 library = Library::IsolateLibrary(); | 440 library = Library::IsolateLibrary(); |
| 437 class_name = Symbols::New("IsolateSpawnException"); | 441 class_name = Symbols::New("IsolateSpawnException"); |
| 438 break; | 442 break; |
| 439 } | 443 } |
| 440 | 444 |
| 441 return DartLibraryCalls::ExceptionCreate(library, class_name, arguments); | 445 return DartLibraryCalls::ExceptionCreate(library, class_name, arguments); |
| 442 } | 446 } |
| 443 | 447 |
| 444 } // namespace dart | 448 } // namespace dart |
| OLD | NEW |