Lines Matching refs:specs
1058 function gen_labels($f, $spec, $kind, $prolog, &$specs, $switch_labels = array()) { argument
1068 $specs[$num] = "$label";
1074 $specs[$num] .= " | SPEC_RULE_OP1";
1079 $specs[$num] .= " | SPEC_RULE_OP2";
1084 $specs[$num] .= " | ".implode("|", $flags);
1087 $opcodes[$num]['spec_code'] = $specs[$num];
1088 unset($specs[$num]);
1317 $specs[$num + 1] = "$label";
1321 function gen_specs($f, $spec, $kind, $prolog, $specs) { argument
1322 $lastdef = array_pop($specs);
1324 foreach ($specs as $num => $def) {
1410 $specs = $dsc["spec"];
1412 if (isset($specs["OP_DATA"])) {
1413 $op_data_specs = $specs["OP_DATA"];
1414 $specs["OP_DATA"] = array();
1417 $specs["OP_DATA"][] = $op_data;
1422 $f = function($specs) use (&$f) {
1423 $spec = key($specs);
1424 $top = array_shift($specs);
1425 if ($specs) {
1426 $next = $f($specs);
1438 return $f($specs);
1747 gen_labels($f, $spec, $kind, $prolog."\t\t", $specs);
1750 gen_specs($f, $spec, $kind, $prolog."\t", $specs);
1837 gen_labels($f, $spec, $kind, $prolog."\t", $specs, $switch_labels);
1840 gen_specs($f, $spec, $kind, $prolog."\t", $specs);