| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/disassembler.h" | 5 #include "src/disassembler.h" |
| 6 | 6 |
| 7 #include "src/code-stubs.h" | 7 #include "src/code-stubs.h" |
| 8 #include "src/codegen.h" | 8 #include "src/codegen.h" |
| 9 #include "src/debug/debug.h" | 9 #include "src/debug/debug.h" |
| 10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 Code::StubType type = code->type(); | 207 Code::StubType type = code->type(); |
| 208 out.AddFormatted(", %s", Code::StubType2String(type)); | 208 out.AddFormatted(", %s", Code::StubType2String(type)); |
| 209 } | 209 } |
| 210 } else if (kind == Code::STUB || kind == Code::HANDLER) { | 210 } else if (kind == Code::STUB || kind == Code::HANDLER) { |
| 211 // Get the STUB key and extract major and minor key. | 211 // Get the STUB key and extract major and minor key. |
| 212 uint32_t key = code->stub_key(); | 212 uint32_t key = code->stub_key(); |
| 213 uint32_t minor_key = CodeStub::MinorKeyFromKey(key); | 213 uint32_t minor_key = CodeStub::MinorKeyFromKey(key); |
| 214 CodeStub::Major major_key = CodeStub::GetMajorKey(code); | 214 CodeStub::Major major_key = CodeStub::GetMajorKey(code); |
| 215 DCHECK(major_key == CodeStub::MajorKeyFromKey(key)); | 215 DCHECK(major_key == CodeStub::MajorKeyFromKey(key)); |
| 216 out.AddFormatted(" %s, %s, ", Code::Kind2String(kind), | 216 out.AddFormatted(" %s, %s, ", Code::Kind2String(kind), |
| 217 CodeStub::MajorName(major_key, false)); | 217 CodeStub::MajorName(major_key)); |
| 218 out.AddFormatted("minor: %d", minor_key); | 218 out.AddFormatted("minor: %d", minor_key); |
| 219 } else { | 219 } else { |
| 220 out.AddFormatted(" %s", Code::Kind2String(kind)); | 220 out.AddFormatted(" %s", Code::Kind2String(kind)); |
| 221 } | 221 } |
| 222 if (rmode == RelocInfo::CODE_TARGET_WITH_ID) { | 222 if (rmode == RelocInfo::CODE_TARGET_WITH_ID) { |
| 223 out.AddFormatted(" (id = %d)", static_cast<int>(relocinfo.data())); | 223 out.AddFormatted(" (id = %d)", static_cast<int>(relocinfo.data())); |
| 224 } | 224 } |
| 225 } else if (RelocInfo::IsRuntimeEntry(rmode) && | 225 } else if (RelocInfo::IsRuntimeEntry(rmode) && |
| 226 isolate->deoptimizer_data() != NULL) { | 226 isolate->deoptimizer_data() != NULL) { |
| 227 // A runtime entry reloinfo might be a deoptimization bailout. | 227 // A runtime entry reloinfo might be a deoptimization bailout. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 281 | 281 |
| 282 int Disassembler::Decode(Isolate* isolate, std::ostream* os, byte* begin, | 282 int Disassembler::Decode(Isolate* isolate, std::ostream* os, byte* begin, |
| 283 byte* end, Code* code) { | 283 byte* end, Code* code) { |
| 284 return 0; | 284 return 0; |
| 285 } | 285 } |
| 286 | 286 |
| 287 #endif // ENABLE_DISASSEMBLER | 287 #endif // ENABLE_DISASSEMBLER |
| 288 | 288 |
| 289 } // namespace internal | 289 } // namespace internal |
| 290 } // namespace v8 | 290 } // namespace v8 |
| OLD | NEW |