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

Side by Side Diff: src/crankshaft/arm64/lithium-codegen-arm64.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/arm64/lithium-arm64.cc ('k') | src/crankshaft/hydrogen.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 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 #include "src/crankshaft/arm64/lithium-codegen-arm64.h" 5 #include "src/crankshaft/arm64/lithium-codegen-arm64.h"
6 6
7 #include "src/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 5697 matching lines...) Expand 10 before | Expand all | Expand 10 after
5708 __ Bind(&done); 5708 __ Bind(&done);
5709 } 5709 }
5710 5710
5711 5711
5712 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { 5712 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) {
5713 Register context = ToRegister(instr->context()); 5713 Register context = ToRegister(instr->context());
5714 __ Str(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); 5714 __ Str(context, MemOperand(fp, StandardFrameConstants::kContextOffset));
5715 } 5715 }
5716 5716
5717 5717
5718 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) {
5719 Handle<ScopeInfo> scope_info = instr->scope_info();
5720 __ Push(scope_info);
5721 __ Push(ToRegister(instr->function()));
5722 CallRuntime(Runtime::kPushBlockContext, instr);
5723 RecordSafepoint(Safepoint::kNoLazyDeopt);
5724 }
5725
5726
5727 } // namespace internal 5718 } // namespace internal
5728 } // namespace v8 5719 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/arm64/lithium-arm64.cc ('k') | src/crankshaft/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698