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

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

Issue 581703003: VM: Use current isolate as immediate in per-isolate stubs. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: fixed arm64 bug Created 6 years, 3 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 | « no previous file | runtime/vm/stub_code_arm.cc » ('j') | runtime/vm/stub_code_arm.cc » ('J')
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 #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/base_isolate.h" 10 #include "vm/base_isolate.h"
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 V(TypeParameter) \ 107 V(TypeParameter) \
108 108
109 class Isolate : public BaseIsolate { 109 class Isolate : public BaseIsolate {
110 public: 110 public:
111 ~Isolate(); 111 ~Isolate();
112 112
113 static inline Isolate* Current() { 113 static inline Isolate* Current() {
114 return reinterpret_cast<Isolate*>(Thread::GetThreadLocal(isolate_key)); 114 return reinterpret_cast<Isolate*>(Thread::GetThreadLocal(isolate_key));
115 } 115 }
116 116
117 static inline uword CurrentAddress() {
Ivan Posva 2014/09/18 17:31:12 This is a rather unfortunate name as the function
118 return reinterpret_cast<uword>(Current());
119 }
120
117 static void SetCurrent(Isolate* isolate); 121 static void SetCurrent(Isolate* isolate);
118 122
119 static void InitOnce(); 123 static void InitOnce();
120 static Isolate* Init(const char* name_prefix); 124 static Isolate* Init(const char* name_prefix);
121 void Shutdown(); 125 void Shutdown();
122 126
123 Isolate* ShallowCopy(); 127 Isolate* ShallowCopy();
124 128
125 // Register a newly introduced class. 129 // Register a newly introduced class.
126 void RegisterClass(const Class& cls); 130 void RegisterClass(const Class& cls);
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 char* exception_callback_name_; 849 char* exception_callback_name_;
846 uint8_t* serialized_args_; 850 uint8_t* serialized_args_;
847 intptr_t serialized_args_len_; 851 intptr_t serialized_args_len_;
848 uint8_t* serialized_message_; 852 uint8_t* serialized_message_;
849 intptr_t serialized_message_len_; 853 intptr_t serialized_message_len_;
850 }; 854 };
851 855
852 } // namespace dart 856 } // namespace dart
853 857
854 #endif // VM_ISOLATE_H_ 858 #endif // VM_ISOLATE_H_
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/stub_code_arm.cc » ('j') | runtime/vm/stub_code_arm.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698