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

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

Issue 1654153002: Introduce a flag to force program abort on type/assertion errors. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « runtime/lib/errors.cc ('k') | runtime/vm/exceptions.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 #ifndef VM_EXCEPTIONS_H_ 5 #ifndef VM_EXCEPTIONS_H_
6 #define VM_EXCEPTIONS_H_ 6 #define VM_EXCEPTIONS_H_
7 7
8 #include "vm/allocation.h" 8 #include "vm/allocation.h"
9 9
10 namespace dart { 10 namespace dart {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 static void ThrowRangeError(const char* argument_name, 79 static void ThrowRangeError(const char* argument_name,
80 const Integer& argument_value, 80 const Integer& argument_value,
81 intptr_t expected_from, 81 intptr_t expected_from,
82 intptr_t expected_to); 82 intptr_t expected_to);
83 static void ThrowJavascriptCompatibilityError(const char* msg); 83 static void ThrowJavascriptCompatibilityError(const char* msg);
84 84
85 // Returns a RawInstance if the exception is successfully created, 85 // Returns a RawInstance if the exception is successfully created,
86 // otherwise returns a RawError. 86 // otherwise returns a RawError.
87 static RawObject* Create(ExceptionType type, const Array& arguments); 87 static RawObject* Create(ExceptionType type, const Array& arguments);
88 88
89 static void PrintStackTraceAndAbort(const char* reason);
90
89 private: 91 private:
90 DISALLOW_COPY_AND_ASSIGN(Exceptions); 92 DISALLOW_COPY_AND_ASSIGN(Exceptions);
91 }; 93 };
92 94
93 } // namespace dart 95 } // namespace dart
94 96
95 #endif // VM_EXCEPTIONS_H_ 97 #endif // VM_EXCEPTIONS_H_
OLDNEW
« no previous file with comments | « runtime/lib/errors.cc ('k') | runtime/vm/exceptions.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698