| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |