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
130 Local<Context> context = Context::New(isolate, in InitializeIfNeeded() local
134 context_.Reset(isolate, context); in InitializeIfNeeded()
135 context->Enter(); in InitializeIfNeeded()
137 PostInitializeContext(context); in InitializeIfNeeded()
183 DeclarationContext* context = GetInstance(info.Data()); in HandleGet() local
184 context->get_count_++; in HandleGet()
185 info.GetReturnValue().Set(context->Get(key)); in HandleGet()
193 DeclarationContext* context = GetInstance(info.Data()); in HandleSet() local
194 context->set_count_++; in HandleSet()
195 info.GetReturnValue().Set(context->Set(key, value)); in HandleSet()
202 DeclarationContext* context = GetInstance(info.Data()); in HandleQuery() local
203 context->query_count_++; in HandleQuery()
204 info.GetReturnValue().Set(context->Query(key)); in HandleQuery()
236 { DeclarationContext context; in TEST() local
237 context.Check("var x; x", in TEST()
242 { DeclarationContext context; in TEST() local
243 context.Check("var x = 0; x", in TEST()
249 { DeclarationContext context; in TEST() local
250 context.Check("function x() { }; x", in TEST()
257 { DeclarationContext context; in TEST() local
258 context.Check("const x; x", in TEST()
263 { DeclarationContext context; in TEST() local
264 context.Check("const x = 0; x", in TEST()
286 { AbsentPropertyContext context; in TEST() local
287 context.Check("var x; x", in TEST()
292 { AbsentPropertyContext context; in TEST() local
293 context.Check("var x = 0; x", in TEST()
299 { AbsentPropertyContext context; in TEST() local
300 context.Check("function x() { }; x", in TEST()
307 { AbsentPropertyContext context; in TEST() local
308 context.Check("const x; x", in TEST()
313 { AbsentPropertyContext context; in TEST() local
314 context.Check("const x = 0; x", in TEST()
319 { AbsentPropertyContext context; in TEST() local
320 context.Check("if (false) { var x = 0 }; x", in TEST()
368 { AppearingPropertyContext context; in TEST() local
369 context.Check("var x; x", in TEST()
374 { AppearingPropertyContext context; in TEST() local
375 context.Check("var x = 0; x", in TEST()
381 { AppearingPropertyContext context; in TEST() local
382 context.Check("function x() { }; x", in TEST()
389 { AppearingPropertyContext context; in TEST() local
390 context.Check("const x; x", in TEST()
395 { AppearingPropertyContext context; in TEST() local
396 context.Check("const x = 0; x", in TEST()
425 { ExistsInPrototypeContext context; in TEST() local
426 context.Check("this.x = 87; this.x", 0, 0, 1, EXPECT_RESULT, in TEST()
430 { ExistsInPrototypeContext context; in TEST() local
431 context.Check("var x; x", in TEST()
438 { ExistsInPrototypeContext context; in TEST() local
439 context.Check("var x = 0; x", in TEST()
446 { ExistsInPrototypeContext context; in TEST() local
447 context.Check("const x; x", in TEST()
454 { ExistsInPrototypeContext context; in TEST() local
455 context.Check("const x = 0; x", in TEST()
483 { AbsentInPrototypeContext context; in TEST() local
484 context.Check("if (false) { var x = 0; }; x", in TEST()
508 virtual void PostInitializeContext(Handle<Context> context) { in PostInitializeContext() argument
509 Local<Object> global_object = context->Global(); in PostInitializeContext()
529 { ExistsInHiddenPrototypeContext context; in TEST() local
530 context.Check("var x; x", 0, 0, 0, EXPECT_RESULT, in TEST()
534 { ExistsInHiddenPrototypeContext context; in TEST() local
535 context.Check("var x = 0; x", 0, 0, 0, EXPECT_RESULT, in TEST()
539 { ExistsInHiddenPrototypeContext context; in TEST() local
540 context.Check("function x() { }; x", in TEST()
548 { ExistsInHiddenPrototypeContext context; in TEST() local
549 context.Check("const x; x", 0, 0, 0, EXPECT_RESULT, in TEST()
554 { ExistsInHiddenPrototypeContext context; in TEST() local
555 context.Check("const x = 0; x", 0, 0, 0, EXPECT_RESULT, in TEST()
612 { SimpleContext context; in TEST() local
613 context.Check("var x = 1; x", in TEST()
615 context.Check("var x = 2; x", in TEST()
617 context.Check("const x = 3; x", EXPECT_EXCEPTION); in TEST()
618 context.Check("const x = 4; x", EXPECT_EXCEPTION); in TEST()
619 context.Check("x = 5; x", in TEST()
621 context.Check("var x = 6; x", in TEST()
623 context.Check("this.x", in TEST()
625 context.Check("function x() { return 7 }; x()", in TEST()
629 { SimpleContext context; in TEST() local
630 context.Check("const x = 1; x", in TEST()
632 context.Check("var x = 2; x", // assignment ignored in TEST()
634 context.Check("const x = 3; x", EXPECT_EXCEPTION); in TEST()
635 context.Check("x = 4; x", // assignment ignored in TEST()
637 context.Check("var x = 5; x", // assignment ignored in TEST()
639 context.Check("this.x", in TEST()
641 context.Check("function x() { return 7 }; x", in TEST()
665 SimpleContext context; in TEST() local
666 context.Check(decs[i], EXPECT_RESULT, Number::New(isolate, 1)); in TEST()
667 context.Check(decs[i+1], EXPECT_RESULT, Number::New(isolate, 1)); in TEST()
672 context.Check(decs[i+2], EXPECT_RESULT, Number::New(isolate, 1)); in TEST()
704 SimpleContext context; in TEST() local
705 context.Check(firsts[i], EXPECT_RESULT, in TEST()
710 context.Check(seconds[j], in TEST()