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

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

Issue 8344082: Replace boolean indications of strict mode by an enum value. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Some fixes and adapted the preparser. Created 9 years, 2 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 4398 matching lines...) Expand 10 before | Expand all | Expand 10 after
4409 } 4409 }
4410 } 4410 }
4411 4411
4412 4412
4413 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) { 4413 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) {
4414 // Use the fast case closure allocation code that allocates in new 4414 // Use the fast case closure allocation code that allocates in new
4415 // space for nested functions that don't need literals cloning. 4415 // space for nested functions that don't need literals cloning.
4416 Handle<SharedFunctionInfo> shared_info = instr->shared_info(); 4416 Handle<SharedFunctionInfo> shared_info = instr->shared_info();
4417 bool pretenure = instr->hydrogen()->pretenure(); 4417 bool pretenure = instr->hydrogen()->pretenure();
4418 if (!pretenure && shared_info->num_literals() == 0) { 4418 if (!pretenure && shared_info->num_literals() == 0) {
4419 FastNewClosureStub stub( 4419 FastNewClosureStub stub(shared_info->strict_mode_flag());
4420 shared_info->strict_mode() ? kStrictMode : kNonStrictMode);
4421 __ mov(r1, Operand(shared_info)); 4420 __ mov(r1, Operand(shared_info));
4422 __ push(r1); 4421 __ push(r1);
4423 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 4422 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
4424 } else { 4423 } else {
4425 __ mov(r2, Operand(shared_info)); 4424 __ mov(r2, Operand(shared_info));
4426 __ mov(r1, Operand(pretenure 4425 __ mov(r1, Operand(pretenure
4427 ? factory()->true_value() 4426 ? factory()->true_value()
4428 : factory()->false_value())); 4427 : factory()->false_value()));
4429 __ Push(cp, r2, r1); 4428 __ Push(cp, r2, r1);
4430 CallRuntime(Runtime::kNewClosure, 3, instr); 4429 CallRuntime(Runtime::kNewClosure, 3, instr);
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
4666 ASSERT(osr_pc_offset_ == -1); 4665 ASSERT(osr_pc_offset_ == -1);
4667 osr_pc_offset_ = masm()->pc_offset(); 4666 osr_pc_offset_ = masm()->pc_offset();
4668 } 4667 }
4669 4668
4670 4669
4671 4670
4672 4671
4673 #undef __ 4672 #undef __
4674 4673
4675 } } // namespace v8::internal 4674 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.h ('k') | src/ast.h » ('j') | src/compiler.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698