Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: src/arm/lithium-codegen-arm.cc

Issue 6368074: Fix bug in pretenuring function literals from optimized code. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 3479 matching lines...) Expand 10 before | Expand all | Expand 10 after
3490 __ ldr(r3, FieldMemOperand(r1, size - kPointerSize)); 3490 __ ldr(r3, FieldMemOperand(r1, size - kPointerSize));
3491 __ str(r3, FieldMemOperand(r0, size - kPointerSize)); 3491 __ str(r3, FieldMemOperand(r0, size - kPointerSize));
3492 } 3492 }
3493 } 3493 }
3494 3494
3495 3495
3496 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) { 3496 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) {
3497 // Use the fast case closure allocation code that allocates in new 3497 // Use the fast case closure allocation code that allocates in new
3498 // space for nested functions that don't need literals cloning. 3498 // space for nested functions that don't need literals cloning.
3499 Handle<SharedFunctionInfo> shared_info = instr->shared_info(); 3499 Handle<SharedFunctionInfo> shared_info = instr->shared_info();
3500 bool pretenure = !instr->hydrogen()->pretenure(); 3500 bool pretenure = instr->hydrogen()->pretenure();
3501 if (shared_info->num_literals() == 0 && !pretenure) { 3501 if (shared_info->num_literals() == 0 && !pretenure) {
3502 FastNewClosureStub stub; 3502 FastNewClosureStub stub;
3503 __ mov(r1, Operand(shared_info)); 3503 __ mov(r1, Operand(shared_info));
3504 __ push(r1); 3504 __ push(r1);
3505 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 3505 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
3506 } else { 3506 } else {
3507 __ mov(r2, Operand(shared_info)); 3507 __ mov(r2, Operand(shared_info));
3508 __ mov(r1, Operand(pretenure 3508 __ mov(r1, Operand(pretenure
3509 ? Factory::true_value() 3509 ? Factory::true_value()
3510 : Factory::false_value())); 3510 : Factory::false_value()));
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
3682 3682
3683 3683
3684 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { 3684 void LCodeGen::DoOsrEntry(LOsrEntry* instr) {
3685 Abort("DoOsrEntry unimplemented."); 3685 Abort("DoOsrEntry unimplemented.");
3686 } 3686 }
3687 3687
3688 3688
3689 #undef __ 3689 #undef __
3690 3690
3691 } } // namespace v8::internal 3691 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ia32/lithium-codegen-ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698