Always set the callee's context when calling a function from optimized code.
authorjkummerow@chromium.org <jkummerow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 26 Jul 2012 12:49:08 +0000 (12:49 +0000)
committerjkummerow@chromium.org <jkummerow@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Thu, 26 Jul 2012 12:49:08 +0000 (12:49 +0000)
commit80c35c65223d38dc7cd3ecb2d94a7a7fef3c2700
treec9da573465d528076566239492d9d37edd3d68c1
parent1e5cf45e3a2eb844b01ae7d828665aa9ee830c11
Always set the callee's context when calling a function from optimized code.

This is necessary even for recursive calls because we're sharing optimized code among closures, which could call each other and have distinct contexts.

BUG=138887
TEST=mjsunit/regress/regress-crbug-138887

Review URL: https://chromiumcodereview.appspot.com/10834031

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@12201 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/arm/lithium-codegen-arm.cc
src/ia32/lithium-codegen-ia32.cc
src/mips/lithium-codegen-mips.cc
src/x64/lithium-codegen-x64.cc
test/mjsunit/regress/regress-crbug-138887.js [new file with mode: 0644]