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

Side by Side Diff: vm/disassembler_ia32.cc

Issue 10375059: Use a reserved stack local variable to store the Code object so that it can be looked up easily whe… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 7 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 | « vm/debugger.cc ('k') | vm/find_code_object_test.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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/disassembler.h" 5 #include "vm/disassembler.h"
6 6
7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. 7 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32.
8 #if defined(TARGET_ARCH_IA32) 8 #if defined(TARGET_ARCH_IA32)
9 #include "platform/utils.h" 9 #include "platform/utils.h"
10 #include "vm/allocation.h" 10 #include "vm/allocation.h"
(...skipping 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 Print("'"); 421 Print("'");
422 } else { 422 } else {
423 // 'addr' is not an object, but probably a code address. 423 // 'addr' is not an object, but probably a code address.
424 const char* name_of_stub = StubCode::NameOfStub(addr); 424 const char* name_of_stub = StubCode::NameOfStub(addr);
425 if (name_of_stub != NULL) { 425 if (name_of_stub != NULL) {
426 Print(" [stub: "); 426 Print(" [stub: ");
427 Print(name_of_stub); 427 Print(name_of_stub);
428 Print("]"); 428 Print("]");
429 } else { 429 } else {
430 // Print only if jumping to entry point. 430 // Print only if jumping to entry point.
431 const Code& code = Code::Handle( 431 const Code& code = Code::Handle(Code::LookupCode(addr));
432 StackFrame::LookupCode(Isolate::Current(), addr));
433 if (!code.IsNull() && (code.EntryPoint() == addr)) { 432 if (!code.IsNull() && (code.EntryPoint() == addr)) {
434 const Function& function = Function::Handle(code.function()); 433 const Function& function = Function::Handle(code.function());
435 const char* name_of_function = function.ToFullyQualifiedCString(); 434 const char* name_of_function = function.ToFullyQualifiedCString();
436 Print(" ["); 435 Print(" [");
437 Print(name_of_function); 436 Print(name_of_function);
438 Print("]"); 437 Print("]");
439 } 438 }
440 } 439 }
441 } 440 }
442 } 441 }
(...skipping 1151 matching lines...) Expand 10 before | Expand all | Expand 10 after
1594 human_buffer, 1593 human_buffer,
1595 sizeof(human_buffer), 1594 sizeof(human_buffer),
1596 pc); 1595 pc);
1597 pc += instruction_length; 1596 pc += instruction_length;
1598 } 1597 }
1599 } 1598 }
1600 1599
1601 } // namespace dart 1600 } // namespace dart
1602 1601
1603 #endif // defined TARGET_ARCH_IA32 1602 #endif // defined TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « vm/debugger.cc ('k') | vm/find_code_object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698