| 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 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 out.AddFormatted(" ;; external reference (%s)", reference_name); | 208 out.AddFormatted(" ;; external reference (%s)", reference_name); |
| 209 } else if (RelocInfo::IsCodeTarget(rmode)) { | 209 } else if (RelocInfo::IsCodeTarget(rmode)) { |
| 210 out.AddFormatted(" ;; code:"); | 210 out.AddFormatted(" ;; code:"); |
| 211 if (rmode == RelocInfo::CONSTRUCT_CALL) { | 211 if (rmode == RelocInfo::CONSTRUCT_CALL) { |
| 212 out.AddFormatted(" constructor,"); | 212 out.AddFormatted(" constructor,"); |
| 213 } | 213 } |
| 214 Code* code = Code::GetCodeFromTargetAddress(relocinfo.target_address()); | 214 Code* code = Code::GetCodeFromTargetAddress(relocinfo.target_address()); |
| 215 Code::Kind kind = code->kind(); | 215 Code::Kind kind = code->kind(); |
| 216 if (code->is_inline_cache_stub()) { | 216 if (code->is_inline_cache_stub()) { |
| 217 if (kind == Code::LOAD_IC && | 217 if (kind == Code::LOAD_IC && |
| 218 LoadIC::GetContextualMode(code->extra_ic_state()) == CONTEXTUAL) { | 218 LoadIC::GetTypeofState( |
| 219 out.AddFormatted(" contextual,"); | 219 code->extra_ic_state()) == NOT_INSIDE_TYPEOF) { |
| 220 out.AddFormatted(" not_inside_typeof,"); |
| 220 } | 221 } |
| 221 InlineCacheState ic_state = code->ic_state(); | 222 InlineCacheState ic_state = code->ic_state(); |
| 222 out.AddFormatted(" %s, %s", Code::Kind2String(kind), | 223 out.AddFormatted(" %s, %s", Code::Kind2String(kind), |
| 223 Code::ICState2String(ic_state)); | 224 Code::ICState2String(ic_state)); |
| 224 if (ic_state == MONOMORPHIC) { | 225 if (ic_state == MONOMORPHIC) { |
| 225 Code::StubType type = code->type(); | 226 Code::StubType type = code->type(); |
| 226 out.AddFormatted(", %s", Code::StubType2String(type)); | 227 out.AddFormatted(", %s", Code::StubType2String(type)); |
| 227 } | 228 } |
| 228 } else if (kind == Code::STUB || kind == Code::HANDLER) { | 229 } else if (kind == Code::STUB || kind == Code::HANDLER) { |
| 229 // Reverse lookup required as the minor key cannot be retrieved | 230 // Reverse lookup required as the minor key cannot be retrieved |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 335 int Disassembler::Decode(Isolate* isolate, FILE* f, byte* begin, byte* end) { | 336 int Disassembler::Decode(Isolate* isolate, FILE* f, byte* begin, byte* end) { |
| 336 return 0; | 337 return 0; |
| 337 } | 338 } |
| 338 | 339 |
| 339 | 340 |
| 340 void Disassembler::Decode(FILE* f, Code* code) {} | 341 void Disassembler::Decode(FILE* f, Code* code) {} |
| 341 | 342 |
| 342 #endif // ENABLE_DISASSEMBLER | 343 #endif // ENABLE_DISASSEMBLER |
| 343 | 344 |
| 344 } } // namespace v8::internal | 345 } } // namespace v8::internal |
| OLD | NEW |