Performance? Homogenicity?
I saw there's a "general" rule that the runtime lib should be written in 
JS, but this is a border line case. Especially marshaling functions like 
function GetStackFrames(raw_stack) {
  var frames = new InternalArray();
  var sloppy_frames = raw_stack[0];
  for (var i = 1; i < raw_stack.length; i += 4) {
    var recv = raw_stack[i];
    var fun = raw_stack[i + 1];
    var code = raw_stack[i + 2];
    var pc = raw_stack[i + 3];
    var pos = %FunctionGetPositionForOffset(code, pc);
    sloppy_frames--;
    frames.push(new CallSite(recv, fun, pos, (sloppy_frames < 0)));
  }
  return frames;
}




On Monday, 21 July 2014 14:10:59 UTC+3, Andreas Rossberg wrote:
>
> On 21 July 2014 12:58, Refael Ackermann <[email protected] <javascript:>> 
> wrote: 
> > Does anyone know why messages.js exists as a JavaScript file, and is not 
> > implemented in C++? 
>
> Why should it be, when it's easier to self-host in JS itself? 
>
> /Andreas 
>

-- 
-- 
v8-users mailing list
[email protected]
http://groups.google.com/group/v8-users
--- 
You received this message because you are subscribed to the Google Groups 
"v8-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to