'use strict';
const body = function(nqp, isMain) {

const HLL=nqp.getHLL("nqp");
var wval0,
wval1,
wval2,
wval3,
wval4,
wval5;
var cuid1 = new nqp.CodeRef("<mainline>","1"),
cuid2 = new nqp.CodeRef("hll-config","2"),
cuid3 = new nqp.CodeRef("","3"),
cuid4 = new nqp.CodeRef("","4"),
cuid5 = new nqp.CodeRef("","5"),
cuids = [cuid1,cuid2,cuid3,cuid4,cuid5];
cuid1.setInfo(null,/*async*/ function cuid1(caller_ctx,_NAMED) {
var TMP1,
TMP2,
TMP3,
TMP4,
TMP5,
TMP6,
TMP7,
TMP8,
TMP9,
TMP10,
TMP11,
TMP12;
var p6$____lowered__lex__5$local = nqp.Null,
p6$ctxsave$local = nqp.Null,
p6$____lowered__lex__4$local;
var ctx1 = new nqp.Ctx(caller_ctx, this.getOuterCtx(), this);
ctx1.$$hll = nqp.getHLL("nqp");
ctx1["GLOBALish"] = wval0;
ctx1["$?PACKAGE"] = wval0;
ctx1["EXPORT"] = wval1;
if (_NAMED !== null) {nqp.noNamed(_NAMED)}
p6$____lowered__lex__4$local = nqp.slurpyPos(HLL, arguments, 2);
TMP1 = cuid2.closureCtx(ctx1);
TMP11 = cuid3.closureCtx(ctx1);
TMP12 = cuid4.closureCtx(ctx1);
(ctx1["&hll-config"] = TMP1);
TMP2 = (p6$ctxsave$local = (ctx1.lookupDynamic("$\u002ACTXSAVE")));
;
if ((/*await*/ (/*await*/ new nqp.NQPInt(((p6$ctxsave$local === nqp.Null) ? 1 : 0)).$$decont(ctx1)).$$toBool(ctx1))) {
} else {
TMP3 = (/*await*/ (/*await*/ p6$ctxsave$local.$$decont(ctx1)).$$can(ctx1,"ctxsave"));
if ((/*await*/ (/*await*/ new nqp.NQPInt(TMP3).$$decont(ctx1)).$$toBool(ctx1))) {
/*await*/ (/*await*/ p6$ctxsave$local.$$decont(ctx1))["p6$ctxsave"](ctx1,null,p6$ctxsave$local);
} else {
}
}
TMP4 = (/*await*/ nqp.retval(HLL, /*await*/ (/*await*/ wval2.$$decont(ctx1))["p6$new"](ctx1,null,wval2)));
TMP5 = (p6$____lowered__lex__5$local = (TMP4));
;
/*await*/ (/*await*/ p6$____lowered__lex__5$local.$$decont(ctx1))["p6$language"](ctx1,null,p6$____lowered__lex__5$local,new nqp.NativeStrArg("perl6"));
/*await*/ (/*await*/ p6$____lowered__lex__5$local.$$decont(ctx1))["p6$parsegrammar"](ctx1,null,p6$____lowered__lex__5$local,wval3);
/*await*/ (/*await*/ p6$____lowered__lex__5$local.$$decont(ctx1))["p6$parseactions"](ctx1,null,p6$____lowered__lex__5$local,wval4);
/*await*/ (/*await*/ p6$____lowered__lex__5$local.$$decont(ctx1))["p6$addstage"](ctx1,{"before":new nqp.NativeStrArg("ast")},p6$____lowered__lex__5$local,new nqp.NativeStrArg("syntaxcheck"));
/*await*/ (/*await*/ p6$____lowered__lex__5$local.$$decont(ctx1))["p6$addstage"](ctx1,{"after":new nqp.NativeStrArg("ast")},p6$____lowered__lex__5$local,new nqp.NativeStrArg("optimize"));
TMP6 = nqp.hash();
p6$____lowered__lex__5$local.$$bindattr(wval5, "%!cli-options", TMP6);
p6$____lowered__lex__5$local.$$bindattr(wval5, "$!user_progname", nqp.op.gethllsym("perl6","progname"));
/*await*/ (/*await*/ p6$____lowered__lex__5$local.$$decont(ctx1))["p6$set_language_version"](ctx1,null,p6$____lowered__lex__5$local,new nqp.NativeStrArg("6.d"));
TMP7 = (/*await*/ nqp.retval(HLL, /*await*/ (/*await*/ p6$____lowered__lex__5$local.$$decont(ctx1))["p6$config"](ctx1,null,p6$____lowered__lex__5$local)));
/*await*/ (/*await*/ ctx1["&hll-config"].$$decont(ctx1)).$$call(ctx1,null,TMP7);
TMP8 = (/*await*/ nqp.retval(HLL, /*await*/ (/*await*/ p6$____lowered__lex__5$local.$$decont(ctx1))["p6$config"](ctx1,null,p6$____lowered__lex__5$local)));
nqp.op.bindhllsym("perl6","$COMPILER_CONFIG",TMP8);
TMP9 = nqp.list(HLL,[]);
nqp.op.bindhllsym("perl6","@END_PHASERS",TMP9);
nqp.op.bindhllsym("perl6","$!ARGITER",new nqp.NQPInt((0)));
TMP10 = nqp.hash();
TMP10.content.set("uncaught_control", TMP11);
TMP10.content.set("uncaught_exception", TMP12);
nqp.op.sethllconfig("perl6",TMP10);
return nqp.Null;
},{"GLOBALish": 0,"$?PACKAGE": 0,"EXPORT": 0,"&hll-config": 0},{"GLOBALish":0,"$?PACKAGE":0,"EXPORT":1},null,-1);
cuid2.setInfo(cuid1,/*async*/ function cuid2(caller_ctx,_NAMED,param3) {
var TMP1,
TMP2;
var p6$____lowered__lex__1$local;
var ctx2 = new nqp.Ctx(caller_ctx, this.getOuterCtx(), this);
if (_NAMED !== null) {nqp.noNamed(_NAMED)}
if (arguments.length > 3) nqp.tooManyPos(arguments.length, 3);if (arguments.length < 3) nqp.tooFewPos(arguments.length, 3);p6$____lowered__lex__1$local = nqp.arg(HLL, param3);
p6$____lowered__lex__1$local.$$bindkey("implementation",new nqp.NQPStr("Rakudo"));
p6$____lowered__lex__1$local.$$bindkey("version",new nqp.NQPStr("2018.03-1433-g602ca5bd3"));
p6$____lowered__lex__1$local.$$bindkey("release-number",new nqp.NQPStr(""));
p6$____lowered__lex__1$local.$$bindkey("codename",new nqp.NQPStr(""));
p6$____lowered__lex__1$local.$$bindkey("language-version",new nqp.NQPStr("6.d"));
TMP1 = nqp.list(HLL,[new nqp.NQPStr("6.c"),new nqp.NQPStr("6.d"),new nqp.NQPStr("6.d.PREVIEW")]);
p6$____lowered__lex__1$local.$$bindkey("can-language-versions",TMP1);
p6$____lowered__lex__1$local.$$bindkey("prefix",new nqp.NQPStr(""));
p6$____lowered__lex__1$local.$$bindkey("libdir",new nqp.NQPStr(""));
TMP2 = p6$____lowered__lex__1$local.$$bindkey("source-digest",new nqp.NQPStr("907e209148676a368121c7c2ca5cdab8b5c77c66"));
return TMP2;
},{},null,null,543);
cuid3.setInfo(cuid1,/*async*/ function cuid3(caller_ctx,_NAMED,param5) {
var TMP1,
TMP2;
var p6$____lowered__lex__2$local;
var ctx4 = new nqp.Ctx(caller_ctx, this.getOuterCtx(), this);
if (_NAMED !== null) {nqp.noNamed(_NAMED)}
if (arguments.length > 3) nqp.tooManyPos(arguments.length, 3);if (arguments.length < 3) nqp.tooFewPos(arguments.length, 3);p6$____lowered__lex__2$local = nqp.arg(HLL, param5);
TMP1 = nqp.op.getcomp("perl6");
TMP2 = (/*await*/ nqp.retval(HLL, /*await*/ (/*await*/ TMP1.$$decont(ctx4))["p6$handle-control"](ctx4,null,TMP1,p6$____lowered__lex__2$local)));
return TMP2;
},{},null,null,1378);
cuid4.setInfo(cuid1,/*async*/ function cuid4(caller_ctx,_NAMED,param7) {
var TMP1,
TMP2;
var p6$____lowered__lex__3$local;
var ctx6 = new nqp.Ctx(caller_ctx, this.getOuterCtx(), this);
if (_NAMED !== null) {nqp.noNamed(_NAMED)}
if (arguments.length > 3) nqp.tooManyPos(arguments.length, 3);if (arguments.length < 3) nqp.tooFewPos(arguments.length, 3);p6$____lowered__lex__3$local = nqp.arg(HLL, param7);
TMP1 = nqp.op.getcomp("perl6");
TMP2 = (/*await*/ nqp.retval(HLL, /*await*/ (/*await*/ TMP1.$$decont(ctx6))["p6$handle-exception"](ctx6,null,TMP1,p6$____lowered__lex__3$local)));
return TMP2;
},{},null,null,1485);
cuid5.setInfo(null,/*async*/ function cuid5(caller_ctx,_NAMED) {
var TMP1;
var p6$ARGS$local;
var ctx8 = new nqp.Ctx(caller_ctx, this.getOuterCtx(), this);
if (_NAMED !== null) {nqp.noNamed(_NAMED)}
p6$ARGS$local = nqp.slurpyPos(HLL, arguments, 2);
TMP1 = (/*await*/ nqp.retval(HLL, /*await*/ (/*await*/ cuid1.$$decont(ctx8)).$$apply([ctx8,null].concat((p6$ARGS$local).$$flatArgs()))));
return TMP1;
},{},null,null,-1);
return nqp.run(/*async*/ function() {
var ctxWithPath = new nqp.Ctx(null, null, null);
ctxWithPath['$*LOADBYTECODE_FROM'] = module;
TMP1 = nqp.op.gethllsym("nqp", "ModuleLoader");
if (TMP1 === nqp.Null) {
TMP2 = (/*await*/ nqp.op.loadbytecode(ctxWithPath,"ModuleLoader"));
TMP1 = new nqp.NQPStr(TMP2);
}
TMP3 = (/*await*/ nqp.retval(HLL, /*await*/ (/*await*/ nqp.op.gethllsym("nqp", "ModuleLoader").$$decont(ctxWithPath))["p6$load_setting"](ctxWithPath,null,nqp.op.gethllsym("nqp", "ModuleLoader"),new nqp.NativeStrArg("NQPCORE"))));
nqp.op.forceouterctx(cuid1,TMP3);
/*await*/ (/*await*/ nqp.op.gethllsym("nqp", "ModuleLoader").$$decont(ctxWithPath))["p6$load_module"](ctxWithPath,null,nqp.op.gethllsym("nqp", "ModuleLoader"),new nqp.NativeStrArg("NQPP6QRegex"));
/*await*/ (/*await*/ nqp.op.gethllsym("nqp", "ModuleLoader").$$decont(ctxWithPath))["p6$load_module"](ctxWithPath,null,nqp.op.gethllsym("nqp", "ModuleLoader"),new nqp.NativeStrArg("Perl6::Grammar"));
/*await*/ (/*await*/ nqp.op.gethllsym("nqp", "ModuleLoader").$$decont(ctxWithPath))["p6$load_module"](ctxWithPath,null,nqp.op.gethllsym("nqp", "ModuleLoader"),new nqp.NativeStrArg("Perl6::Actions"));
/*await*/ (/*await*/ nqp.op.gethllsym("nqp", "ModuleLoader").$$decont(ctxWithPath))["p6$load_module"](ctxWithPath,null,nqp.op.gethllsym("nqp", "ModuleLoader"),new nqp.NativeStrArg("Perl6::Compiler"));
var p6$conflicts$local = nqp.Null;
var sh = nqp.createArray([nqp.null_s,"P6opaque","Chunk","C9D01894134F2E1BF34F99A175EA700F3805AE6E-1","/home/pmurias/kudo/nqp/gen/js/stage1/QASTCompiler.nqp","DWIMYNameMangling","HLL","JavaScriptBackend","1ECDA6197B47632CEE0C2030738927395EE0E570-1","/home/pmurias/kudo/nqp/gen/js/stage2/NQPHLL.nqp","NQPMatch","F39C373EA89314B7335379E2A140CA5CE656A331-1","/home/pmurias/kudo/nqp/gen/js/stage2/QRegex.nqp","NQPMatchRole","NQPRegex","NQPRegexMethod","QAST","QASTWithMatch","QRegex","RegexCompiler","SerializeOnce","SerializedBytes","Shim","Perl6","STDActions","508C840BDDF3E71DE353316C6722FE53EDE08FDE-0","gen/js/Actions.nqp","startstops","A882BD6224DE26449B137B8D8C82EC80AADA1A24-0","gen/js/Grammar.nqp","startstop","stop","STD","DEFAULT","__6MODEL_CORE__","core SC","GLOBALish","EXPORT","Actions","Backend","CommandLine","Compiler","Grammar","World","BVal","4B4F1B925D57CF3E794541B119D3989E13100D4A-1","/home/pmurias/kudo/nqp/gen/js/stage2/QASTNode.nqp","Block","Children","CompUnit","CompileTimeValue","CompilerJS","IVal","InlinePlaceholder","NVal","Node","NodeList","Op","OperationsJS","ParamTypeCheck","Regex","RegexCursorType","SVal","SpecialArg","Stmt","Stmts","Unquote","VM","Var","VarWithFallback","WVal","Want","NFA","Optimizer","051457A441581CF5E88F123F312358D06F7E8713-1","/home/pmurias/kudo/nqp/gen/js/stage2/NQPP6QRegex.nqp","P6Regex","P5Regex","Pod","5A30556AD737738083080CBFD53809F4FA5B67E5-0","gen/js/Pod.nqp","QActions","RegexActions","P5RegexActions","PodActions","ModuleLoaderVMConfig","9F54A4192A489A38742467146D4C947D440CA40E-0","gen/js/ModuleLoader.nqp","ModuleLoader","017E0ABAA910A8E0151A055254CA62004ECABC11-0","gen/js/World.nqp","QGrammar","RegexGrammar","P5RegexGrammar","PodGrammar","91E649B25AA6AB57D2FC39A7B3246B4EDEBA6A28-0","gen/js/Optimizer.nqp","AFA5FCDB0C724828C1BA023B1AC075449B785CAA-0","gen/js/Compiler.nqp","1FB2F2CB299A27FAC8E909757A0F5F8C0B2ECADF-1","/home/pmurias/kudo/nqp/gen/js/stage2/NQPP5QRegex.nqp"]);
var sc = nqp.op.createsc("50DCD84F463813D2BC1390BD881FDCE66AC88896-0");
var code_refs = nqp.createArray([]);
p6$conflicts$local = nqp.list(HLL, []);
nqp.op.deserialize(HLL, "F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QJgACMAgAQFEAAjBKAUBSAAIwcAFAUwACMIIBQFQAAjCJAUBVAAIwAwCgWAACMAgAoCsAAjADALAqAAIwRgBQWwACMJMDUFwAAjA3BFBdAAIwXgRQXgACMGUEUEkAAjBMAMApAAIwAwDQCoGCAogED4GBgYGCgICAgYGAgJCOCoUmAAIwYQDgKQACMKAA4CoAAjAFAOArAAIwAwDgCoGCAo4ED4GBgYGCgICAgYGAgAAAAAAAAAAAAQAAAAAAAAACAAAAAAAAAAAAYIAAAAAAAwAAAAYAAAAEAAAABgAAAAUAAAAGAAAABgAAAAYAAAAAAGCABgAAAAAAYIAMAAAAAABggBIAAAAAAGCAGAAAAAAAYIAeAAAABwAAACQAAAAAAGCAJAAAAAAAYIAqAAAAJAAHgQqBJQAHgQqBIQAHgQqBBgAHgQqBEAAHgQqBEgAHgQqBFwAHgQqBTQAHgQqB",sc,sh,code_refs,p6$conflicts$local,cuids,function() {wval0 = nqp.wval("50DCD84F463813D2BC1390BD881FDCE66AC88896-0",0)
wval1 = nqp.wval("50DCD84F463813D2BC1390BD881FDCE66AC88896-0",1)
wval2 = nqp.wval("AFA5FCDB0C724828C1BA023B1AC075449B785CAA-0",3)
wval3 = nqp.wval("A882BD6224DE26449B137B8D8C82EC80AADA1A24-0",70)
wval4 = nqp.wval("508C840BDDF3E71DE353316C6722FE53EDE08FDE-0",8)
wval5 = nqp.wval("1ECDA6197B47632CEE0C2030738927395EE0E570-1",155)
});
nqp.op.scsetdesc(sc,"src/vm/js/load-compiler.nqp");
if ((/*await*/ (/*await*/ new nqp.NQPInt(p6$conflicts$local.$$elems()).$$decont(null)).$$toBool(null))) {
(/*await*/ null.die("Repossession conflicts occurred during deserialization"));
} else {
}
var TMP1,
TMP2,
TMP3,
TMP4,
TMP5;
TMP4 = cuid1.closureCtx(null);
TMP5 = cuid5.closureCtx(null);
nqp.setCodeRefHLL(cuids, HLL, __filename, "src/vm/js/load-compiler.nqp");
/*await*/ TMP5.$$apply([nqp.loaderCtx, null].concat(nqp.args(isMain)));
}, isMain);
};
if (require.main === module) {body(require("nqp-runtime"), true);} else {module.exports = body;};//# sourceMappingURL=load-compiler.js.map