| 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/v8.h" | 5 #include "src/v8.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.h" | 9 #include "src/debug.h" |
| 10 #include "src/deoptimizer.h" | 10 #include "src/deoptimizer.h" |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 out.AddFormatted(" ;; external reference (%s)", reference_name); | 190 out.AddFormatted(" ;; external reference (%s)", reference_name); |
| 191 } else if (RelocInfo::IsCodeTarget(rmode)) { | 191 } else if (RelocInfo::IsCodeTarget(rmode)) { |
| 192 out.AddFormatted(" ;; code:"); | 192 out.AddFormatted(" ;; code:"); |
| 193 if (rmode == RelocInfo::CONSTRUCT_CALL) { | 193 if (rmode == RelocInfo::CONSTRUCT_CALL) { |
| 194 out.AddFormatted(" constructor,"); | 194 out.AddFormatted(" constructor,"); |
| 195 } | 195 } |
| 196 Code* code = Code::GetCodeFromTargetAddress(relocinfo.target_address()); | 196 Code* code = Code::GetCodeFromTargetAddress(relocinfo.target_address()); |
| 197 Code::Kind kind = code->kind(); | 197 Code::Kind kind = code->kind(); |
| 198 if (code->is_inline_cache_stub()) { | 198 if (code->is_inline_cache_stub()) { |
| 199 if (kind == Code::LOAD_IC && | 199 if (kind == Code::LOAD_IC && |
| 200 LoadICState::GetContextualMode(code->extra_ic_state()) == | 200 LoadICState::GetTypeofMode(code->extra_ic_state()) == |
| 201 CONTEXTUAL) { | 201 NOT_INSIDE_TYPEOF) { |
| 202 out.AddFormatted(" contextual,"); | 202 out.AddFormatted(" contextual,"); |
| 203 } | 203 } |
| 204 InlineCacheState ic_state = code->ic_state(); | 204 InlineCacheState ic_state = code->ic_state(); |
| 205 out.AddFormatted(" %s, %s", Code::Kind2String(kind), | 205 out.AddFormatted(" %s, %s", Code::Kind2String(kind), |
| 206 Code::ICState2String(ic_state)); | 206 Code::ICState2String(ic_state)); |
| 207 if (ic_state == MONOMORPHIC) { | 207 if (ic_state == MONOMORPHIC) { |
| 208 Code::StubType type = code->type(); | 208 Code::StubType type = code->type(); |
| 209 out.AddFormatted(", %s", Code::StubType2String(type)); | 209 out.AddFormatted(", %s", Code::StubType2String(type)); |
| 210 } | 210 } |
| 211 } else if (kind == Code::STUB || kind == Code::HANDLER) { | 211 } else if (kind == Code::STUB || kind == Code::HANDLER) { |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 | 282 |
| 283 int Disassembler::Decode(Isolate* isolate, std::ostream* os, byte* begin, | 283 int Disassembler::Decode(Isolate* isolate, std::ostream* os, byte* begin, |
| 284 byte* end, Code* code) { | 284 byte* end, Code* code) { |
| 285 return 0; | 285 return 0; |
| 286 } | 286 } |
| 287 | 287 |
| 288 #endif // ENABLE_DISASSEMBLER | 288 #endif // ENABLE_DISASSEMBLER |
| 289 | 289 |
| 290 } // namespace internal | 290 } // namespace internal |
| 291 } // namespace v8 | 291 } // namespace v8 |
| OLD | NEW |