Fix bug in pretenuring function literals from optimized code.
Review URL: http://codereview.chromium.org/6368074 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@6610 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
d86e430630
commit
26287403ae
@ -3508,7 +3508,7 @@ void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) {
|
||||
// Use the fast case closure allocation code that allocates in new
|
||||
// space for nested functions that don't need literals cloning.
|
||||
Handle<SharedFunctionInfo> shared_info = instr->shared_info();
|
||||
bool pretenure = !instr->hydrogen()->pretenure();
|
||||
bool pretenure = instr->hydrogen()->pretenure();
|
||||
if (shared_info->num_literals() == 0 && !pretenure) {
|
||||
FastNewClosureStub stub;
|
||||
__ mov(r1, Operand(shared_info));
|
||||
|
@ -3406,7 +3406,7 @@ void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) {
|
||||
// Use the fast case closure allocation code that allocates in new
|
||||
// space for nested functions that don't need literals cloning.
|
||||
Handle<SharedFunctionInfo> shared_info = instr->shared_info();
|
||||
bool pretenure = !instr->hydrogen()->pretenure();
|
||||
bool pretenure = instr->hydrogen()->pretenure();
|
||||
if (shared_info->num_literals() == 0 && !pretenure) {
|
||||
FastNewClosureStub stub;
|
||||
__ push(Immediate(shared_info));
|
||||
|
Loading…
Reference in New Issue
Block a user