| OLD | NEW |
| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 | 92 |
| 93 | 93 |
| 94 static void DumpBuffer(FILE* f, char* buff) { | 94 static void DumpBuffer(FILE* f, char* buff) { |
| 95 if (f == NULL) { | 95 if (f == NULL) { |
| 96 PrintF("%s", buff); | 96 PrintF("%s", buff); |
| 97 } else { | 97 } else { |
| 98 fprintf(f, "%s", buff); | 98 fprintf(f, "%s", buff); |
| 99 } | 99 } |
| 100 } | 100 } |
| 101 | 101 |
| 102 static const int kOutBufferSize = 1024 + String::kMaxShortPrintLength; | 102 static const int kOutBufferSize = 2048 + String::kMaxShortPrintLength; |
| 103 static const int kRelocInfoPosition = 57; | 103 static const int kRelocInfoPosition = 57; |
| 104 | 104 |
| 105 static int DecodeIt(FILE* f, | 105 static int DecodeIt(FILE* f, |
| 106 const V8NameConverter& converter, | 106 const V8NameConverter& converter, |
| 107 byte* begin, | 107 byte* begin, |
| 108 byte* end) { | 108 byte* end) { |
| 109 NoHandleAllocation ha; | 109 NoHandleAllocation ha; |
| 110 AssertNoAllocation no_alloc; | 110 AssertNoAllocation no_alloc; |
| 111 ExternalReferenceEncoder ref_encoder; | 111 ExternalReferenceEncoder ref_encoder; |
| 112 | 112 |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 | 300 |
| 301 #else // ENABLE_DISASSEMBLER | 301 #else // ENABLE_DISASSEMBLER |
| 302 | 302 |
| 303 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {} | 303 void Disassembler::Dump(FILE* f, byte* begin, byte* end) {} |
| 304 int Disassembler::Decode(FILE* f, byte* begin, byte* end) { return 0; } | 304 int Disassembler::Decode(FILE* f, byte* begin, byte* end) { return 0; } |
| 305 void Disassembler::Decode(FILE* f, Code* code) {} | 305 void Disassembler::Decode(FILE* f, Code* code) {} |
| 306 | 306 |
| 307 #endif // ENABLE_DISASSEMBLER | 307 #endif // ENABLE_DISASSEMBLER |
| 308 | 308 |
| 309 } } // namespace v8::internal | 309 } } // namespace v8::internal |
| OLD | NEW |