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

Side by Side Diff: src/crankshaft/mips/lithium-mips.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/mips/lithium-mips.h ('k') | src/crankshaft/mips64/lithium-codegen-mips64.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 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 #include "src/crankshaft/mips/lithium-mips.h" 5 #include "src/crankshaft/mips/lithium-mips.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #if V8_TARGET_ARCH_MIPS 9 #if V8_TARGET_ARCH_MIPS
10 10
(...skipping 2531 matching lines...) Expand 10 before | Expand all | Expand 10 after
2542 return AssignPointerMap(result); 2542 return AssignPointerMap(result);
2543 } 2543 }
2544 2544
2545 2545
2546 2546
2547 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) { 2547 LInstruction* LChunkBuilder::DoStoreFrameContext(HStoreFrameContext* instr) {
2548 LOperand* context = UseRegisterAtStart(instr->context()); 2548 LOperand* context = UseRegisterAtStart(instr->context());
2549 return new(zone()) LStoreFrameContext(context); 2549 return new(zone()) LStoreFrameContext(context);
2550 } 2550 }
2551 2551
2552
2553 LInstruction* LChunkBuilder::DoAllocateBlockContext(
2554 HAllocateBlockContext* instr) {
2555 LOperand* context = UseFixed(instr->context(), cp);
2556 LOperand* function = UseRegisterAtStart(instr->function());
2557 LAllocateBlockContext* result =
2558 new(zone()) LAllocateBlockContext(context, function);
2559 return MarkAsCall(DefineFixed(result, cp), instr);
2560 }
2561
2562 } // namespace internal 2552 } // namespace internal
2563 } // namespace v8 2553 } // namespace v8
2564 2554
2565 #endif // V8_TARGET_ARCH_MIPS 2555 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/crankshaft/mips/lithium-mips.h ('k') | src/crankshaft/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698