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

Side by Side Diff: src/mips/disasm-mips.cc

Issue 6685088: Merge isolates to bleeding_edge. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 9 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/mips/codegen-mips.cc ('k') | src/mips/fast-codegen-mips.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 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 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 704
705 705
706 //------------------------------------------------------------------------------ 706 //------------------------------------------------------------------------------
707 707
708 namespace disasm { 708 namespace disasm {
709 709
710 namespace v8i = v8::internal; 710 namespace v8i = v8::internal;
711 711
712 712
713 const char* NameConverter::NameOfAddress(byte_* addr) const { 713 const char* NameConverter::NameOfAddress(byte_* addr) const {
714 static v8::internal::EmbeddedVector<char, 32> tmp_buffer; 714 v8::internal::OS::SNPrintF(tmp_buffer_, "%p", addr);
715 v8::internal::OS::SNPrintF(tmp_buffer, "%p", addr); 715 return tmp_buffer_.start();
716 return tmp_buffer.start();
717 } 716 }
718 717
719 718
720 const char* NameConverter::NameOfConstant(byte_* addr) const { 719 const char* NameConverter::NameOfConstant(byte_* addr) const {
721 return NameOfAddress(addr); 720 return NameOfAddress(addr);
722 } 721 }
723 722
724 723
725 const char* NameConverter::NameOfCPURegister(int reg) const { 724 const char* NameConverter::NameOfCPURegister(int reg) const {
726 return assembler::mips::Registers::Name(reg); 725 return assembler::mips::Registers::Name(reg);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
778 fprintf(f, "%p %08x %s\n", 777 fprintf(f, "%p %08x %s\n",
779 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 778 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
780 } 779 }
781 } 780 }
782 781
783 #undef UNSUPPORTED 782 #undef UNSUPPORTED
784 783
785 } // namespace disasm 784 } // namespace disasm
786 785
787 #endif // V8_TARGET_ARCH_MIPS 786 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/codegen-mips.cc ('k') | src/mips/fast-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698