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

Side by Side Diff: src/crankshaft/x64/lithium-codegen-x64.cc

Issue 1702313002: [crankshaft] Remove the useless HAllocateBlockContext instruction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.cc ('k') | src/crankshaft/x64/lithium-x64.h » ('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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_X64 5 #if V8_TARGET_ARCH_X64
6 6
7 #include "src/crankshaft/x64/lithium-codegen-x64.h" 7 #include "src/crankshaft/x64/lithium-codegen-x64.h"
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 5568 matching lines...) Expand 10 before | Expand all | Expand 10 after
5579 __ bind(&done); 5579 __ bind(&done);
5580 } 5580 }
5581 5581
5582 5582
5583 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { 5583 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) {
5584 Register context = ToRegister(instr->context()); 5584 Register context = ToRegister(instr->context());
5585 __ movp(Operand(rbp, StandardFrameConstants::kContextOffset), context); 5585 __ movp(Operand(rbp, StandardFrameConstants::kContextOffset), context);
5586 } 5586 }
5587 5587
5588 5588
5589 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) {
5590 Handle<ScopeInfo> scope_info = instr->scope_info();
5591 __ Push(scope_info);
5592 __ Push(ToRegister(instr->function()));
5593 CallRuntime(Runtime::kPushBlockContext, instr);
5594 RecordSafepoint(Safepoint::kNoLazyDeopt);
5595 }
5596
5597
5598 #undef __ 5589 #undef __
5599 5590
5600 } // namespace internal 5591 } // namespace internal
5601 } // namespace v8 5592 } // namespace v8
5602 5593
5603 #endif // V8_TARGET_ARCH_X64 5594 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/crankshaft/ppc/lithium-ppc.cc ('k') | src/crankshaft/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698