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

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: Review feedback 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 | « src/lithium-allocator-inl.h ('k') | src/x64/lithium-x64.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 2434 matching lines...) Expand 10 before | Expand all | Expand 10 after
2445 // Preserve the return value on the stack and rely on the runtime 2445 // Preserve the return value on the stack and rely on the runtime
2446 // call to return the value in the same register. 2446 // call to return the value in the same register.
2447 __ push(rax); 2447 __ push(rax);
2448 __ CallRuntime(Runtime::kTraceExit, 1); 2448 __ CallRuntime(Runtime::kTraceExit, 1);
2449 } 2449 }
2450 if (NeedsEagerFrame()) { 2450 if (NeedsEagerFrame()) {
2451 __ movq(rsp, rbp); 2451 __ movq(rsp, rbp);
2452 __ pop(rbp); 2452 __ pop(rbp);
2453 } 2453 }
2454 if (info()->IsStub()) { 2454 if (info()->IsStub()) {
2455 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
2456 __ Ret(0, r10); 2455 __ Ret(0, r10);
2457 } else { 2456 } else {
2458 __ Ret((GetParameterCount() + 1) * kPointerSize, rcx); 2457 __ Ret((GetParameterCount() + 1) * kPointerSize, rcx);
2459 } 2458 }
2460 } 2459 }
2461 2460
2462 2461
2463 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) { 2462 void LCodeGen::DoLoadGlobalCell(LLoadGlobalCell* instr) {
2464 Register result = ToRegister(instr->result()); 2463 Register result = ToRegister(instr->result());
2465 __ LoadGlobalCell(result, instr->hydrogen()->cell()); 2464 __ LoadGlobalCell(result, instr->hydrogen()->cell());
(...skipping 3073 matching lines...) Expand 10 before | Expand all | Expand 10 after
5539 FixedArray::kHeaderSize - kPointerSize)); 5538 FixedArray::kHeaderSize - kPointerSize));
5540 __ bind(&done); 5539 __ bind(&done);
5541 } 5540 }
5542 5541
5543 5542
5544 #undef __ 5543 #undef __
5545 5544
5546 } } // namespace v8::internal 5545 } } // namespace v8::internal
5547 5546
5548 #endif // V8_TARGET_ARCH_X64 5547 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/lithium-allocator-inl.h ('k') | src/x64/lithium-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698