• Home
  • Raw
  • Download

Lines Matching refs:context

57       Local<Context> context = Local<Context>::New(isolate, context_);  in ~DeclarationContext()  local
58 context->Exit(); in ~DeclarationContext()
81 virtual void PostInitializeContext(Handle<Context> context) {} in PostInitializeContext() argument
128 Local<Context> context = Context::New(isolate, in InitializeIfNeeded() local
132 context_.Reset(isolate, context); in InitializeIfNeeded()
133 context->Enter(); in InitializeIfNeeded()
135 PostInitializeContext(context); in InitializeIfNeeded()
181 DeclarationContext* context = GetInstance(info.Data()); in HandleGet() local
182 context->get_count_++; in HandleGet()
183 info.GetReturnValue().Set(context->Get(key)); in HandleGet()
191 DeclarationContext* context = GetInstance(info.Data()); in HandleSet() local
192 context->set_count_++; in HandleSet()
193 info.GetReturnValue().Set(context->Set(key, value)); in HandleSet()
200 DeclarationContext* context = GetInstance(info.Data()); in HandleQuery() local
201 context->query_count_++; in HandleQuery()
202 info.GetReturnValue().Set(context->Query(key)); in HandleQuery()
234 { DeclarationContext context; in TEST() local
235 context.Check("var x; x", in TEST()
242 { DeclarationContext context; in TEST() local
243 context.Check("var x = 0; x", in TEST()
250 { DeclarationContext context; in TEST() local
251 context.Check("function x() { }; x", in TEST()
258 { DeclarationContext context; in TEST() local
259 context.Check("const x; x", in TEST()
266 { DeclarationContext context; in TEST() local
268 context.Check("const x = 0; x", in TEST()
290 { PresentPropertyContext context; in TEST() local
291 context.Check("var x; x", in TEST()
298 { PresentPropertyContext context; in TEST() local
299 context.Check("var x = 0; x", in TEST()
306 { PresentPropertyContext context; in TEST() local
307 context.Check("function x() { }; x", in TEST()
314 { PresentPropertyContext context; in TEST() local
315 context.Check("const x; x", in TEST()
322 { PresentPropertyContext context; in TEST() local
323 context.Check("const x = 0; x", in TEST()
346 { AbsentPropertyContext context; in TEST() local
347 context.Check("var x; x", in TEST()
354 { AbsentPropertyContext context; in TEST() local
355 context.Check("var x = 0; x", in TEST()
362 { AbsentPropertyContext context; in TEST() local
363 context.Check("function x() { }; x", in TEST()
370 { AbsentPropertyContext context; in TEST() local
371 context.Check("const x; x", in TEST()
378 { AbsentPropertyContext context; in TEST() local
379 context.Check("const x = 0; x", in TEST()
386 { AbsentPropertyContext context; in TEST() local
387 context.Check("if (false) { var x = 0 }; x", in TEST()
437 { AppearingPropertyContext context; in TEST() local
438 context.Check("var x; x", in TEST()
445 { AppearingPropertyContext context; in TEST() local
446 context.Check("var x = 0; x", in TEST()
453 { AppearingPropertyContext context; in TEST() local
454 context.Check("function x() { }; x", in TEST()
461 { AppearingPropertyContext context; in TEST() local
462 context.Check("const x; x", in TEST()
469 { AppearingPropertyContext context; in TEST() local
470 context.Check("const x = 0; x", in TEST()
530 { ReappearingPropertyContext context; in TEST() local
531 context.Check("const x; var x = 0", in TEST()
561 { ExistsInPrototypeContext context; in TEST() local
562 context.Check("this.x = 87; this.x", in TEST()
569 { ExistsInPrototypeContext context; in TEST() local
570 context.Check("var x; x", in TEST()
577 { ExistsInPrototypeContext context; in TEST() local
578 context.Check("var x = 0; x", in TEST()
585 { ExistsInPrototypeContext context; in TEST() local
586 context.Check("const x; x", in TEST()
593 { ExistsInPrototypeContext context; in TEST() local
594 context.Check("const x = 0; x", in TEST()
623 { AbsentInPrototypeContext context; in TEST() local
624 context.Check("if (false) { var x = 0; }; x", in TEST()
648 virtual void PostInitializeContext(Handle<Context> context) { in PostInitializeContext() argument
649 Local<Object> global_object = context->Global(); in PostInitializeContext()
670 { ExistsInHiddenPrototypeContext context; in TEST() local
671 context.Check("var x; x", in TEST()
678 { ExistsInHiddenPrototypeContext context; in TEST() local
679 context.Check("var x = 0; x", in TEST()
686 { ExistsInHiddenPrototypeContext context; in TEST() local
687 context.Check("function x() { }; x", in TEST()
695 { ExistsInHiddenPrototypeContext context; in TEST() local
696 context.Check("const x; x", in TEST()
704 { ExistsInHiddenPrototypeContext context; in TEST() local
705 context.Check("const x = 0; x", in TEST()
764 { SimpleContext context; in TEST() local
765 context.Check("var x = 1; x", in TEST()
767 context.Check("var x = 2; x", in TEST()
769 context.Check("const x = 3; x", in TEST()
771 context.Check("const x = 4; x", in TEST()
773 context.Check("x = 5; x", in TEST()
775 context.Check("var x = 6; x", in TEST()
777 context.Check("this.x", in TEST()
779 context.Check("function x() { return 7 }; x()", in TEST()
783 { SimpleContext context; in TEST() local
784 context.Check("const x = 1; x", in TEST()
786 context.Check("var x = 2; x", // assignment ignored in TEST()
788 context.Check("const x = 3; x", in TEST()
790 context.Check("x = 4; x", // assignment ignored in TEST()
792 context.Check("var x = 5; x", // assignment ignored in TEST()
794 context.Check("this.x", in TEST()
796 context.Check("function x() { return 7 }; x", in TEST()
819 SimpleContext context; in TEST() local
820 context.Check(decs[i], EXPECT_RESULT, Number::New(1)); in TEST()
821 context.Check(decs[i+1], EXPECT_RESULT, Number::New(1)); in TEST()
825 if (i/3 < 2) context.Check(decs[i+2], EXPECT_RESULT, Number::New(1)); in TEST()
856 SimpleContext context; in TEST() local
857 context.Check(firsts[i], EXPECT_RESULT, Number::New(1)); in TEST()
861 context.Check(seconds[j], in TEST()