| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index 100499c3f8499be7efc3e5499a78dc04132235bf..f28082344cc34f20f78be91f3619cff64530ea34 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -49,9 +49,10 @@
|
|
|
| #define LOG_API(expr) LOG(ApiEntryCall(expr))
|
|
|
| +// TODO(isolates): avoid repeated TLS reads in function prologues.
|
| #ifdef ENABLE_VMSTATE_TRACKING
|
| -#define ENTER_V8 i::VMState __state__(i::OTHER)
|
| -#define LEAVE_V8 i::VMState __state__(i::EXTERNAL)
|
| +#define ENTER_V8 i::VMState __state__(i::Isolate::Current(), i::OTHER)
|
| +#define LEAVE_V8 i::VMState __state__(i::Isolate::Current(), i::EXTERNAL)
|
| #else
|
| #define ENTER_V8 ((void) 0)
|
| #define LEAVE_V8 ((void) 0)
|
|
|