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

Side by Side Diff: src/crankshaft/x87/lithium-codegen-x87.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/x64/lithium-x64.cc ('k') | src/crankshaft/x87/lithium-x87.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_X87 5 #if V8_TARGET_ARCH_X87
6 6
7 #include "src/crankshaft/x87/lithium-codegen-x87.h" 7 #include "src/crankshaft/x87/lithium-codegen-x87.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 5942 matching lines...) Expand 10 before | Expand all | Expand 10 after
5953 __ bind(&done); 5953 __ bind(&done);
5954 } 5954 }
5955 5955
5956 5956
5957 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { 5957 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) {
5958 Register context = ToRegister(instr->context()); 5958 Register context = ToRegister(instr->context());
5959 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context); 5959 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context);
5960 } 5960 }
5961 5961
5962 5962
5963 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) {
5964 Handle<ScopeInfo> scope_info = instr->scope_info();
5965 __ Push(scope_info);
5966 __ push(ToRegister(instr->function()));
5967 CallRuntime(Runtime::kPushBlockContext, instr);
5968 RecordSafepoint(Safepoint::kNoLazyDeopt);
5969 }
5970
5971
5972 #undef __ 5963 #undef __
5973 5964
5974 } // namespace internal 5965 } // namespace internal
5975 } // namespace v8 5966 } // namespace v8
5976 5967
5977 #endif // V8_TARGET_ARCH_X87 5968 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/crankshaft/x64/lithium-x64.cc ('k') | src/crankshaft/x87/lithium-x87.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698