Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[js] Implement nqp::backendconfig so that we can check the int size
  • Loading branch information
pmurias committed Oct 6, 2015
1 parent 48faa01 commit bd169fa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/vm/js/QAST/Compiler.nqp
Expand Up @@ -736,6 +736,10 @@ class QAST::OperationsJS {
add_simple_op('pushcompsc', $T_OBJ, [$T_OBJ], :sideffects);
add_simple_op('popcompsc', $T_OBJ, [], :sideffects);

# Misc ops

add_simple_op('backendconfig', $T_OBJ, []);

# Ops for NFA

add_simple_op('nfafromstatelist', $T_OBJ, [$T_OBJ, $T_OBJ], :sideffects);
Expand Down
6 changes: 6 additions & 0 deletions src/vm/js/nqp-runtime/core.js
Expand Up @@ -474,3 +474,9 @@ op.pushcompsc = function(sc) {
op.popcompsc = function(sc) {
return compilingSCs.pop();
};

op.backendconfig = function() {
var config = new Hash();
config.content.intvalsize = 4;
return config;
};

0 comments on commit bd169fa

Please sign in to comment.