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

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

Issue 6691003: Strict mode poision pills. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 9 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
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 3607 matching lines...) Expand 10 before | Expand all | Expand 10 after
3618 __ mov(FieldOperand(eax, size - kPointerSize), edx); 3618 __ mov(FieldOperand(eax, size - kPointerSize), edx);
3619 } 3619 }
3620 } 3620 }
3621 3621
3622 3622
3623 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) { 3623 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) {
3624 // Use the fast case closure allocation code that allocates in new 3624 // Use the fast case closure allocation code that allocates in new
3625 // space for nested functions that don't need literals cloning. 3625 // space for nested functions that don't need literals cloning.
3626 Handle<SharedFunctionInfo> shared_info = instr->shared_info(); 3626 Handle<SharedFunctionInfo> shared_info = instr->shared_info();
3627 bool pretenure = instr->hydrogen()->pretenure(); 3627 bool pretenure = instr->hydrogen()->pretenure();
3628 if (shared_info->num_literals() == 0 && !pretenure) { 3628 if (!pretenure && shared_info->num_literals() == 0 &&
3629 !shared_info->strict_mode()) {
3629 FastNewClosureStub stub; 3630 FastNewClosureStub stub;
3630 __ push(Immediate(shared_info)); 3631 __ push(Immediate(shared_info));
3631 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr, false); 3632 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr, false);
3632 } else { 3633 } else {
3633 __ push(Operand(ebp, StandardFrameConstants::kContextOffset)); 3634 __ push(Operand(ebp, StandardFrameConstants::kContextOffset));
3634 __ push(Immediate(shared_info)); 3635 __ push(Immediate(shared_info));
3635 __ push(Immediate(pretenure 3636 __ push(Immediate(pretenure
3636 ? Factory::true_value() 3637 ? Factory::true_value()
3637 : Factory::false_value())); 3638 : Factory::false_value()));
3638 CallRuntime(Runtime::kNewClosure, 3, instr, false); 3639 CallRuntime(Runtime::kNewClosure, 3, instr, false);
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
3870 ASSERT(osr_pc_offset_ == -1); 3871 ASSERT(osr_pc_offset_ == -1);
3871 osr_pc_offset_ = masm()->pc_offset(); 3872 osr_pc_offset_ = masm()->pc_offset();
3872 } 3873 }
3873 3874
3874 3875
3875 #undef __ 3876 #undef __
3876 3877
3877 } } // namespace v8::internal 3878 } } // namespace v8::internal
3878 3879
3879 #endif // V8_TARGET_ARCH_IA32 3880 #endif // V8_TARGET_ARCH_IA32
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698