| Index: runtime/vm/dart_api_impl.h
|
| diff --git a/runtime/vm/dart_api_impl.h b/runtime/vm/dart_api_impl.h
|
| index 46f85aa8929723b3b287042d478cd243ecc04512..742f80c4424c4dc5818a9a7e0a8f8e2274a01422 100644
|
| --- a/runtime/vm/dart_api_impl.h
|
| +++ b/runtime/vm/dart_api_impl.h
|
| @@ -68,10 +68,11 @@ const char* CanonicalFunction(const char* func);
|
| } \
|
| } while (0)
|
|
|
| -#define DARTSCOPE(isolate) \
|
| - Isolate* __temp_isolate__ = (isolate); \
|
| - CHECK_ISOLATE_SCOPE(__temp_isolate__); \
|
| - HANDLESCOPE(__temp_isolate__);
|
| +#define DARTSCOPE(thread) \
|
| + Thread* T = (thread); \
|
| + Isolate* I = T->isolate(); \
|
| + CHECK_ISOLATE_SCOPE(I); \
|
| + HANDLESCOPE(T);
|
|
|
|
|
| #define RETURN_TYPE_ERROR(isolate, dart_handle, type) \
|
|
|