Optimize calls to evals. Most of the time there is no reason to
authorager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 4 Jun 2010 10:19:19 +0000 (10:19 +0000)
committerager@chromium.org <ager@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Fri, 4 Jun 2010 10:19:19 +0000 (10:19 +0000)
commit723bed310538973e5a6ce1ad352ccd503e6d9efd
tree4449530927dc026767838105091701943f573157
parented90d5648b0744a5331e6c6ec047c0a4966b5073
Optimize calls to evals. Most of the time there is no reason to
perform a context lookup in the runtime system for the 'eval'
function. Instead load the 'eval' function from the global context in
generated code if it is not shadowed.

Will port to other platforms as a separate change.

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@4794 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/ia32/codegen-ia32.cc
src/runtime.cc
src/runtime.h
test/mjsunit/eval.js