Home
last modified time | relevance | path

Searched refs:lexicalScope (Results 1 – 25 of 89) sorted by relevance

1234

/dports/databases/mongodb36/mongodb-src-r3.6.23/src/third_party/mozjs-45/extract/js/src/vm/
H A DInterpreter-inl.h267 scope == &cx->global()->lexicalScope() || in SetNameOperation()
295 MOZ_ASSERT(CheckLexicalNameConflict(cx, lexicalScope, varObj, name)); in DefLexicalOperation()
312 Rooted<ClonedBlockObject*> lexicalScope(cx, lexicalScopeArg); in DefLexicalOperation()
315 lexicalScope == &cx->global()->lexicalScope() && varObj == cx->global()); in DefLexicalOperation()
317 return DefLexicalOperation(cx, lexicalScope, varObj, name, attrs); in DefLexicalOperation()
325 lexicalScopeArg == &cx->global()->lexicalScope()); in InitGlobalLexicalOperation()
327 Rooted<ClonedBlockObject*> lexicalScope(cx, lexicalScopeArg); in InitGlobalLexicalOperation()
328 RootedShape shape(cx, lexicalScope->lookup(cx, script->getName(pc))); in InitGlobalLexicalOperation()
330 lexicalScope->setSlot(shape->slot(), value); in InitGlobalLexicalOperation()
355 Rooted<ClonedBlockObject*> lexicalScope(cx); in DefVarOperation()
[all …]
H A DXdr.cpp121 RootedObject staticLexical(cx(), &cx()->global()->lexicalScope().staticBlock()); in codeFunction()
135 RootedObject staticLexical(cx(), &cx()->global()->lexicalScope().staticBlock()); in codeScript()
H A DScopeObject.cpp296 RootedObject globalLexical(cx, &global->lexicalScope()); in createHollowForDebug()
384 RootedObject globalLexical(cx, &cx->global()->lexicalScope()); in create()
928 RootedObject globalLexical(cx, &global->lexicalScope()); in createHollowForDebug()
2996 ScopeIter si(cx, &cx->global()->lexicalScope(), &cx->global()->lexicalScope().staticBlock()); in GetDebugScopeForGlobalLexicalScope()
3135 js::CheckLexicalNameConflict(JSContext* cx, Handle<ClonedBlockObject*> lexicalScope, in CheckLexicalNameConflict() argument
3141 if ((shape = lexicalScope->lookup(cx, name))) { in CheckLexicalNameConflict()
3164 js::CheckVarNameConflict(JSContext* cx, Handle<ClonedBlockObject*> lexicalScope, in CheckVarNameConflict() argument
3167 if (Shape* shape = lexicalScope->lookup(cx, name)) { in CheckVarNameConflict()
3200 Handle<ClonedBlockObject*> lexicalScope, in CheckGlobalDeclarationConflicts() argument
3214 if (!CheckVarNameConflict(cx, lexicalScope, name)) in CheckGlobalDeclarationConflicts()
[all …]
H A DInterpreter.cpp222 obj = &obj->global().lexicalScope(); in GetNameOperation()
2077 scopeChain.set(&REGS.fp()->global().lexicalScope()); in Interpret()
2450 ClonedBlockObject* lexicalScope = &cx->global()->lexicalScope(); in Interpret() local
2451 PUSH_COPY(lexicalScope->thisValue()); in Interpret()
3164 ClonedBlockObject* lexicalScope; in Interpret() local
3166 lexicalScope = &REGS.fp()->extensibleLexicalScope(); in Interpret()
3168 lexicalScope = &cx->global()->lexicalScope(); in Interpret()
3253 ClonedBlockObject* lexicalScope; in Interpret() local
3256 lexicalScope = &REGS.fp()->extensibleLexicalScope(); in Interpret()
3259 lexicalScope = &cx->global()->lexicalScope(); in Interpret()
[all …]
H A DScopeObject.h1460 bool CheckVarNameConflict(JSContext* cx, Handle<ClonedBlockObject*> lexicalScope,
1463 bool CheckLexicalNameConflict(JSContext* cx, Handle<ClonedBlockObject*> lexicalScope,
1467 Handle<ClonedBlockObject*> lexicalScope,
/dports/misc/py-onnx/onnx-1.10.2/onnx/test/cpp/
H A Dfunction_context_test.cc112 LexicalScopeContext lexicalScope; in TEST() local
117 check_function(fnProto, checkerCtx, lexicalScope); in TEST()
174 LexicalScopeContext lexicalScope; in TEST() local
179 check_function(fnProto, checkerCtx, lexicalScope); in TEST()
H A Dfunction_verify_test.cc228 LexicalScopeContext lexicalScope; in TEST() local
233 check_function(*fnProto, checkerCtx, lexicalScope); in TEST()
/dports/databases/mongodb36/mongodb-src-r3.6.23/src/third_party/mozjs-45/extract/js/src/
H A Djscompartment.cpp527 RootedObject lexicalScope(cx, nonSyntacticLexicalScopes_->lookup(key)); in getOrCreateNonSyntacticLexicalScope() local
529 if (!lexicalScope) { in getOrCreateNonSyntacticLexicalScope()
530 lexicalScope = ClonedBlockObject::createNonSyntactic(cx, enclosingStatic, enclosingScope); in getOrCreateNonSyntacticLexicalScope()
531 if (!lexicalScope) in getOrCreateNonSyntacticLexicalScope()
533 if (!nonSyntacticLexicalScopes_->add(cx, key, lexicalScope)) in getOrCreateNonSyntacticLexicalScope()
537 return &lexicalScope->as<ClonedBlockObject>(); in getOrCreateNonSyntacticLexicalScope()
548 JSObject* lexicalScope = nonSyntacticLexicalScopes_->lookup(key); in getNonSyntacticLexicalScope() local
549 if (!lexicalScope) in getNonSyntacticLexicalScope()
551 return &lexicalScope->as<ClonedBlockObject>(); in getNonSyntacticLexicalScope()
/dports/databases/mongodb36/mongodb-src-r3.6.23/src/third_party/mozjs-45/extract/js/src/builtin/
H A DEval.cpp294 enclosing = &cx->global()->lexicalScope().staticBlock(); in EvalKernel()
420 RootedObject globalLexical(cx, &global->lexicalScope()); in IndirectEval()
461 Rooted<ScopeObject*> staticScope(cx, &globalRoot->lexicalScope().staticBlock()); in JS_FRIEND_API()
472 Rooted<ClonedBlockObject*> globalLexical(cx, &globalRoot->lexicalScope()); in JS_FRIEND_API()
/dports/lang/nim/nim-1.6.2/tests/macros/
H A Dtstructuredlogging.nim101 let lexicalScope = scopeHolders.lastScopeHolder.getImpl.actualBody
104 for k, v in bindings(lexicalScope, skip = 1):
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/
H A DGlobal.java1093 private final LexicalScope lexicalScope; field in Global
1166 this.lexicalScope = context.getEnv()._es6 ? new LexicalScope(this) : null; in Global()
2403 return lexicalScope;
2462 if (lexicalScope != null && isScope && !NashornCallSiteDescriptor.isApplyToCall(desc)) {
2463 if (lexicalScope.hasOwnProperty(name)) {
2464 return lexicalScope.findGetMethod(desc, request);
2484 if (lexicalScope != null && isScope) {
2485 final FindProperty find = lexicalScope.findProperty(key, false);
2497 if (lexicalScope != null && isScope) {
2499 if (lexicalScope.hasOwnProperty(name)) {
[all …]
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/
H A DGlobal.java1093 private final LexicalScope lexicalScope; field in Global
1166 this.lexicalScope = context.getEnv()._es6 ? new LexicalScope(this) : null; in Global()
2403 return lexicalScope;
2462 if (lexicalScope != null && isScope && !NashornCallSiteDescriptor.isApplyToCall(desc)) {
2463 if (lexicalScope.hasOwnProperty(name)) {
2464 return lexicalScope.findGetMethod(desc, request);
2484 if (lexicalScope != null && isScope) {
2485 final FindProperty find = lexicalScope.findProperty(key, false);
2497 if (lexicalScope != null && isScope) {
2499 if (lexicalScope.hasOwnProperty(name)) {
[all …]
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/
H A DGlobal.java1093 private final LexicalScope lexicalScope; field in Global
1166 this.lexicalScope = context.getEnv()._es6 ? new LexicalScope(this) : null; in Global()
2403 return lexicalScope;
2462 if (lexicalScope != null && isScope && !NashornCallSiteDescriptor.isApplyToCall(desc)) {
2463 if (lexicalScope.hasOwnProperty(name)) {
2464 return lexicalScope.findGetMethod(desc, request);
2484 if (lexicalScope != null && isScope) {
2485 final FindProperty find = lexicalScope.findProperty(key, false);
2497 if (lexicalScope != null && isScope) {
2499 if (lexicalScope.hasOwnProperty(name)) {
[all …]
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/
H A DGlobal.java1093 private final LexicalScope lexicalScope; field in Global
1166 this.lexicalScope = context.getEnv()._es6 ? new LexicalScope(this) : null; in Global()
2403 return lexicalScope;
2462 if (lexicalScope != null && isScope && !NashornCallSiteDescriptor.isApplyToCall(desc)) {
2463 if (lexicalScope.hasOwnProperty(name)) {
2464 return lexicalScope.findGetMethod(desc, request);
2484 if (lexicalScope != null && isScope) {
2485 final FindProperty find = lexicalScope.findProperty(key, false);
2497 if (lexicalScope != null && isScope) {
2499 if (lexicalScope.hasOwnProperty(name)) {
[all …]
/dports/java/openjdk14/jdk14u-jdk-14.0.2-12-1/src/jdk.scripting.nashorn/share/classes/jdk/nashorn/internal/objects/
H A DGlobal.java1093 private final LexicalScope lexicalScope; field in Global
1166 this.lexicalScope = context.getEnv()._es6 ? new LexicalScope(this) : null; in Global()
2403 return lexicalScope;
2462 if (lexicalScope != null && isScope && !NashornCallSiteDescriptor.isApplyToCall(desc)) {
2463 if (lexicalScope.hasOwnProperty(name)) {
2464 return lexicalScope.findGetMethod(desc, request);
2484 if (lexicalScope != null && isScope) {
2485 final FindProperty find = lexicalScope.findProperty(key, false);
2497 if (lexicalScope != null && isScope) {
2499 if (lexicalScope.hasOwnProperty(name)) {
[all …]
/dports/java/openjdk8/jdk8u-jdk8u312-b07.1/nashorn/src/jdk/nashorn/internal/objects/
H A DGlobal.java935 private final LexicalScope lexicalScope; field in Global
1008 this.lexicalScope = context.getEnv()._es6 ? new LexicalScope(this) : null; in Global()
2106 return lexicalScope;
2165 if (lexicalScope != null && isScope && !NashornCallSiteDescriptor.isApplyToCall(desc)) {
2166 if (lexicalScope.hasOwnProperty(name)) {
2167 return lexicalScope.findGetMethod(desc, request, operator);
2187 if (lexicalScope != null && start != this && start.isScope()) {
2188 final FindProperty find = lexicalScope.findProperty(key, false);
2200 if (lexicalScope != null && isScope) {
2202 if (lexicalScope.hasOwnProperty(name)) {
[all …]
/dports/java/openjdk8-jre/jdk8u-jdk8u312-b07.1/nashorn/src/jdk/nashorn/internal/objects/
H A DGlobal.java935 private final LexicalScope lexicalScope; field in Global
1008 this.lexicalScope = context.getEnv()._es6 ? new LexicalScope(this) : null; in Global()
2106 return lexicalScope;
2165 if (lexicalScope != null && isScope && !NashornCallSiteDescriptor.isApplyToCall(desc)) {
2166 if (lexicalScope.hasOwnProperty(name)) {
2167 return lexicalScope.findGetMethod(desc, request, operator);
2187 if (lexicalScope != null && start != this && start.isScope()) {
2188 final FindProperty find = lexicalScope.findProperty(key, false);
2200 if (lexicalScope != null && isScope) {
2202 if (lexicalScope.hasOwnProperty(name)) {
[all …]
/dports/lang/spidermonkey60/firefox-60.9.0/js/src/frontend/
H A DFullParseHandler.h467 ParseNode* lexicalScope,
661 bool setupCatchScope(ParseNode* lexicalScope, ParseNode* catchName, in setupCatchScope() argument
672 lexicalScope->setScopeBody(catchpn); in setupCatchScope()
939 ParseNode* lexicalScope, in addCatchBlock() argument
945 addList(/* list = */ catchList, /* child = */ lexicalScope); in addCatchBlock()
946 lexicalScope->setScopeBody(catchpn); in addCatchBlock()
/dports/databases/mongodb36/mongodb-src-r3.6.23/src/third_party/mozjs-45/extract/js/src/jit/
H A DVMFunctions.cpp198 Rooted<ClonedBlockObject*> globalLexical(cx, &cx->global()->lexicalScope()); in DefGlobalLexical()
874 Rooted<ClonedBlockObject*> lexicalScope(cx, in InitGlobalOrEvalScopeObjects() local
876 if (!CheckGlobalDeclarationConflicts(cx, script, lexicalScope, varObj)) in InitGlobalOrEvalScopeObjects()
886 Rooted<ClonedBlockObject*> lexicalScope(cx, &cx->global()->lexicalScope()); in GlobalNameConflictsCheckFromIon() local
887 return CheckGlobalDeclarationConflicts(cx, script, lexicalScope, cx->global()); in GlobalNameConflictsCheckFromIon()
/dports/www/firefox-legacy/firefox-52.8.0esr/js/src/frontend/
H A DFoldConstants.cpp206 for (ParseNode* lexicalScope = catchList->pn_head; in ContainsHoistedDeclaration() local
207 lexicalScope; in ContainsHoistedDeclaration()
208 lexicalScope = lexicalScope->pn_next) in ContainsHoistedDeclaration()
210 MOZ_ASSERT(lexicalScope->isKind(PNK_LEXICALSCOPE)); in ContainsHoistedDeclaration()
212 ParseNode* catchNode = lexicalScope->pn_expr; in ContainsHoistedDeclaration()
H A DFullParseHandler.h660 inline MOZ_MUST_USE bool addCatchBlock(ParseNode* catchList, ParseNode* lexicalScope,
926 FullParseHandler::addCatchBlock(ParseNode* catchList, ParseNode* lexicalScope, in addCatchBlock() argument
932 catchList->append(lexicalScope); in addCatchBlock()
933 lexicalScope->setScopeBody(catchpn); in addCatchBlock()
/dports/databases/mongodb36/mongodb-src-r3.6.23/src/third_party/mozjs-45/extract/js/src/frontend/
H A DFoldConstants.cpp210 for (ParseNode* lexicalScope = catchList->pn_head; in ContainsHoistedDeclaration() local
211 lexicalScope; in ContainsHoistedDeclaration()
212 lexicalScope = lexicalScope->pn_next) in ContainsHoistedDeclaration()
214 MOZ_ASSERT(lexicalScope->isKind(PNK_LEXICALSCOPE)); in ContainsHoistedDeclaration()
216 ParseNode* catchNode = lexicalScope->pn_expr; in ContainsHoistedDeclaration()
H A DBytecodeCompiler.cpp772 Rooted<ScopeObject*> staticScope(cx, &cx->global()->lexicalScope().staticBlock()); in CompileModule()
872 Rooted<ScopeObject*> staticLexical(cx, &cx->global()->lexicalScope().staticBlock()); in CompileFunctionBody()
883 Rooted<ScopeObject*> staticLexical(cx, &cx->global()->lexicalScope().staticBlock()); in CompileStarGeneratorBody()
/dports/lang/spidermonkey78/firefox-78.9.0/js/src/frontend/
H A DBinASTParserPerTokenizer.cpp194 ParseContext::Scope lexicalScope(cx_, pc_, usedNames_); in parseLazyFunction() local
195 BINJS_TRY(lexicalScope.init(pc_)); in parseLazyFunction()
210 NewLexicalScopeData(cx_, lexicalScope, alloc_, pc_)); in parseLazyFunction()
H A DBinASTParser.cpp2569 ParseContext::Scope lexicalScope(cx_, pc_, usedNames_); in parseInterfaceEagerFunctionDeclaration() local
2570 BINJS_TRY(lexicalScope.init(pc_)); in parseInterfaceEagerFunctionDeclaration()
2581 NewLexicalScopeData(cx_, lexicalScope, alloc_, pc_)); in parseInterfaceEagerFunctionDeclaration()
2644 ParseContext::Scope lexicalScope(cx_, pc_, usedNames_); in parseInterfaceEagerFunctionExpression() local
2645 BINJS_TRY(lexicalScope.init(pc_)); in parseInterfaceEagerFunctionExpression()
2703 ParseContext::Scope lexicalScope(cx_, pc_, usedNames_); in parseInterfaceEagerGetter() local
2704 BINJS_TRY(lexicalScope.init(pc_)); in parseInterfaceEagerGetter()
2777 ParseContext::Scope lexicalScope(cx_, pc_, usedNames_); in parseInterfaceEagerMethod() local
2778 BINJS_TRY(lexicalScope.init(pc_)); in parseInterfaceEagerMethod()
2841 ParseContext::Scope lexicalScope(cx_, pc_, usedNames_); in parseInterfaceEagerSetter() local
[all …]

1234