Le 11/12/2012 16:10, Till Schneidereit a écrit :
b) Should the names of macros indicate how they're implemented or should they 
just look like other functions?
Just a quick explanation for this: the script that embeds self-hosted
JS invokes a Python script, builtins/macros.py, that replaces some
constructs such as IS_UNDEFINED by proper JS code. I.e., they've got
nothing to do with sweet.js or some other fancy thing.
I'm side-tracking a bit, what's the value of these macros instead of just functions? IIRC, small functions are inlined by the JIT. Or maybe functions cost too much until LazyBytecode [1] is fixed?

David

[1] https://bugzilla.mozilla.org/show_bug.cgi?id=678037
_______________________________________________
dev-tech-js-engine-internals mailing list
dev-tech-js-engine-internals@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-tech-js-engine-internals

Reply via email to