Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Updates to use MoarVM serialization improvements.
  • Loading branch information
jnthn committed Jan 11, 2014
1 parent 2b7389d commit 204c5ce
Show file tree
Hide file tree
Showing 12 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/vm/moar/QAST/QASTCompilerMAST.nqp
Expand Up @@ -537,7 +537,7 @@ class QAST::MASTCompiler {
method deserialization_code($sc, @code_ref_blocks, $repo_conf_res) {
# Serialize it.
my $sh := nqp::list_s();
my $serialized := nqp::serialize($sc, $sh);
my str $serialized := nqp::serialize($sc, $sh);

# Now it's serialized, pop this SC off the compiling SC stack.
nqp::popcompsc();
Expand Down Expand Up @@ -586,7 +586,9 @@ class QAST::MASTCompiler {
),
QAST::Op.new(
:op('deserialize'),
QAST::SVal.new( :value($serialized) ),
nqp::isnull_s($serialized)
?? QAST::Op.new( :op('null_s') )
!! QAST::SVal.new( :value($serialized) ),
QAST::Var.new( :name('cur_sc'), :scope('local') ),
$sh_ast,
QAST::Block.new( :blocktype('immediate'), $cr_past ),
Expand Down
Binary file modified src/vm/moar/stage0/MASTNodes.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/MASTOps.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/ModuleLoader.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/NQPCORE.setting.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/NQPHLL.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/NQPP6QRegex.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/QAST.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/QASTNode.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/QRegex.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/nqp.moarvm
Binary file not shown.
Binary file modified src/vm/moar/stage0/nqpmo.moarvm
Binary file not shown.

0 comments on commit 204c5ce

Please sign in to comment.