• Home
  • Raw
  • Download

Lines Matching refs:v8

43 using ::v8::AccessorInfo;
44 using ::v8::Context;
45 using ::v8::Extension;
46 using ::v8::Function;
47 using ::v8::HandleScope;
48 using ::v8::Local;
49 using ::v8::Object;
50 using ::v8::ObjectTemplate;
51 using ::v8::Persistent;
52 using ::v8::Script;
53 using ::v8::String;
54 using ::v8::Value;
55 using ::v8::V8;
59 class KangarooThread : public v8::internal::Thread {
61 KangarooThread(v8::Isolate* isolate, in KangarooThread()
62 v8::Handle<v8::Context> context, int value) in KangarooThread()
69 v8::Locker locker(isolate_); in Run()
70 v8::Isolate::Scope isolate_scope(isolate_); in Run()
71 CHECK_EQ(isolate_, v8::internal::Isolate::Current()); in Run()
72 v8::HandleScope scope; in Run()
73 v8::Context::Scope context_scope(context_); in Run()
79 v8::Locker locker(isolate_); in Run()
80 v8::Isolate::Scope isolate_scope(isolate_); in Run()
81 v8::Context::Scope context_scope(context_); in Run()
82 v8::HandleScope scope; in Run()
91 v8::Isolate* isolate_;
92 Persistent<v8::Context> context_;
98 v8::Isolate* isolate = v8::Isolate::New(); in TEST()
99 Persistent<v8::Context> context; in TEST()
101 v8::Locker locker(isolate); in TEST()
102 v8::Isolate::Scope isolate_scope(isolate); in TEST()
103 v8::HandleScope handle_scope; in TEST()
104 context = v8::Context::New(); in TEST()
105 v8::Context::Scope context_scope(context); in TEST()
106 CHECK_EQ(isolate, v8::internal::Isolate::Current()); in TEST()
175 explicit IsolateLockingThreadWithLocalContext(v8::Isolate* isolate) in IsolateLockingThreadWithLocalContext()
181 v8::Locker locker(isolate_); in Run()
182 v8::Isolate::Scope isolate_scope(isolate_); in Run()
183 v8::HandleScope handle_scope; in Run()
185 CHECK_EQ(isolate_, v8::internal::Isolate::Current()); in Run()
189 v8::Isolate* isolate_;
213 v8::Isolate* isolate = v8::Isolate::New(); in TEST()
228 v8::Isolate* isolate = v8::Isolate::New(); in Run()
230 v8::Isolate::Scope isolate_scope(isolate); in Run()
231 v8::HandleScope handle_scope; in Run()
232 v8::Handle<v8::Context> context = v8::Context::New(); in Run()
233 v8::Context::Scope context_scope(context); in Run()
234 CHECK_EQ(isolate, v8::internal::Isolate::Current()); in Run()
259 explicit IsolateNestedLockingThread(v8::Isolate* isolate) in IsolateNestedLockingThread()
263 v8::Locker lock(isolate_); in Run()
264 v8::Isolate::Scope isolate_scope(isolate_); in Run()
265 v8::HandleScope handle_scope; in Run()
268 v8::Locker another_lock(isolate_); in Run()
272 v8::Locker another_lock(isolate_); in Run()
277 v8::Isolate* isolate_;
287 v8::Isolate* isolate = v8::Isolate::New(); in TEST()
298 SeparateIsolatesLocksNonexclusiveThread(v8::Isolate* isolate1, in SeparateIsolatesLocksNonexclusiveThread()
299 v8::Isolate* isolate2) in SeparateIsolatesLocksNonexclusiveThread()
305 v8::Locker lock(isolate1_); in Run()
306 v8::Isolate::Scope isolate_scope(isolate1_); in Run()
307 v8::HandleScope handle_scope; in Run()
316 v8::Isolate* isolate1_;
317 v8::Isolate* isolate2_;
327 v8::Isolate* isolate1 = v8::Isolate::New(); in TEST()
328 v8::Isolate* isolate2 = v8::Isolate::New(); in TEST()
342 v8::Isolate* isolate, v8::Handle<v8::Context> context) in LockIsolateAndCalculateFibSharedContextThread()
349 v8::Locker lock(isolate_); in Run()
350 v8::Isolate::Scope isolate_scope(isolate_); in Run()
352 v8::Context::Scope context_scope(context_); in Run()
356 v8::Isolate* isolate_;
357 Persistent<v8::Context> context_;
362 explicit LockerUnlockerThread(v8::Isolate* isolate) in LockerUnlockerThread()
368 v8::Locker lock(isolate_); in Run()
369 v8::Isolate::Scope isolate_scope(isolate_); in Run()
370 v8::HandleScope handle_scope; in Run()
371 v8::Handle<v8::Context> context = v8::Context::New(); in Run()
373 v8::Context::Scope context_scope(context); in Run()
378 v8::Unlocker unlocker(isolate_); in Run()
385 v8::Context::Scope context_scope(context); in Run()
391 v8::Isolate* isolate_;
402 v8::Isolate* isolate = v8::Isolate::New(); in TEST()
412 explicit LockTwiceAndUnlockThread(v8::Isolate* isolate) in LockTwiceAndUnlockThread()
418 v8::Locker lock(isolate_); in Run()
419 v8::Isolate::Scope isolate_scope(isolate_); in Run()
420 v8::HandleScope handle_scope; in Run()
421 v8::Handle<v8::Context> context = v8::Context::New(); in Run()
423 v8::Context::Scope context_scope(context); in Run()
427 v8::Locker second_lock(isolate_); in Run()
430 v8::Unlocker unlocker(isolate_); in Run()
438 v8::Context::Scope context_scope(context); in Run()
444 v8::Isolate* isolate_;
455 v8::Isolate* isolate = v8::Isolate::New(); in TEST()
465 LockAndUnlockDifferentIsolatesThread(v8::Isolate* isolate1, in LockAndUnlockDifferentIsolatesThread()
466 v8::Isolate* isolate2) in LockAndUnlockDifferentIsolatesThread()
473 Persistent<v8::Context> context1; in Run()
474 Persistent<v8::Context> context2; in Run()
475 v8::Locker lock1(isolate1_); in Run()
476 CHECK(v8::Locker::IsLocked(isolate1_)); in Run()
477 CHECK(!v8::Locker::IsLocked(isolate2_)); in Run()
479 v8::Isolate::Scope isolate_scope(isolate1_); in Run()
480 v8::HandleScope handle_scope; in Run()
481 context1 = v8::Context::New(); in Run()
483 v8::Context::Scope context_scope(context1); in Run()
487 v8::Locker lock2(isolate2_); in Run()
488 CHECK(v8::Locker::IsLocked(isolate1_)); in Run()
489 CHECK(v8::Locker::IsLocked(isolate2_)); in Run()
491 v8::Isolate::Scope isolate_scope(isolate2_); in Run()
492 v8::HandleScope handle_scope; in Run()
493 context2 = v8::Context::New(); in Run()
495 v8::Context::Scope context_scope(context2); in Run()
500 v8::Unlocker unlock1(isolate1_); in Run()
501 CHECK(!v8::Locker::IsLocked(isolate1_)); in Run()
502 CHECK(v8::Locker::IsLocked(isolate2_)); in Run()
503 v8::Isolate::Scope isolate_scope(isolate2_); in Run()
504 v8::HandleScope handle_scope; in Run()
505 v8::Context::Scope context_scope(context2); in Run()
514 v8::Isolate* isolate1_;
515 v8::Isolate* isolate2_;
520 v8::Isolate* isolate1 = v8::Isolate::New(); in TEST()
521 v8::Isolate* isolate2 = v8::Isolate::New(); in TEST()
531 LockUnlockLockThread(v8::Isolate* isolate, v8::Handle<v8::Context> context) in LockUnlockLockThread()
538 v8::Locker lock1(isolate_); in Run()
539 CHECK(v8::Locker::IsLocked(isolate_)); in Run()
540 CHECK(!v8::Locker::IsLocked()); in Run()
542 v8::Isolate::Scope isolate_scope(isolate_); in Run()
543 v8::HandleScope handle_scope; in Run()
544 v8::Context::Scope context_scope(context_); in Run()
548 v8::Unlocker unlock1(isolate_); in Run()
549 CHECK(!v8::Locker::IsLocked(isolate_)); in Run()
550 CHECK(!v8::Locker::IsLocked()); in Run()
552 v8::Locker lock2(isolate_); in Run()
553 v8::Isolate::Scope isolate_scope(isolate_); in Run()
554 v8::HandleScope handle_scope; in Run()
555 CHECK(v8::Locker::IsLocked(isolate_)); in Run()
556 CHECK(!v8::Locker::IsLocked()); in Run()
557 v8::Context::Scope context_scope(context_); in Run()
564 v8::Isolate* isolate_;
565 v8::Persistent<v8::Context> context_;
575 v8::Isolate* isolate = v8::Isolate::New(); in TEST()
576 Persistent<v8::Context> context; in TEST()
578 v8::Locker locker_(isolate); in TEST()
579 v8::Isolate::Scope isolate_scope(isolate); in TEST()
580 v8::HandleScope handle_scope; in TEST()
581 context = v8::Context::New(); in TEST()
592 explicit LockUnlockLockDefaultIsolateThread(v8::Handle<v8::Context> context) in LockUnlockLockDefaultIsolateThread()
598 v8::Locker lock1; in Run()
600 v8::HandleScope handle_scope; in Run()
601 v8::Context::Scope context_scope(context_); in Run()
605 v8::Unlocker unlock1; in Run()
607 v8::Locker lock2; in Run()
608 v8::HandleScope handle_scope; in Run()
609 v8::Context::Scope context_scope(context_); in Run()
616 v8::Persistent<v8::Context> context_;
626 Persistent<v8::Context> context; in TEST()
628 v8::Locker locker_; in TEST()
629 v8::HandleScope handle_scope; in TEST()
630 context = v8::Context::New(); in TEST()
642 v8::Isolate* isolate = v8::Isolate::New(); in TEST()
644 v8::Locker lock(isolate); in TEST()
645 v8::Isolate::Scope isolate_scope(isolate); in TEST()
646 v8::HandleScope handle_scope; in TEST()
647 v8::Persistent<Context> context = v8::Context::New(); in TEST()
648 v8::Context::Scope context_scope(context); in TEST()
649 v8::Handle<String> source = v8::String::New("1+1"); in TEST()
650 v8::Handle<Script> script = v8::Script::Compile(source); in TEST()
651 v8::Handle<Value> result = script->Run(); in TEST()
652 v8::String::AsciiValue ascii(result); in TEST()
674 v8::Isolate* isolate = v8::Isolate::New(); in Run()
676 v8::Isolate::Scope isolate_scope(isolate); in Run()
678 v8::ExtensionConfiguration extensions(count_, extension_names_); in Run()
679 v8::Persistent<v8::Context> context = v8::Context::New(&extensions); in Run()
698 v8::RegisterExtension(new v8::Extension("test0", in TEST()
700 v8::RegisterExtension(new v8::Extension("test1", in TEST()
702 v8::RegisterExtension(new v8::Extension("test2", in TEST()
704 v8::RegisterExtension(new v8::Extension("test3", in TEST()
706 v8::RegisterExtension(new v8::Extension("test4", in TEST()
708 v8::RegisterExtension(new v8::Extension("test5", in TEST()
710 v8::RegisterExtension(new v8::Extension("test6", in TEST()
712 v8::RegisterExtension(new v8::Extension("test7", in TEST()