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

Side by Side Diff: src/crankshaft/ia32/lithium-codegen-ia32.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/hydrogen-instructions.cc ('k') | src/crankshaft/ia32/lithium-ia32.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_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/crankshaft/ia32/lithium-codegen-ia32.h" 7 #include "src/crankshaft/ia32/lithium-codegen-ia32.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 5376 matching lines...) Expand 10 before | Expand all | Expand 10 after
5387 __ bind(&done); 5387 __ bind(&done);
5388 } 5388 }
5389 5389
5390 5390
5391 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { 5391 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) {
5392 Register context = ToRegister(instr->context()); 5392 Register context = ToRegister(instr->context());
5393 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context); 5393 __ mov(Operand(ebp, StandardFrameConstants::kContextOffset), context);
5394 } 5394 }
5395 5395
5396 5396
5397 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) {
5398 Handle<ScopeInfo> scope_info = instr->scope_info();
5399 __ Push(scope_info);
5400 __ push(ToRegister(instr->function()));
5401 CallRuntime(Runtime::kPushBlockContext, instr);
5402 RecordSafepoint(Safepoint::kNoLazyDeopt);
5403 }
5404
5405
5406 #undef __ 5397 #undef __
5407 5398
5408 } // namespace internal 5399 } // namespace internal
5409 } // namespace v8 5400 } // namespace v8
5410 5401
5411 #endif // V8_TARGET_ARCH_IA32 5402 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen-instructions.cc ('k') | src/crankshaft/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698