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

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

Issue 11550005: Elide unnecessary context reload in generated stubs. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merge with ToT Created 8 years 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
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 2423 matching lines...) Expand 10 before | Expand all | Expand 10 after
2434 // Preserve the return value on the stack and rely on the runtime 2434 // Preserve the return value on the stack and rely on the runtime
2435 // call to return the value in the same register. 2435 // call to return the value in the same register.
2436 __ push(rax); 2436 __ push(rax);
2437 __ CallRuntime(Runtime::kTraceExit, 1); 2437 __ CallRuntime(Runtime::kTraceExit, 1);
2438 } 2438 }
2439 if (NeedsEagerFrame()) { 2439 if (NeedsEagerFrame()) {
2440 __ movq(rsp, rbp); 2440 __ movq(rsp, rbp);
2441 __ pop(rbp); 2441 __ pop(rbp);
2442 } 2442 }
2443 if (info()->IsStub()) { 2443 if (info()->IsStub()) {
2444 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
2445 __ Ret(0, r10); 2444 __ Ret(0, r10);
2446 } else { 2445 } else {
2447 __ Ret((GetParameterCount() + 1) * kPointerSize, rcx); 2446 __ Ret((GetParameterCount() + 1) * kPointerSize, rcx);
2448 } 2447 }
2449 } 2448 }
2450 2449
2451 2450
2452 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) { 2451 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) {
2453 Register result = ToRegister(instr->result()); 2452 Register result = ToRegister(instr->result());
2454 __ LoadGlobalCell(result, instr->hydrogen()->cell()); 2453 __ LoadGlobalCell(result, instr->hydrogen()->cell());
(...skipping 3073 matching lines...) Expand 10 before | Expand all | Expand 10 after
5528 FixedArray::kHeaderSize - kPointerSize)); 5527 FixedArray::kHeaderSize - kPointerSize));
5529 __ bind(&done); 5528 __ bind(&done);
5530 } 5529 }
5531 5530
5532 5531
5533 #undef __ 5532 #undef __
5534 5533
5535 } } // namespace v8::internal 5534 } } // namespace v8::internal
5536 5535
5537 #endif // V8_TARGET_ARCH_X64 5536 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698