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

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

Issue 821123003: Simplify double to bigint conversion. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 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
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 "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 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
690 constructor_name = &Symbols::DotWithType(); 690 constructor_name = &Symbols::DotWithType();
691 break; 691 break;
692 case kFormat: 692 case kFormat:
693 library = Library::CoreLibrary(); 693 library = Library::CoreLibrary();
694 class_name = &Symbols::FormatException(); 694 class_name = &Symbols::FormatException();
695 break; 695 break;
696 case kUnsupported: 696 case kUnsupported:
697 library = Library::CoreLibrary(); 697 library = Library::CoreLibrary();
698 class_name = &Symbols::UnsupportedError(); 698 class_name = &Symbols::UnsupportedError();
699 break; 699 break;
700 case kInternalError:
701 library = Library::CoreLibrary();
702 class_name = &Symbols::InternalError();
703 break;
704 case kNullThrown: 700 case kNullThrown:
705 library = Library::CoreLibrary(); 701 library = Library::CoreLibrary();
706 class_name = &Symbols::NullThrownError(); 702 class_name = &Symbols::NullThrownError();
707 break; 703 break;
708 case kIsolateSpawn: 704 case kIsolateSpawn:
709 library = Library::IsolateLibrary(); 705 library = Library::IsolateLibrary();
710 class_name = &Symbols::IsolateSpawnException(); 706 class_name = &Symbols::IsolateSpawnException();
711 break; 707 break;
712 case kIsolateUnhandledException: 708 case kIsolateUnhandledException:
713 library = Library::IsolateLibrary(); 709 library = Library::IsolateLibrary();
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
760 756
761 // Throw JavascriptCompatibilityError exception. 757 // Throw JavascriptCompatibilityError exception.
762 void Exceptions::ThrowJavascriptCompatibilityError(const char* msg) { 758 void Exceptions::ThrowJavascriptCompatibilityError(const char* msg) {
763 const Array& exc_args = Array::Handle(Array::New(1)); 759 const Array& exc_args = Array::Handle(Array::New(1));
764 const String& msg_str = String::Handle(String::New(msg)); 760 const String& msg_str = String::Handle(String::New(msg));
765 exc_args.SetAt(0, msg_str); 761 exc_args.SetAt(0, msg_str);
766 Exceptions::ThrowByType(Exceptions::kJavascriptCompatibilityError, exc_args); 762 Exceptions::ThrowByType(Exceptions::kJavascriptCompatibilityError, exc_args);
767 } 763 }
768 764
769 } // namespace dart 765 } // namespace dart
OLDNEW
« runtime/lib/bigint.dart ('K') | « runtime/vm/exceptions.h ('k') | runtime/vm/object.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698