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

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

Issue 1536003002: VM: Remove non-existent/unused functions from precompiled entry points. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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
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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
617 class_name = &Symbols::UnsupportedError(); 617 class_name = &Symbols::UnsupportedError();
618 break; 618 break;
619 case kNullThrown: 619 case kNullThrown:
620 library = Library::CoreLibrary(); 620 library = Library::CoreLibrary();
621 class_name = &Symbols::NullThrownError(); 621 class_name = &Symbols::NullThrownError();
622 break; 622 break;
623 case kIsolateSpawn: 623 case kIsolateSpawn:
624 library = Library::IsolateLibrary(); 624 library = Library::IsolateLibrary();
625 class_name = &Symbols::IsolateSpawnException(); 625 class_name = &Symbols::IsolateSpawnException();
626 break; 626 break;
627 case kIsolateUnhandledException:
628 library = Library::IsolateLibrary();
629 class_name = &Symbols::IsolateUnhandledException();
630 break;
631 case kJavascriptIntegerOverflowError: 627 case kJavascriptIntegerOverflowError:
632 library = Library::CoreLibrary(); 628 library = Library::CoreLibrary();
633 class_name = &Symbols::JavascriptIntegerOverflowError(); 629 class_name = &Symbols::JavascriptIntegerOverflowError();
634 break; 630 break;
635 case kJavascriptCompatibilityError: 631 case kJavascriptCompatibilityError:
636 library = Library::CoreLibrary(); 632 library = Library::CoreLibrary();
637 class_name = &Symbols::JavascriptCompatibilityError(); 633 class_name = &Symbols::JavascriptCompatibilityError();
638 break; 634 break;
639 case kAssertion: 635 case kAssertion:
640 library = Library::CoreLibrary(); 636 library = Library::CoreLibrary();
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 671
676 // Throw JavascriptCompatibilityError exception. 672 // Throw JavascriptCompatibilityError exception.
677 void Exceptions::ThrowJavascriptCompatibilityError(const char* msg) { 673 void Exceptions::ThrowJavascriptCompatibilityError(const char* msg) {
678 const Array& exc_args = Array::Handle(Array::New(1)); 674 const Array& exc_args = Array::Handle(Array::New(1));
679 const String& msg_str = String::Handle(String::New(msg)); 675 const String& msg_str = String::Handle(String::New(msg));
680 exc_args.SetAt(0, msg_str); 676 exc_args.SetAt(0, msg_str);
681 Exceptions::ThrowByType(Exceptions::kJavascriptCompatibilityError, exc_args); 677 Exceptions::ThrowByType(Exceptions::kJavascriptCompatibilityError, exc_args);
682 } 678 }
683 679
684 } // namespace dart 680 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698