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

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

Issue 10825236: Replace deopt stubs location/register shuffling with using deopt-info. (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/flow_graph_compiler_x64.cc ('k') | runtime/vm/stub_code_ia32.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"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 215
216 static void SetShutdownCallback(Dart_IsolateShutdownCallback cb) { 216 static void SetShutdownCallback(Dart_IsolateShutdownCallback cb) {
217 shutdown_callback_ = cb; 217 shutdown_callback_ = cb;
218 } 218 }
219 static Dart_IsolateShutdownCallback ShutdownCallback() { 219 static Dart_IsolateShutdownCallback ShutdownCallback() {
220 return shutdown_callback_; 220 return shutdown_callback_;
221 } 221 }
222 222
223 intptr_t* deopt_registers_copy() const { return deopt_registers_copy_; } 223 intptr_t* deopt_registers_copy() const { return deopt_registers_copy_; }
224 void set_deopt_registers_copy(intptr_t* value) { 224 void set_deopt_registers_copy(intptr_t* value) {
225 ASSERT((value == NULL) || (deopt_registers_copy_ == NULL));
225 deopt_registers_copy_ = value; 226 deopt_registers_copy_ = value;
226 } 227 }
227 intptr_t* deopt_frame_copy() const { return deopt_frame_copy_; } 228 intptr_t* deopt_frame_copy() const { return deopt_frame_copy_; }
228 void SetDeoptFrameCopy(intptr_t* value, intptr_t size) { 229 void SetDeoptFrameCopy(intptr_t* value, intptr_t size) {
229 ASSERT((value == NULL) || (size > 0)); 230 ASSERT((value == NULL) || (size > 0));
231 ASSERT((value == NULL) || (deopt_frame_copy_ == NULL));
230 deopt_frame_copy_ = value; 232 deopt_frame_copy_ = value;
231 deopt_frame_copy_size_ = size; 233 deopt_frame_copy_size_ = size;
232 } 234 }
233 intptr_t deopt_frame_copy_size() const { return deopt_frame_copy_size_; } 235 intptr_t deopt_frame_copy_size() const { return deopt_frame_copy_size_; }
234 236
235 private: 237 private:
236 Isolate(); 238 Isolate();
237 239
238 void BuildName(const char* name_prefix); 240 void BuildName(const char* name_prefix);
239 void PrintInvokedFunctions(); 241 void PrintInvokedFunctions();
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 Isolate* new_isolate_; 344 Isolate* new_isolate_;
343 Isolate* saved_isolate_; 345 Isolate* saved_isolate_;
344 uword saved_stack_limit_; 346 uword saved_stack_limit_;
345 347
346 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope); 348 DISALLOW_COPY_AND_ASSIGN(SwitchIsolateScope);
347 }; 349 };
348 350
349 } // namespace dart 351 } // namespace dart
350 352
351 #endif // VM_ISOLATE_H_ 353 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/stub_code_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698