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

Unified Diff: src/builtins.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « AUTHORS ('k') | src/code-stubs.cc » ('j') | src/code-stubs.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/builtins.cc
===================================================================
--- src/builtins.cc (revision 6445)
+++ src/builtins.cc (working copy)
@@ -1494,6 +1494,20 @@
GDBJIT(AddCode(GDBJITInterface::BUILTIN,
functions[i].s_name,
Code::cast(code)));
+ {
+ ZoneScope uinfo(DELETE_ON_EXIT);
Vyacheslav Egorov (Chromium) 2011/01/25 12:50:11 Do we really need this piece of code? The code st
+ uintptr_t begin = reinterpret_cast<uintptr_t>
+ (Code::cast(code)->instruction_start());
+ uintptr_t size = Code::cast(code)->instruction_size();
+
+ // This is to prevent compiler errors about begin and end not being
+ // used when SET_UNWIND_INFO_STUB is empty.
+
+ (void) begin;
+ (void) size;
+ SET_UNWIND_INFO_STUB(begin, size);
+ }
+
builtins_[i] = code;
#ifdef ENABLE_DISASSEMBLER
if (FLAG_print_builtin_code) {
« no previous file with comments | « AUTHORS ('k') | src/code-stubs.cc » ('j') | src/code-stubs.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698