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

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

Issue 14253015: Skip samples where top function's stack frame is not setup properly (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed printf Created 7 years, 8 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/x64/full-codegen-x64.cc ('k') | test/cctest/test-cpu-profiler.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 2526 matching lines...) Expand 10 before | Expand all | Expand 10 after
2537 int count = 0; 2537 int count = 0;
2538 while (!save_iterator.Done()) { 2538 while (!save_iterator.Done()) {
2539 __ movsd(XMMRegister::FromAllocationIndex(save_iterator.Current()), 2539 __ movsd(XMMRegister::FromAllocationIndex(save_iterator.Current()),
2540 MemOperand(rsp, count * kDoubleSize)); 2540 MemOperand(rsp, count * kDoubleSize));
2541 save_iterator.Advance(); 2541 save_iterator.Advance();
2542 count++; 2542 count++;
2543 } 2543 }
2544 } 2544 }
2545 if (NeedsEagerFrame()) { 2545 if (NeedsEagerFrame()) {
2546 __ movq(rsp, rbp); 2546 __ movq(rsp, rbp);
2547 info_->set_frame_destroy_offset(masm_->pc_offset());
loislo 2013/04/26 13:46:19 do we have the same code on the other platforms
2547 __ pop(rbp); 2548 __ pop(rbp);
2548 } 2549 }
2549 if (instr->has_constant_parameter_count()) { 2550 if (instr->has_constant_parameter_count()) {
2550 __ Ret((ToInteger32(instr->constant_parameter_count()) + 1) * kPointerSize, 2551 __ Ret((ToInteger32(instr->constant_parameter_count()) + 1) * kPointerSize,
2551 rcx); 2552 rcx);
2552 } else { 2553 } else {
2553 Register reg = ToRegister(instr->parameter_count()); 2554 Register reg = ToRegister(instr->parameter_count());
2554 // The argument count parameter is a smi 2555 // The argument count parameter is a smi
2555 __ SmiToInteger32(reg, reg); 2556 __ SmiToInteger32(reg, reg);
2556 Register return_addr_reg = reg.is(rcx) ? rbx : rcx; 2557 Register return_addr_reg = reg.is(rcx) ? rbx : rcx;
(...skipping 3131 matching lines...) Expand 10 before | Expand all | Expand 10 after
5688 FixedArray::kHeaderSize - kPointerSize)); 5689 FixedArray::kHeaderSize - kPointerSize));
5689 __ bind(&done); 5690 __ bind(&done);
5690 } 5691 }
5691 5692
5692 5693
5693 #undef __ 5694 #undef __
5694 5695
5695 } } // namespace v8::internal 5696 } } // namespace v8::internal
5696 5697
5697 #endif // V8_TARGET_ARCH_X64 5698 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/full-codegen-x64.cc ('k') | test/cctest/test-cpu-profiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698