| 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 "platform/address_sanitizer.h" | 7 #include "platform/address_sanitizer.h" |
| 8 | 8 |
| 9 #include "vm/dart_api_impl.h" | 9 #include "vm/dart_api_impl.h" |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 591 break; | 591 break; |
| 592 case kRangeRange: | 592 case kRangeRange: |
| 593 library = Library::CoreLibrary(); | 593 library = Library::CoreLibrary(); |
| 594 class_name = &Symbols::RangeError(); | 594 class_name = &Symbols::RangeError(); |
| 595 constructor_name = &Symbols::DotRange(); | 595 constructor_name = &Symbols::DotRange(); |
| 596 break; | 596 break; |
| 597 case kArgument: | 597 case kArgument: |
| 598 library = Library::CoreLibrary(); | 598 library = Library::CoreLibrary(); |
| 599 class_name = &Symbols::ArgumentError(); | 599 class_name = &Symbols::ArgumentError(); |
| 600 break; | 600 break; |
| 601 case kArgumentValue: |
| 602 library = Library::CoreLibrary(); |
| 603 class_name = &Symbols::ArgumentError(); |
| 604 constructor_name = &Symbols::DotValue(); |
| 605 break; |
| 601 case kNoSuchMethod: | 606 case kNoSuchMethod: |
| 602 library = Library::CoreLibrary(); | 607 library = Library::CoreLibrary(); |
| 603 class_name = &Symbols::NoSuchMethodError(); | 608 class_name = &Symbols::NoSuchMethodError(); |
| 604 constructor_name = &Symbols::DotWithType(); | 609 constructor_name = &Symbols::DotWithType(); |
| 605 break; | 610 break; |
| 606 case kFormat: | 611 case kFormat: |
| 607 library = Library::CoreLibrary(); | 612 library = Library::CoreLibrary(); |
| 608 class_name = &Symbols::FormatException(); | 613 class_name = &Symbols::FormatException(); |
| 609 break; | 614 break; |
| 610 case kUnsupported: | 615 case kUnsupported: |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 | 675 |
| 671 // Throw JavascriptCompatibilityError exception. | 676 // Throw JavascriptCompatibilityError exception. |
| 672 void Exceptions::ThrowJavascriptCompatibilityError(const char* msg) { | 677 void Exceptions::ThrowJavascriptCompatibilityError(const char* msg) { |
| 673 const Array& exc_args = Array::Handle(Array::New(1)); | 678 const Array& exc_args = Array::Handle(Array::New(1)); |
| 674 const String& msg_str = String::Handle(String::New(msg)); | 679 const String& msg_str = String::Handle(String::New(msg)); |
| 675 exc_args.SetAt(0, msg_str); | 680 exc_args.SetAt(0, msg_str); |
| 676 Exceptions::ThrowByType(Exceptions::kJavascriptCompatibilityError, exc_args); | 681 Exceptions::ThrowByType(Exceptions::kJavascriptCompatibilityError, exc_args); |
| 677 } | 682 } |
| 678 | 683 |
| 679 } // namespace dart | 684 } // namespace dart |
| OLD | NEW |