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

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

Issue 22632010: Added following dart API changes to enable more efficient access based (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/vm/isolate.h ('k') | runtime/vm/object.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 "vm/isolate.h" 5 #include "vm/isolate.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 "platform/json.h" 9 #include "platform/json.h"
10 #include "lib/mirrors.h" 10 #include "lib/mirrors.h"
11 #include "vm/code_observers.h" 11 #include "vm/code_observers.h"
12 #include "vm/compiler_stats.h" 12 #include "vm/compiler_stats.h"
13 #include "vm/dart_api_state.h" 13 #include "vm/dart_api_state.h"
14 #include "vm/dart_entry.h" 14 #include "vm/dart_entry.h"
15 #include "vm/debugger.h" 15 #include "vm/debugger.h"
16 #include "vm/heap.h" 16 #include "vm/heap.h"
17 #include "vm/heap_histogram.h" 17 #include "vm/heap_histogram.h"
18 #include "vm/message_handler.h" 18 #include "vm/message_handler.h"
19 #include "vm/object_id_ring.h" 19 #include "vm/object_id_ring.h"
20 #include "vm/object_store.h" 20 #include "vm/object_store.h"
21 #include "vm/parser.h" 21 #include "vm/parser.h"
22 #include "vm/port.h" 22 #include "vm/port.h"
23 #include "vm/reusable_handles.h"
23 #include "vm/service.h" 24 #include "vm/service.h"
24 #include "vm/simulator.h" 25 #include "vm/simulator.h"
25 #include "vm/stack_frame.h" 26 #include "vm/stack_frame.h"
26 #include "vm/stub_code.h" 27 #include "vm/stub_code.h"
27 #include "vm/symbols.h" 28 #include "vm/symbols.h"
28 #include "vm/thread.h" 29 #include "vm/thread.h"
29 #include "vm/timer.h" 30 #include "vm/timer.h"
30 #include "vm/visitor.h" 31 #include "vm/visitor.h"
31 32
32 33
(...skipping 1065 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 void Isolate::MaterializeDeferredBoxes() { 1099 void Isolate::MaterializeDeferredBoxes() {
1099 FillDeferredSlots(&deferred_boxes_); 1100 FillDeferredSlots(&deferred_boxes_);
1100 } 1101 }
1101 1102
1102 1103
1103 void Isolate::MaterializeDeferredObjects() { 1104 void Isolate::MaterializeDeferredObjects() {
1104 FillDeferredSlots(&deferred_object_refs_); 1105 FillDeferredSlots(&deferred_object_refs_);
1105 } 1106 }
1106 1107
1107 1108
1108 void ReusableHandleScope::ResetHandles() {
1109 #define CLEAR_REUSABLE_HANDLE(object) \
1110 if (!object##Handle().IsNull()) { \
1111 object##Handle().raw_ = Object::null(); \
1112 }
1113
1114 REUSABLE_HANDLE_LIST(CLEAR_REUSABLE_HANDLE);
1115 }
1116
1117
1118 static char* GetRootScriptUri(Isolate* isolate) { 1109 static char* GetRootScriptUri(Isolate* isolate) {
1119 const Library& library = 1110 const Library& library =
1120 Library::Handle(isolate->object_store()->root_library()); 1111 Library::Handle(isolate->object_store()->root_library());
1121 ASSERT(!library.IsNull()); 1112 ASSERT(!library.IsNull());
1122 const String& script_name = String::Handle(library.url()); 1113 const String& script_name = String::Handle(library.url());
1123 return isolate->current_zone()->MakeCopyOfString(script_name.ToCString()); 1114 return isolate->current_zone()->MakeCopyOfString(script_name.ToCString());
1124 } 1115 }
1125 1116
1126 1117
1127 IsolateSpawnState::IsolateSpawnState(const Function& func, 1118 IsolateSpawnState::IsolateSpawnState(const Function& func,
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1198 return func.raw(); 1189 return func.raw();
1199 } 1190 }
1200 1191
1201 1192
1202 void IsolateSpawnState::Cleanup() { 1193 void IsolateSpawnState::Cleanup() {
1203 SwitchIsolateScope switch_scope(isolate()); 1194 SwitchIsolateScope switch_scope(isolate());
1204 Dart::ShutdownIsolate(); 1195 Dart::ShutdownIsolate();
1205 } 1196 }
1206 1197
1207 } // namespace dart 1198 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/isolate.h ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698