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

Side by Side Diff: src/arm/disasm-arm.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/arm/debug-arm.cc ('k') | src/arm/frames-arm.h » ('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 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 } } // namespace v8::internal 1355 } } // namespace v8::internal
1356 1356
1357 1357
1358 1358
1359 //------------------------------------------------------------------------------ 1359 //------------------------------------------------------------------------------
1360 1360
1361 namespace disasm { 1361 namespace disasm {
1362 1362
1363 1363
1364 const char* NameConverter::NameOfAddress(byte* addr) const { 1364 const char* NameConverter::NameOfAddress(byte* addr) const {
1365 static v8::internal::EmbeddedVector<char, 32> tmp_buffer; 1365 v8::internal::OS::SNPrintF(tmp_buffer_, "%p", addr);
1366 v8::internal::OS::SNPrintF(tmp_buffer, "%p", addr); 1366 return tmp_buffer_.start();
1367 return tmp_buffer.start();
1368 } 1367 }
1369 1368
1370 1369
1371 const char* NameConverter::NameOfConstant(byte* addr) const { 1370 const char* NameConverter::NameOfConstant(byte* addr) const {
1372 return NameOfAddress(addr); 1371 return NameOfAddress(addr);
1373 } 1372 }
1374 1373
1375 1374
1376 const char* NameConverter::NameOfCPURegister(int reg) const { 1375 const char* NameConverter::NameOfCPURegister(int reg) const {
1377 return v8::internal::Registers::Name(reg); 1376 return v8::internal::Registers::Name(reg);
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 pc += d.InstructionDecode(buffer, pc); 1432 pc += d.InstructionDecode(buffer, pc);
1434 fprintf(f, "%p %08x %s\n", 1433 fprintf(f, "%p %08x %s\n",
1435 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start()); 1434 prev_pc, *reinterpret_cast<int32_t*>(prev_pc), buffer.start());
1436 } 1435 }
1437 } 1436 }
1438 1437
1439 1438
1440 } // namespace disasm 1439 } // namespace disasm
1441 1440
1442 #endif // V8_TARGET_ARCH_ARM 1441 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/debug-arm.cc ('k') | src/arm/frames-arm.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698