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

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

Issue 11413101: Added support for isolate unhandled exceptions. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 1 month 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_store.h" 5 #include "vm/object_store.h"
6 6
7 #include "vm/exceptions.h" 7 #include "vm/exceptions.h"
8 #include "vm/isolate.h" 8 #include "vm/isolate.h"
9 #include "vm/object.h" 9 #include "vm/object.h"
10 #include "vm/raw_object.h" 10 #include "vm/raw_object.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 math_library_(Library::null()), 71 math_library_(Library::null()),
72 isolate_library_(Library::null()), 72 isolate_library_(Library::null()),
73 mirrors_library_(Library::null()), 73 mirrors_library_(Library::null()),
74 scalarlist_library_(Library::null()), 74 scalarlist_library_(Library::null()),
75 native_wrappers_library_(Library::null()), 75 native_wrappers_library_(Library::null()),
76 builtin_library_(Library::null()), 76 builtin_library_(Library::null()),
77 root_library_(Library::null()), 77 root_library_(Library::null()),
78 libraries_(GrowableObjectArray::null()), 78 libraries_(GrowableObjectArray::null()),
79 pending_classes_(GrowableObjectArray::null()), 79 pending_classes_(GrowableObjectArray::null()),
80 sticky_error_(Error::null()), 80 sticky_error_(Error::null()),
81 unhandled_exception_closure_(Instance::null()),
81 empty_context_(Context::null()), 82 empty_context_(Context::null()),
82 stack_overflow_(Instance::null()), 83 stack_overflow_(Instance::null()),
83 out_of_memory_(Instance::null()), 84 out_of_memory_(Instance::null()),
84 keyword_symbols_(Array::null()) { 85 keyword_symbols_(Array::null()) {
85 } 86 }
86 87
87 88
88 ObjectStore::~ObjectStore() { 89 ObjectStore::~ObjectStore() {
89 } 90 }
90 91
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 void ObjectStore::InitKeywordTable() { 133 void ObjectStore::InitKeywordTable() {
133 // Set up the keywords symbol array so that we can access it while scanning. 134 // Set up the keywords symbol array so that we can access it while scanning.
134 Array& keywords = Array::Handle(keyword_symbols()); 135 Array& keywords = Array::Handle(keyword_symbols());
135 ASSERT(keywords.IsNull()); 136 ASSERT(keywords.IsNull());
136 keywords = Array::New(Token::numKeywords, Heap::kOld); 137 keywords = Array::New(Token::numKeywords, Heap::kOld);
137 ASSERT(!keywords.IsError() && !keywords.IsNull()); 138 ASSERT(!keywords.IsError() && !keywords.IsNull());
138 set_keyword_symbols(keywords); 139 set_keyword_symbols(keywords);
139 } 140 }
140 141
141 } // namespace dart 142 } // namespace dart
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698