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

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

Issue 6371011: Ensures that GDB prints stacktraces correctly for x64 builds when debugging t... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 2976 matching lines...) Expand 10 before | Expand all | Expand 10 after
2987 // Add a label for checking the size of the code used for returning. 2987 // Add a label for checking the size of the code used for returning.
2988 #ifdef DEBUG 2988 #ifdef DEBUG
2989 Label check_exit_codesize; 2989 Label check_exit_codesize;
2990 masm_->bind(&check_exit_codesize); 2990 masm_->bind(&check_exit_codesize);
2991 #endif 2991 #endif
2992 2992
2993 // Leave the frame and return popping the arguments and the 2993 // Leave the frame and return popping the arguments and the
2994 // receiver. 2994 // receiver.
2995 frame_->Exit(); 2995 frame_->Exit();
2996 masm_->ret((scope()->num_parameters() + 1) * kPointerSize); 2996 masm_->ret((scope()->num_parameters() + 1) * kPointerSize);
2997
2998 SET_UNWIND_INFO(UNWIND_STATE_AFTER_RETURN, masm_->pc_offset());
2999
Vyacheslav Egorov (Chromium) 2011/01/25 12:50:11 Revert this change. Classic codegen is going to b
2997 DeleteFrame(); 3000 DeleteFrame();
2998 3001
2999 #ifdef ENABLE_DEBUGGER_SUPPORT 3002 #ifdef ENABLE_DEBUGGER_SUPPORT
3000 // Add padding that will be overwritten by a debugger breakpoint. 3003 // Add padding that will be overwritten by a debugger breakpoint.
3001 // frame_->Exit() generates "movq rsp, rbp; pop rbp; ret k" 3004 // frame_->Exit() generates "movq rsp, rbp; pop rbp; ret k"
3002 // with length 7 (3 + 1 + 3). 3005 // with length 7 (3 + 1 + 3).
3003 const int kPadding = Assembler::kJSReturnSequenceLength - 7; 3006 const int kPadding = Assembler::kJSReturnSequenceLength - 7;
3004 for (int i = 0; i < kPadding; ++i) { 3007 for (int i = 0; i < kPadding; ++i) {
3005 masm_->int3(); 3008 masm_->int3();
3006 } 3009 }
(...skipping 5791 matching lines...) Expand 10 before | Expand all | Expand 10 after
8798 } 8801 }
8799 8802
8800 #endif 8803 #endif
8801 8804
8802 8805
8803 #undef __ 8806 #undef __
8804 8807
8805 } } // namespace v8::internal 8808 } } // namespace v8::internal
8806 8809
8807 #endif // V8_TARGET_ARCH_X64 8810 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698