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

Side by Side Diff: runtime/lib/stacktrace.cc

Issue 21832003: Fix VM implementation of CastError not to extend TypeError (issue 5280). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 4 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/lib/errors_patch.dart ('k') | runtime/vm/code_generator.h » ('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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 "lib/error.h"
6
7 #include "vm/bootstrap_natives.h" 5 #include "vm/bootstrap_natives.h"
8 #include "vm/exceptions.h" 6 #include "vm/exceptions.h"
9 #include "vm/object_store.h" 7 #include "vm/object_store.h"
10 #include "vm/runtime_entry.h" 8 #include "vm/runtime_entry.h"
11 #include "vm/stack_frame.h" 9 #include "vm/stack_frame.h"
12 10
13 namespace dart { 11 namespace dart {
14 12
15 // Get a full stack trace. 13 // Get a full stack trace.
16 // Arg0: stack trace object. 14 // Arg0: stack trace object.
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 } 92 }
95 const Array& func_array = Array::Handle(Array::MakeArray(func_list)); 93 const Array& func_array = Array::Handle(Array::MakeArray(func_list));
96 const Array& code_array = Array::Handle(Array::MakeArray(code_list)); 94 const Array& code_array = Array::Handle(Array::MakeArray(code_list));
97 const Array& pc_offset_array = 95 const Array& pc_offset_array =
98 Array::Handle(Array::MakeArray(pc_offset_list)); 96 Array::Handle(Array::MakeArray(pc_offset_list));
99 trace.SetCatchStacktrace(func_array, code_array, pc_offset_array); 97 trace.SetCatchStacktrace(func_array, code_array, pc_offset_array);
100 return Object::null(); 98 return Object::null();
101 } 99 }
102 100
103 } // namespace dart 101 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/lib/errors_patch.dart ('k') | runtime/vm/code_generator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698