Lines Matching full:isolate
33 #include "isolate.h"
404 v8::internal::Isolate::Current()->compilation_cache()->Clear();
426 i::Isolate::Current()->compilation_cache()->Clear();
452 i::Isolate::Current()->compilation_cache()->Clear();
478 i::Isolate::Current()->compilation_cache()->Clear();
683 i::Isolate::Current()->compilation_cache()->Clear();
704 i::Isolate::Current()->compilation_cache()->Clear();
751 i::Isolate::Current()->compilation_cache()->Clear();
3153 CHECK(!i::Isolate::Current()->has_scheduled_exception());
7874 ASSERT(!i::Isolate::Current()->has_pending_exception());
10182 CHECK(!i::Isolate::Current()->has_pending_exception());
10183 CHECK(!i::Isolate::Current()->has_scheduled_exception());
10684 i::Isolate::Current()->heap()->EnsureHeapIsIterable();
12032 i::Isolate::Current()->global_context()->global()->SetProperty(
14023 i::Isolate::Current()->stack_guard()->real_climit());
14976 CHECK(v8::Isolate::GetCurrent() != NULL);
14977 v8::Isolate* isolate = v8::Isolate::GetCurrent();
14978 CHECK(reinterpret_cast<i::Isolate*>(isolate)->IsDefaultIsolate());
14983 v8::Isolate* current_isolate = v8::Isolate::GetCurrent();
14984 v8::Isolate* isolate = v8::Isolate::New();
14985 CHECK(isolate != NULL);
14986 CHECK(!reinterpret_cast<i::Isolate*>(isolate)->IsDefaultIsolate());
14987 CHECK(current_isolate != isolate);
14988 CHECK(current_isolate == v8::Isolate::GetCurrent());
14992 isolate->Dispose();
15000 v8::Isolate* current_isolate = v8::Isolate::GetCurrent();
15001 CHECK(current_isolate != NULL); // Default isolate.
15008 // Default isolate is always, well, 'default current'.
15009 CHECK_EQ(v8::Isolate::GetCurrent(), current_isolate);
15010 // Still working since default isolate is auto-entering any thread
15011 // that has no isolate and attempts to execute V8 APIs.
15018 // Run some V8 code to trigger default isolate to become 'current'.
15023 v8::Isolate* isolate = v8::Isolate::GetCurrent();
15024 CHECK(reinterpret_cast<i::Isolate*>(isolate)->IsDefaultIsolate());
15026 isolate->Dispose();
15027 // It is not possible to dispose default isolate via Isolate API.
15036 // Enter new isolate.
15037 v8::Isolate* isolate = v8::Isolate::New();
15038 CHECK(isolate);
15039 isolate->Enter();
15045 // Run something in new isolate.
15049 isolate->Exit();
15051 // This runs automatically in default isolate.
15052 // Variables in another isolate should be not available.
15066 isolate->Dispose();
15070 // Check that default isolate still runs.
15075 v8::Isolate* isolate = v8::Isolate::New();
15076 CHECK(isolate);
15077 isolate->Enter();
15080 // Run something in this isolate.
15085 isolate->Dispose();
15091 // Run isolate 1.
15092 v8::Isolate* isolate1 = v8::Isolate::New();
15099 // Run something in new isolate.
15100 CompileRun("var foo = 'isolate 1';");
15101 ExpectString("function f() { return foo; }; f()", "isolate 1");
15104 // Run isolate 2.
15105 v8::Isolate* isolate2 = v8::Isolate::New();
15109 v8::Isolate::Scope iscope(isolate2);
15114 // Run something in new isolate.
15115 CompileRun("var foo = 'isolate 2';");
15116 ExpectString("function f() { return foo; }; f()", "isolate 2");
15122 // Now again in isolate 1
15123 ExpectString("function f() { return foo; }; f()", "isolate 1");
15128 // Run some stuff in default isolate.
15151 v8::Isolate::Scope iscope(isolate2);
15154 ExpectString("function f() { return foo; }; f()", "isolate 2");
15160 ExpectString("function f() { return foo; }; f()", "isolate 1");
15164 v8::Isolate::Scope iscope(isolate2);
15182 // Check that default isolate still runs.
15190 static int CalcFibonacci(v8::Isolate* isolate, int limit) {
15191 v8::Isolate::Scope isolate_scope(isolate);
15207 IsolateThread(v8::Isolate* isolate, int fib_limit)
15209 isolate_(isolate),
15220 v8::Isolate* isolate_;
15226 v8::Isolate* isolate1 = v8::Isolate::New();
15227 v8::Isolate* isolate2 = v8::Isolate::New();
15236 int result1 = CalcFibonacci(v8::Isolate::GetCurrent(), 21);
15237 int result2 = CalcFibonacci(v8::Isolate::GetCurrent(), 12);
15254 v8::Isolate* isolate = v8::Isolate::New();
15257 v8::Isolate::Scope isolate_scope(isolate);
15266 v8::Isolate::Scope isolate_scope(isolate);
16014 i::MapCache::cast(i::Isolate::Current()->context()->map_cache());
16019 i::Isolate::Current()->heap()->CollectAllGarbage(true);
16020 { i::Object* raw_map_cache = i::Isolate::Current()->context()->map_cache();
16021 if (raw_map_cache != i::Isolate::Current()->heap()->undefined_value()) {