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

Unified Diff: runtime/vm/service_isolate.cc

Issue 1156143003: Refactor Isolate -> Thread in NativeArguments and exception handler jump. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Fix comment; remove unused accessor. Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/runtime_entry.h ('k') | runtime/vm/simulator_arm.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/service_isolate.cc
diff --git a/runtime/vm/service_isolate.cc b/runtime/vm/service_isolate.cc
index ad6be9d1d98b97cfb88d017e7ad28ca781a6917b..9ff38ef9cc19714c08278a4c450ce213aee49e17 100644
--- a/runtime/vm/service_isolate.cc
+++ b/runtime/vm/service_isolate.cc
@@ -219,7 +219,7 @@ class ServiceIsolateNatives : public AllStatic {
public:
static void SendIsolateServiceMessage(Dart_NativeArguments args) {
NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args);
- Isolate* isolate = arguments->isolate();
+ Isolate* isolate = arguments->thread()->isolate();
StackZone stack_zone(isolate);
Zone* zone = stack_zone.GetZone(); // Used by GET_NON_NULL_NATIVE_ARGUMENT.
HANDLESCOPE(isolate);
@@ -243,7 +243,7 @@ class ServiceIsolateNatives : public AllStatic {
static void SendRootServiceMessage(Dart_NativeArguments args) {
NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args);
- Isolate* isolate = arguments->isolate();
+ Isolate* isolate = arguments->thread()->isolate();
StackZone stack_zone(isolate);
Zone* zone = stack_zone.GetZone(); // Used by GET_NON_NULL_NATIVE_ARGUMENT.
HANDLESCOPE(isolate);
@@ -253,7 +253,7 @@ class ServiceIsolateNatives : public AllStatic {
static void OnStart(Dart_NativeArguments args) {
NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args);
- Isolate* isolate = arguments->isolate();
+ Isolate* isolate = arguments->thread()->isolate();
StackZone zone(isolate);
HANDLESCOPE(isolate);
{
@@ -287,7 +287,7 @@ class ServiceIsolateNatives : public AllStatic {
static void OnExit(Dart_NativeArguments args) {
NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args);
- Isolate* isolate = arguments->isolate();
+ Isolate* isolate = arguments->thread()->isolate();
StackZone zone(isolate);
HANDLESCOPE(isolate);
{
@@ -299,7 +299,7 @@ class ServiceIsolateNatives : public AllStatic {
static void ListenStream(Dart_NativeArguments args) {
NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args);
- Isolate* isolate = arguments->isolate();
+ Isolate* isolate = arguments->thread()->isolate();
StackZone stack_zone(isolate);
Zone* zone = stack_zone.GetZone(); // Used by GET_NON_NULL_NATIVE_ARGUMENT.
HANDLESCOPE(isolate);
@@ -309,7 +309,7 @@ class ServiceIsolateNatives : public AllStatic {
static void CancelStream(Dart_NativeArguments args) {
NativeArguments* arguments = reinterpret_cast<NativeArguments*>(args);
- Isolate* isolate = arguments->isolate();
+ Isolate* isolate = arguments->thread()->isolate();
StackZone stack_zone(isolate);
Zone* zone = stack_zone.GetZone(); // Used by GET_NON_NULL_NATIVE_ARGUMENT.
HANDLESCOPE(isolate);
« no previous file with comments | « runtime/vm/runtime_entry.h ('k') | runtime/vm/simulator_arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698