| Index: src/full-codegen/x64/full-codegen-x64.cc
|
| diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc
|
| index 1e9aca0d9ac164b3061e1729d7ee6f9deb32d1de..e63d3cd07a3be26842423251e5827134a87b0027 100644
|
| --- a/src/full-codegen/x64/full-codegen-x64.cc
|
| +++ b/src/full-codegen/x64/full-codegen-x64.cc
|
| @@ -1124,31 +1124,6 @@ void FullCodeGenerator::VisitForInStatement(ForInStatement* stmt) {
|
| }
|
|
|
|
|
| -void FullCodeGenerator::EmitNewClosure(Handle<SharedFunctionInfo> info,
|
| - bool pretenure) {
|
| - // Use the fast case closure allocation code that allocates in new
|
| - // space for nested functions that don't need literals cloning. If
|
| - // we're running with the --always-opt or the --prepare-always-opt
|
| - // flag, we need to use the runtime function so that the new function
|
| - // we are creating here gets a chance to have its code optimized and
|
| - // doesn't just get a copy of the existing unoptimized code.
|
| - if (!FLAG_always_opt &&
|
| - !FLAG_prepare_always_opt &&
|
| - !pretenure &&
|
| - scope()->is_function_scope() &&
|
| - info->num_literals() == 0) {
|
| - FastNewClosureStub stub(isolate(), info->language_mode(), info->kind());
|
| - __ Move(rbx, info);
|
| - __ CallStub(&stub);
|
| - } else {
|
| - __ Push(info);
|
| - __ CallRuntime(pretenure ? Runtime::kNewClosure_Tenured
|
| - : Runtime::kNewClosure);
|
| - }
|
| - context()->Plug(rax);
|
| -}
|
| -
|
| -
|
| void FullCodeGenerator::EmitSetHomeObject(Expression* initializer, int offset,
|
| FeedbackVectorSlot slot) {
|
| DCHECK(NeedsHomeObject(initializer));
|
|
|