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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 11773013: MIPS: Elide unnecessary context reload in generated stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/mips/lithium-mips.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 // 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 2442 matching lines...) Expand 10 before | Expand all | Expand 10 after
2453 // Runtime::TraceExit returns its parameter in v0. 2453 // Runtime::TraceExit returns its parameter in v0.
2454 __ push(v0); 2454 __ push(v0);
2455 __ CallRuntime(Runtime::kTraceExit, 1); 2455 __ CallRuntime(Runtime::kTraceExit, 1);
2456 } 2456 }
2457 if (NeedsEagerFrame()) { 2457 if (NeedsEagerFrame()) {
2458 int32_t sp_delta = (GetParameterCount() + 1) * kPointerSize; 2458 int32_t sp_delta = (GetParameterCount() + 1) * kPointerSize;
2459 __ mov(sp, fp); 2459 __ mov(sp, fp);
2460 __ Pop(ra, fp); 2460 __ Pop(ra, fp);
2461 __ Addu(sp, sp, Operand(sp_delta)); 2461 __ Addu(sp, sp, Operand(sp_delta));
2462 } 2462 }
2463 if (info()->IsStub()) {
2464 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
2465 }
2466 __ Jump(ra); 2463 __ Jump(ra);
2467 } 2464 }
2468 2465
2469 2466
2470 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) { 2467 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) {
2471 Register result = ToRegister(instr->result()); 2468 Register result = ToRegister(instr->result());
2472 __ li(at, Operand(Handle<Object>(instr->hydrogen()->cell()))); 2469 __ li(at, Operand(Handle<Object>(instr->hydrogen()->cell())));
2473 __ lw(result, FieldMemOperand(at, JSGlobalPropertyCell::kValueOffset)); 2470 __ lw(result, FieldMemOperand(at, JSGlobalPropertyCell::kValueOffset));
2474 if (instr->hydrogen()->RequiresHoleCheck()) { 2471 if (instr->hydrogen()->RequiresHoleCheck()) {
2475 __ LoadRoot(at, Heap::kTheHoleValueRootIndex); 2472 __ LoadRoot(at, Heap::kTheHoleValueRootIndex);
(...skipping 3312 matching lines...) Expand 10 before | Expand all | Expand 10 after
5788 __ Subu(scratch, result, scratch); 5785 __ Subu(scratch, result, scratch);
5789 __ lw(result, FieldMemOperand(scratch, 5786 __ lw(result, FieldMemOperand(scratch,
5790 FixedArray::kHeaderSize - kPointerSize)); 5787 FixedArray::kHeaderSize - kPointerSize));
5791 __ bind(&done); 5788 __ bind(&done);
5792 } 5789 }
5793 5790
5794 5791
5795 #undef __ 5792 #undef __
5796 5793
5797 } } // namespace v8::internal 5794 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/mips/lithium-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698