Arquivos
hhvm/hphp/test/slow/compilation/exitspill.php
T
mwilliams f72684f07a Fix spilling bug in linearscan
If we reload a value in an exit trace that was spilled
in the main trace, a comment tells us that we reload it at the
start of the exit trace. In fact the reload was inserted at the
start of the main trace.

Fixed the code to match the comment.
2013-07-02 11:46:26 -07:00

29 linhas
360 B
PHP

<?php
define('FIZ', 32);
class X {
const FOO = 1;
const BAR = FIZ;
const BAZ = FIZ;
const BOO = FIZ;
const BIZ = FIZ;
const FIZ = FIZ;
}
function foo($a, $b) {
var_dump($a, $b);
}
function f() { return FIZ; }
function test() {
foo(f(), array(X::FOO, X::BAZ,
X::BAR, X::BAZ,
X::BOO, X::BIZ));
}
test();