--
v8-users mailing list
v8-u...@googlegroups.com
http://groups.google.com/group/v8-users
I would use internal fields for that. I would create the JS wrappers from templates specifying a number of internal fields and use Set/GetPointerInInternalField to get and set them. Internal fields are faster to access than hidden properties.
--
----- stephan beal
http://wanderinghorse.net/home/stephan/
--
On Tue, May 3, 2011 at 8:52 AM, Stephan Beal <sgb...@googlemail.com> wrote:
i think Charles is wanting to tie data to non-template-generated values like Numbers. From what i understand, v8 does not have the API to do this. Nor ...
Object::GetIdentityHash should give you what you want to do the mapping externally. If you want to add external data after the fact in the object itself hidden values is the way to go. :)
--
into Ruby like Context and FunctionTemplate. That said, being able to
get a stable, unique object id for all values would be killer. You
mentioned that it would be relatively straightforward to roll your
own? Any chance you could elaborate?
The type testing and casting is implemented in terms of the actual JavaScript values and therefore Date and RegExp objects can be casted to Object even though the API inheritance hierarchy does not reflect the fact that they are objects.
On Tue, May 3, 2011 at 9:51 PM, Mads Sig Ager <ag...@chromium.org> wrote:The type testing and casting is implemented in terms of the actual JavaScript values and therefore Date and RegExp objects can be casted to Object even though the API inheritance hierarchy does not reflect the fact that they are objects.Does "can be casted" mean that such casts are legal, or that it "just happens to work"?
--
--
What I can do to solve the problem?
I am trying to generate the solution file and project files
for 64bits under windows7 (64bits), as a first step
to restore the state of my work (that will require
additions to project files to adapt my changes
to V8).
I have not updated my instalation (yet) for 32bits,
but I suspect that it will go same way...
Please, I need help to solve actual problem
(to build clean sln and project files)
without loosing too much time... I used to build
v8 under this platform daily and now, I am not
sure if the process can be continued, because
if the project are built without merge with local
version, it will overwrite my work on each svn
update+build.
Any help or guide to solve the problem will be appreciated!
thanks in advance,
Ale.
p.d. failure report follows
---------------------------------------------------------------------------------------
Updating projects from gyp files...
Traceback (most recent call last):
File "build/gyp_v8", line 145, in <module>
sys.exit(gyp.main(args))
File ".\build\gyp\pylib\gyp\__init__.py", line 445, in main
options.circular_check)
File ".\build\gyp\pylib\gyp\__init__.py", line 84, in Load
depth, generator_input_info, check, circular_check)
File ".\build\gyp\pylib\gyp\input.py", line 2174, in Load
depth, check)
File ".\build\gyp\pylib\gyp\input.py", line 379, in LoadTargetBuildFile
build_file_path)
File ".\build\gyp\pylib\gyp\input.py", line 940, in
ProcessVariablesAndConditi
onsInDict
ProcessConditionsInDict(the_dict, is_late, variables, build_file)
File ".\build\gyp\pylib\gyp\input.py", line 817, in
ProcessConditionsInDict
variables, build_file)
File ".\build\gyp\pylib\gyp\input.py", line 959, in
ProcessVariablesAndConditi
onsInDict
build_file, key)
File ".\build\gyp\pylib\gyp\input.py", line 959, in
ProcessVariablesAndConditi
onsInDict
build_file, key)
File ".\build\gyp\pylib\gyp\input.py", line 959, in
ProcessVariablesAndConditi
onsInDict
build_file, key)
File ".\build\gyp\pylib\gyp\input.py", line 940, in
ProcessVariablesAndConditi
onsInDict
ProcessConditionsInDict(the_dict, is_late, variables, build_file)
File ".\build\gyp\pylib\gyp\input.py", line 798, in
ProcessConditionsInDict
if eval(ast_code, {'__builtins__': None}, variables):
File "<string>", line 1, in <module>
NameError: name 'msvs_multi_core_compile' is not defined while evaluating
condit
ion 'msvs_multi_core_compile' in build\all.gyp while trying to load
build\all.gy
p
---------------------------------------------------------------------------------------