-
-
Save stefanpenner/ee38f2ab7057f5172569 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var foo = { | |
hi: 'asdf' | |
}; | |
function bro(key) { | |
return foo[key]; | |
} | |
bro('hi'); | |
%optimizeFunctionOnNextCall(bro); | |
bro('hi'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var foo = { | |
hi: 'asdf' | |
}; | |
function bro(key) { | |
return foo[key]; | |
} | |
bro('hi'); | |
bro(1); | |
%optimizeFunctionOnNextCall(bro); | |
bro('hi'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var foo = { | |
hi: 'asdf' | |
}; | |
function bro(key) { | |
return foo[key]; | |
} | |
bro('hi'); | |
bro(true); // apparently this provides sufficient type information for opt, but nothing else? | |
%optimizeFunctionOnNextCall(bro); | |
bro('hi'); |
the bailout:
;;; deoptimize: Insufficient type feedback for keyed load
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
node stable doesn't bail, node master (latest) and v8 master bail.