Put direct code pointers into JSFunction objects. This is a first step
authorricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 11 Aug 2010 08:12:53 +0000 (08:12 +0000)
committerricow@chromium.org <ricow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Wed, 11 Aug 2010 08:12:53 +0000 (08:12 +0000)
commit36e5743674d1b66be62c96a98c024b2ad85456d2
tree4c119b424207cd6749f40143b7f2462897bdff62
parent6267578925979f1dc0ff471c05c6f13655d4ddb3
Put direct code pointers into JSFunction objects. This is a first step
in allowing more flexible compilation and to simplify builtins lookup.

This changes a number of places where code objects are assigned to
SharedFunctionInfo objects to also assign this code object to the
JSFunction. In addition, the code flushing is changed slightly to
accomodate this (we need to flush the code from functions pointing to
SharedFunctionInfo objects that has already been flushed).

Review URL: http://codereview.chromium.org/3120006

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@5233 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
18 files changed:
src/accessors.cc
src/arm/builtins-arm.cc
src/arm/codegen-arm.cc
src/arm/macro-assembler-arm.cc
src/bootstrapper.cc
src/factory.cc
src/handles.cc
src/heap.cc
src/ia32/builtins-ia32.cc
src/ia32/codegen-ia32.cc
src/ia32/macro-assembler-ia32.cc
src/objects-inl.h
src/objects.h
src/runtime.cc
src/serialize.h
src/x64/builtins-x64.cc
src/x64/codegen-x64.cc
src/x64/macro-assembler-x64.cc