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

Side by Side Diff: src/crankshaft/mips/lithium-codegen-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/ia32/lithium-ia32.cc ('k') | src/crankshaft/mips/lithium-mips.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.7 1 // Copyright 2012 the V8 project authors. All rights reserved.7
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 5529 matching lines...) Expand 10 before | Expand all | Expand 10 after
5540 __ bind(&done); 5540 __ bind(&done);
5541 } 5541 }
5542 5542
5543 5543
5544 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) { 5544 void LCodeGen::DoStoreFrameContext(LStoreFrameContext* instr) {
5545 Register context = ToRegister(instr->context()); 5545 Register context = ToRegister(instr->context());
5546 __ sw(context, MemOperand(fp, StandardFrameConstants::kContextOffset)); 5546 __ sw(context, MemOperand(fp, StandardFrameConstants::kContextOffset));
5547 } 5547 }
5548 5548
5549 5549
5550 void LCodeGen::DoAllocateBlockContext(LAllocateBlockContext* instr) {
5551 Handle<ScopeInfo> scope_info = instr->scope_info();
5552 __ li(at, scope_info);
5553 __ Push(at, ToRegister(instr->function()));
5554 CallRuntime(Runtime::kPushBlockContext, instr);
5555 RecordSafepoint(Safepoint::kNoLazyDeopt);
5556 }
5557
5558
5559 #undef __ 5550 #undef __
5560 5551
5561 } // namespace internal 5552 } // namespace internal
5562 } // namespace v8 5553 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/ia32/lithium-ia32.cc ('k') | src/crankshaft/mips/lithium-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698