Index: runtime/vm/object.cc |
=================================================================== |
--- runtime/vm/object.cc (revision 11197) |
+++ runtime/vm/object.cc (working copy) |
@@ -7820,6 +7820,15 @@ |
} |
+RawApiError* ApiError::New() { |
+ ASSERT(Object::api_error_class() != Class::null()); |
+ RawObject* raw = Object::Allocate(ApiError::kClassId, |
+ ApiError::InstanceSize(), |
+ Heap::kOld); |
+ return reinterpret_cast<RawApiError*>(raw); |
+} |
+ |
+ |
RawApiError* ApiError::New(const String& message, Heap::Space space) { |
ASSERT(Object::api_error_class() != Class::null()); |
ApiError& result = ApiError::Handle(); |
@@ -7851,6 +7860,15 @@ |
} |
+RawLanguageError* LanguageError::New() { |
+ ASSERT(Object::language_error_class() != Class::null()); |
+ RawObject* raw = Object::Allocate(LanguageError::kClassId, |
+ LanguageError::InstanceSize(), |
+ Heap::kOld); |
+ return reinterpret_cast<RawLanguageError*>(raw); |
+} |
+ |
+ |
RawLanguageError* LanguageError::New(const String& message, Heap::Space space) { |
ASSERT(Object::language_error_class() != Class::null()); |
LanguageError& result = LanguageError::Handle(); |