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

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

Issue 10830109: Add type propagation phase in optimizing compiler (work in progress). (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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/intermediate_language.cc ('k') | runtime/vm/isolate.cc » ('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) 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 #ifndef VM_ISOLATE_H_ 5 #ifndef VM_ISOLATE_H_
6 #define VM_ISOLATE_H_ 6 #define VM_ISOLATE_H_
7 7
8 #include "include/dart_api.h" 8 #include "include/dart_api.h"
9 #include "platform/assert.h" 9 #include "platform/assert.h"
10 #include "vm/class_table.h" 10 #include "vm/class_table.h"
11 #include "platform/thread.h" 11 #include "platform/thread.h"
12 #include "vm/base_isolate.h" 12 #include "vm/base_isolate.h"
13 #include "vm/gc_callbacks.h" 13 #include "vm/gc_callbacks.h"
14 #include "vm/store_buffer.h" 14 #include "vm/store_buffer.h"
15 #include "vm/timer.h" 15 #include "vm/timer.h"
16 16
17 namespace dart { 17 namespace dart {
18 18
19 // Forward declarations. 19 // Forward declarations.
20 class ApiState; 20 class ApiState;
21 class CodeIndexTable; 21 class CodeIndexTable;
22 class Debugger; 22 class Debugger;
23 class HandleScope; 23 class HandleScope;
24 class HandleVisitor; 24 class HandleVisitor;
25 class Heap; 25 class Heap;
26 class ICData;
26 class LongJump; 27 class LongJump;
27 class MessageHandler; 28 class MessageHandler;
28 class Mutex; 29 class Mutex;
29 class ObjectPointerVisitor; 30 class ObjectPointerVisitor;
30 class ObjectStore; 31 class ObjectStore;
31 class RawArray; 32 class RawArray;
32 class RawContext; 33 class RawContext;
33 class RawError; 34 class RawError;
34 class StackResource; 35 class StackResource;
35 class StubCode; 36 class StubCode;
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 173
173 uword spawn_data() const { return spawn_data_; } 174 uword spawn_data() const { return spawn_data_; }
174 void set_spawn_data(uword value) { spawn_data_ = value; } 175 void set_spawn_data(uword value) { spawn_data_ = value; }
175 176
176 // Deprecate. 177 // Deprecate.
177 intptr_t ast_node_id() const { return ast_node_id_; } 178 intptr_t ast_node_id() const { return ast_node_id_; }
178 void set_ast_node_id(int value) { ast_node_id_ = value; } 179 void set_ast_node_id(int value) { ast_node_id_ = value; }
179 180
180 intptr_t computation_id() const { return computation_id_; } 181 intptr_t computation_id() const { return computation_id_; }
181 void set_computation_id(int value) { computation_id_ = value; } 182 void set_computation_id(int value) { computation_id_ = value; }
183 intptr_t GetNextCid() { return computation_id_++; }
182 184
183 RawArray* ic_data_array() const { return ic_data_array_; } 185 RawArray* ic_data_array() const { return ic_data_array_; }
184 void set_ic_data_array(RawArray* value) { ic_data_array_ = value; } 186 void set_ic_data_array(RawArray* value) { ic_data_array_ = value; }
187 ICData* GetICDataForCid(intptr_t cid) const;
185 188
186 Debugger* debugger() const { return debugger_; } 189 Debugger* debugger() const { return debugger_; }
187 190
188 GcPrologueCallbacks& gc_prologue_callbacks() { 191 GcPrologueCallbacks& gc_prologue_callbacks() {
189 return gc_prologue_callbacks_; 192 return gc_prologue_callbacks_;
190 } 193 }
191 194
192 GcEpilogueCallbacks& gc_epilogue_callbacks() { 195 GcEpilogueCallbacks& gc_epilogue_callbacks() {
193 return gc_epilogue_callbacks_; 196 return gc_epilogue_callbacks_;
194 } 197 }
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 Isolate* new_isolate_; 340 Isolate* new_isolate_;
338 Isolate* saved_isolate_; 341 Isolate* saved_isolate_;
339 uword saved_stack_limit_; 342 uword saved_stack_limit_;
340 343
341 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); 344 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope);
342 }; 345 };
343 346
344 } // namespace dart 347 } // namespace dart
345 348
346 #endif // VM_ISOLATE_H_ 349 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/intermediate_language.cc ('k') | runtime/vm/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698