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

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

Issue 15743017: Adds a flag to the standalone vm to throw an exception on 53-bit integer overflow. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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
« no previous file with comments | « runtime/vm/exceptions.h ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 586 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 class_name = &Symbols::NullThrownError(); 597 class_name = &Symbols::NullThrownError();
598 break; 598 break;
599 case kIsolateSpawn: 599 case kIsolateSpawn:
600 library = Library::IsolateLibrary(); 600 library = Library::IsolateLibrary();
601 class_name = &Symbols::IsolateSpawnException(); 601 class_name = &Symbols::IsolateSpawnException();
602 break; 602 break;
603 case kIsolateUnhandledException: 603 case kIsolateUnhandledException:
604 library = Library::IsolateLibrary(); 604 library = Library::IsolateLibrary();
605 class_name = &Symbols::IsolateUnhandledException(); 605 class_name = &Symbols::IsolateUnhandledException();
606 break; 606 break;
607 case kFiftyThreeBitOverflowError:
608 library = Library::CoreLibrary();
609 class_name = &Symbols::FiftyThreeBitOverflowError();
610 break;
607 } 611 }
608 612
609 return DartLibraryCalls::ExceptionCreate(library, 613 return DartLibraryCalls::ExceptionCreate(library,
610 *class_name, 614 *class_name,
611 *constructor_name, 615 *constructor_name,
612 arguments); 616 arguments);
613 } 617 }
614 618
615 } // namespace dart 619 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/exceptions.h ('k') | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698