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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « AUTHORS ('k') | src/code-stubs.cc » ('j') | src/code-stubs.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 1476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1487 } 1487 }
1488 } 1488 }
1489 } 1489 }
1490 // Log the event and add the code to the builtins array. 1490 // Log the event and add the code to the builtins array.
1491 PROFILE(CodeCreateEvent(Logger::BUILTIN_TAG, 1491 PROFILE(CodeCreateEvent(Logger::BUILTIN_TAG,
1492 Code::cast(code), 1492 Code::cast(code),
1493 functions[i].s_name)); 1493 functions[i].s_name));
1494 GDBJIT(AddCode(GDBJITInterface::BUILTIN, 1494 GDBJIT(AddCode(GDBJITInterface::BUILTIN,
1495 functions[i].s_name, 1495 functions[i].s_name,
1496 Code::cast(code))); 1496 Code::cast(code)));
1497 {
1498 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
1499 uintptr_t begin = reinterpret_cast<uintptr_t>
1500 (Code::cast(code)->instruction_start());
1501 uintptr_t size = Code::cast(code)->instruction_size();
1502
1503 // This is to prevent compiler errors about begin and end not being
1504 // used when SET_UNWIND_INFO_STUB is empty.
1505
1506 (void) begin;
1507 (void) size;
1508 SET_UNWIND_INFO_STUB(begin, size);
1509 }
1510
1497 builtins_[i] = code; 1511 builtins_[i] = code;
1498 #ifdef ENABLE_DISASSEMBLER 1512 #ifdef ENABLE_DISASSEMBLER
1499 if (FLAG_print_builtin_code) { 1513 if (FLAG_print_builtin_code) {
1500 PrintF("Builtin: %s\n", functions[i].s_name); 1514 PrintF("Builtin: %s\n", functions[i].s_name);
1501 Code::cast(code)->Disassemble(functions[i].s_name); 1515 Code::cast(code)->Disassemble(functions[i].s_name);
1502 PrintF("\n"); 1516 PrintF("\n");
1503 } 1517 }
1504 #endif 1518 #endif
1505 } else { 1519 } else {
1506 // Deserializing. The values will be filled in during IterateBuiltins. 1520 // Deserializing. The values will be filled in during IterateBuiltins.
(...skipping 24 matching lines...) Expand all
1531 if (entry->contains(pc)) { 1545 if (entry->contains(pc)) {
1532 return names_[i]; 1546 return names_[i];
1533 } 1547 }
1534 } 1548 }
1535 } 1549 }
1536 return NULL; 1550 return NULL;
1537 } 1551 }
1538 1552
1539 1553
1540 } } // namespace v8::internal 1554 } } // namespace v8::internal
OLDNEW
« 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