| 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; |  | 
|  606     case kNoSuchMethod: |  601     case kNoSuchMethod: | 
|  607       library = Library::CoreLibrary(); |  602       library = Library::CoreLibrary(); | 
|  608       class_name = &Symbols::NoSuchMethodError(); |  603       class_name = &Symbols::NoSuchMethodError(); | 
|  609       constructor_name = &Symbols::DotWithType(); |  604       constructor_name = &Symbols::DotWithType(); | 
|  610       break; |  605       break; | 
|  611     case kFormat: |  606     case kFormat: | 
|  612       library = Library::CoreLibrary(); |  607       library = Library::CoreLibrary(); | 
|  613       class_name = &Symbols::FormatException(); |  608       class_name = &Symbols::FormatException(); | 
|  614       break; |  609       break; | 
|  615     case kUnsupported: |  610     case kUnsupported: | 
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  675  |  670  | 
|  676 // Throw JavascriptCompatibilityError exception. |  671 // Throw JavascriptCompatibilityError exception. | 
|  677 void Exceptions::ThrowJavascriptCompatibilityError(const char* msg) { |  672 void Exceptions::ThrowJavascriptCompatibilityError(const char* msg) { | 
|  678   const Array& exc_args = Array::Handle(Array::New(1)); |  673   const Array& exc_args = Array::Handle(Array::New(1)); | 
|  679   const String& msg_str = String::Handle(String::New(msg)); |  674   const String& msg_str = String::Handle(String::New(msg)); | 
|  680   exc_args.SetAt(0, msg_str); |  675   exc_args.SetAt(0, msg_str); | 
|  681   Exceptions::ThrowByType(Exceptions::kJavascriptCompatibilityError, exc_args); |  676   Exceptions::ThrowByType(Exceptions::kJavascriptCompatibilityError, exc_args); | 
|  682 } |  677 } | 
|  683  |  678  | 
|  684 }  // namespace dart |  679 }  // namespace dart | 
| OLD | NEW |