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

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

Issue 18531003: Cleanup VM error handling. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rebase 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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 137
138 138
139 // The following functions are marked as invisible, meaning they will be hidden 139 // The following functions are marked as invisible, meaning they will be hidden
140 // in the stack trace. 140 // in the stack trace.
141 // (Library, class name, method name) 141 // (Library, class name, method name)
142 #define INVISIBLE_LIST(V) \ 142 #define INVISIBLE_LIST(V) \
143 V(CoreLibrary, Object, _noSuchMethod) \ 143 V(CoreLibrary, Object, _noSuchMethod) \
144 V(CoreLibrary, Object, _as) \ 144 V(CoreLibrary, Object, _as) \
145 V(CoreLibrary, Object, _instanceOf) \ 145 V(CoreLibrary, Object, _instanceOf) \
146 V(CoreLibrary, _ObjectArray, _ObjectArray.) \ 146 V(CoreLibrary, _ObjectArray, _ObjectArray.) \
147 V(CoreLibrary, AssertionErrorImplementation, _throwNew) \ 147 V(CoreLibrary, _AssertionErrorImplementation, _throwNew) \
148 V(CoreLibrary, TypeErrorImplementation, _throwNew) \ 148 V(CoreLibrary, _TypeErrorImplementation, _throwNew) \
149 V(CoreLibrary, FallThroughErrorImplementation, _throwNew) \ 149 V(CoreLibrary, _FallThroughErrorImplementation, _throwNew) \
150 V(CoreLibrary, AbstractClassInstantiationErrorImplementation, _throwNew) \ 150 V(CoreLibrary, _AbstractClassInstantiationErrorImplementation, _throwNew) \
151 V(CoreLibrary, NoSuchMethodError, _throwNew) \ 151 V(CoreLibrary, NoSuchMethodError, _throwNew) \
152 V(CoreLibrary, int, _throwFormatException) \ 152 V(CoreLibrary, int, _throwFormatException) \
153 V(CoreLibrary, int, _parse) \ 153 V(CoreLibrary, int, _parse) \
154 V(CoreLibrary, StackTrace, _setupFullStackTrace) \ 154 V(CoreLibrary, StackTrace, _setupFullStackTrace) \
155 155
156 156
157 static void MarkFunctionAsInvisible(const Library& lib, 157 static void MarkFunctionAsInvisible(const Library& lib,
158 const char* class_name, 158 const char* class_name,
159 const char* function_name) { 159 const char* function_name) {
160 ASSERT(!lib.IsNull()); 160 ASSERT(!lib.IsNull());
(...skipping 13539 matching lines...) Expand 10 before | Expand all | Expand 10 after
13700 return reinterpret_cast<RawMirrorReference*>(raw); 13700 return reinterpret_cast<RawMirrorReference*>(raw);
13701 } 13701 }
13702 13702
13703 13703
13704 const char* MirrorReference::ToCString() const { 13704 const char* MirrorReference::ToCString() const {
13705 return "_MirrorReference"; 13705 return "_MirrorReference";
13706 } 13706 }
13707 13707
13708 13708
13709 } // namespace dart 13709 } // namespace dart
OLDNEW
« runtime/vm/exceptions.cc ('K') | « runtime/vm/exceptions.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698