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

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

Issue 18463003: Implement the invoke methods (invoke, getField, setField, newInstance, apply) as internal natives. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 "vm/dart_api_impl.h" 7 #include "vm/dart_api_impl.h"
8 #include "vm/dart_entry.h" 8 #include "vm/dart_entry.h"
9 #include "vm/debugger.h" 9 #include "vm/debugger.h"
10 #include "vm/flags.h" 10 #include "vm/flags.h"
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 class_name = &Symbols::TypeError(); 611 class_name = &Symbols::TypeError();
612 break; 612 break;
613 case kFallThrough: 613 case kFallThrough:
614 library = Library::CoreLibrary(); 614 library = Library::CoreLibrary();
615 class_name = &Symbols::FallThroughError(); 615 class_name = &Symbols::FallThroughError();
616 break; 616 break;
617 case kAbstractClassInstantiation: 617 case kAbstractClassInstantiation:
618 library = Library::CoreLibrary(); 618 library = Library::CoreLibrary();
619 class_name = &Symbols::AbstractClassInstantiationError(); 619 class_name = &Symbols::AbstractClassInstantiationError();
620 break; 620 break;
621 case kMirroredUncaughtExceptionError:
622 library = Library::MirrorsLibrary();
623 class_name = &Symbols::MirroredUncaughtExceptionError();
624 break;
625 case kMirroredCompilationError:
626 library = Library::MirrorsLibrary();
627 class_name = &Symbols::MirroredCompilationError();
628 break;
621 } 629 }
622 630
623 return DartLibraryCalls::ExceptionCreate(library, 631 return DartLibraryCalls::ExceptionCreate(library,
624 *class_name, 632 *class_name,
625 *constructor_name, 633 *constructor_name,
626 arguments); 634 arguments);
627 } 635 }
628 636
629 } // namespace dart 637 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698