FYI
I've added a runtime call that lets you write to the log from our
natives files. Here's an example from string.js:
%_Log('regexp', 'regexp-replace,%0r,%1S', [search, subject]);
The first argument specifies that no code should be generated for the
%_Log call unless v8 is called with --log-regexp. The second argument
is the format of the string to log; %0r means 'the 0th argument, which
is a regexp' and %1S mean 'the 1st argument, which is a string, with
information about the string's type' (see all the possible formats in
Logger::LogRuntime). The last argument is an array containing the
arguments to the format string.
-- Christian
--~--~---------~--~----~------------~-------~--~----~
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
-~----------~----~----~----~------~----~------~--~---