| Index: test/cctest/test-api.cc
|
| diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
|
| index aaac4866324777940b3c7c920be68ec35382e3ee..f4e40cdd3844b35b03541eaa95abb91441546848 100644
|
| --- a/test/cctest/test-api.cc
|
| +++ b/test/cctest/test-api.cc
|
| @@ -12670,8 +12670,8 @@ struct CopyablePersistentTraits {
|
| typedef Persistent<T, CopyablePersistentTraits<T> > CopyablePersistent;
|
| static const bool kResetInDestructor = true;
|
| template<class S, class M>
|
| - V8_INLINE(static void Copy(const Persistent<S, M>& source,
|
| - CopyablePersistent* dest)) {
|
| + static V8_INLINE void Copy(const Persistent<S, M>& source,
|
| + CopyablePersistent* dest) {
|
| // do nothing, just allow copy
|
| }
|
| };
|
| @@ -12700,7 +12700,7 @@ TEST(CopyablePersistent) {
|
| CHECK_EQ(initial_handles + 3, globals->global_handles_count());
|
| }
|
| // Verify autodispose
|
| -// CHECK_EQ(initial_handles, globals->global_handles_count());
|
| + CHECK_EQ(initial_handles, globals->global_handles_count());
|
| }
|
|
|
|
|
| @@ -13401,7 +13401,7 @@ TEST(SetJitCodeEventHandler) {
|
| v8::Utils::OpenHandle(*env->Global()->Get(v8_str("foo"))))->code());
|
|
|
| // Clear the compilation cache to get more wastage.
|
| - ISOLATE->compilation_cache()->Clear();
|
| + reinterpret_cast<i::Isolate*>(isolate)->compilation_cache()->Clear();
|
| }
|
|
|
| // Force code movement.
|
| @@ -19735,19 +19735,20 @@ TEST(StaticGetters) {
|
|
|
| TEST(IsolateEmbedderData) {
|
| v8::Isolate* isolate = v8::Isolate::GetCurrent();
|
| + i::Isolate* i_isolate = reinterpret_cast<i::Isolate*>(isolate);
|
| CHECK_EQ(NULL, isolate->GetData());
|
| - CHECK_EQ(NULL, ISOLATE->GetData());
|
| + CHECK_EQ(NULL, i_isolate->GetData());
|
| static void* data1 = reinterpret_cast<void*>(0xacce55ed);
|
| isolate->SetData(data1);
|
| CHECK_EQ(data1, isolate->GetData());
|
| - CHECK_EQ(data1, ISOLATE->GetData());
|
| + CHECK_EQ(data1, i_isolate->GetData());
|
| static void* data2 = reinterpret_cast<void*>(0xdecea5ed);
|
| - ISOLATE->SetData(data2);
|
| + i_isolate->SetData(data2);
|
| CHECK_EQ(data2, isolate->GetData());
|
| - CHECK_EQ(data2, ISOLATE->GetData());
|
| - ISOLATE->TearDown();
|
| + CHECK_EQ(data2, i_isolate->GetData());
|
| + i_isolate->TearDown();
|
| CHECK_EQ(data2, isolate->GetData());
|
| - CHECK_EQ(data2, ISOLATE->GetData());
|
| + CHECK_EQ(data2, i_isolate->GetData());
|
| }
|
|
|
|
|
|
|