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

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

Issue 477263002: ES6: Add support for method shorthand in object literals (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: merge Created 6 years, 3 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 | « src/mips/full-codegen-mips.cc ('k') | src/mips64/full-codegen-mips64.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 2012 the V8 project authors. All rights reserved.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
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 5461 matching lines...) Expand 10 before | Expand all | Expand 10 after
5472 } 5472 }
5473 } 5473 }
5474 5474
5475 5475
5476 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) { 5476 void LCodeGen::DoFunctionLiteral(LFunctionLiteral* instr) {
5477 DCHECK(ToRegister(instr->context()).is(cp)); 5477 DCHECK(ToRegister(instr->context()).is(cp));
5478 // Use the fast case closure allocation code that allocates in new 5478 // Use the fast case closure allocation code that allocates in new
5479 // space for nested functions that don't need literals cloning. 5479 // space for nested functions that don't need literals cloning.
5480 bool pretenure = instr->hydrogen()->pretenure(); 5480 bool pretenure = instr->hydrogen()->pretenure();
5481 if (!pretenure && instr->hydrogen()->has_no_literals()) { 5481 if (!pretenure && instr->hydrogen()->has_no_literals()) {
5482 FastNewClosureStub stub(isolate(), 5482 FastNewClosureStub stub(isolate(), instr->hydrogen()->strict_mode(),
5483 instr->hydrogen()->strict_mode(), 5483 instr->hydrogen()->kind());
5484 instr->hydrogen()->is_generator());
5485 __ li(a2, Operand(instr->hydrogen()->shared_info())); 5484 __ li(a2, Operand(instr->hydrogen()->shared_info()));
5486 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 5485 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
5487 } else { 5486 } else {
5488 __ li(a2, Operand(instr->hydrogen()->shared_info())); 5487 __ li(a2, Operand(instr->hydrogen()->shared_info()));
5489 __ li(a1, Operand(pretenure ? factory()->true_value() 5488 __ li(a1, Operand(pretenure ? factory()->true_value()
5490 : factory()->false_value())); 5489 : factory()->false_value()));
5491 __ Push(cp, a2, a1); 5490 __ Push(cp, a2, a1);
5492 CallRuntime(Runtime::kNewClosure, 3, instr); 5491 CallRuntime(Runtime::kNewClosure, 3, instr);
5493 } 5492 }
5494 } 5493 }
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
5927 __ li(at, scope_info); 5926 __ li(at, scope_info);
5928 __ Push(at, ToRegister(instr->function())); 5927 __ Push(at, ToRegister(instr->function()));
5929 CallRuntime(Runtime::kPushBlockContext, 2, instr); 5928 CallRuntime(Runtime::kPushBlockContext, 2, instr);
5930 RecordSafepoint(Safepoint::kNoLazyDeopt); 5929 RecordSafepoint(Safepoint::kNoLazyDeopt);
5931 } 5930 }
5932 5931
5933 5932
5934 #undef __ 5933 #undef __
5935 5934
5936 } } // namespace v8::internal 5935 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/full-codegen-mips.cc ('k') | src/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698