| OLD | NEW |
| 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. | 1 // Copyright (c) 1994-2006 Sun Microsystems Inc. |
| 2 // All Rights Reserved. | 2 // All Rights Reserved. |
| 3 // | 3 // |
| 4 // Redistribution and use in source and binary forms, with or without | 4 // Redistribution and use in source and binary forms, with or without |
| 5 // modification, are permitted provided that the following conditions are | 5 // modification, are permitted provided that the following conditions are |
| 6 // met: | 6 // met: |
| 7 // | 7 // |
| 8 // - Redistributions of source code must retain the above copyright notice, | 8 // - Redistributions of source code must retain the above copyright notice, |
| 9 // this list of conditions and the following disclaimer. | 9 // this list of conditions and the following disclaimer. |
| 10 // | 10 // |
| (...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 417 // Implementation of RelocInfo | 417 // Implementation of RelocInfo |
| 418 | 418 |
| 419 | 419 |
| 420 #ifdef ENABLE_DISASSEMBLER | 420 #ifdef ENABLE_DISASSEMBLER |
| 421 const char* RelocInfo::RelocModeName(RelocInfo::Mode rmode) { | 421 const char* RelocInfo::RelocModeName(RelocInfo::Mode rmode) { |
| 422 switch (rmode) { | 422 switch (rmode) { |
| 423 case RelocInfo::NONE: | 423 case RelocInfo::NONE: |
| 424 return "no reloc"; | 424 return "no reloc"; |
| 425 case RelocInfo::EMBEDDED_OBJECT: | 425 case RelocInfo::EMBEDDED_OBJECT: |
| 426 return "embedded object"; | 426 return "embedded object"; |
| 427 case RelocInfo::EMBEDDED_STRING: | |
| 428 return "embedded string"; | |
| 429 case RelocInfo::CONSTRUCT_CALL: | 427 case RelocInfo::CONSTRUCT_CALL: |
| 430 return "code target (js construct call)"; | 428 return "code target (js construct call)"; |
| 431 case RelocInfo::CODE_TARGET_CONTEXT: | 429 case RelocInfo::CODE_TARGET_CONTEXT: |
| 432 return "code target (context)"; | 430 return "code target (context)"; |
| 433 case RelocInfo::DEBUG_BREAK: | 431 case RelocInfo::DEBUG_BREAK: |
| 434 #ifndef ENABLE_DEBUGGER_SUPPORT | 432 #ifndef ENABLE_DEBUGGER_SUPPORT |
| 435 UNREACHABLE(); | 433 UNREACHABLE(); |
| 436 #endif | 434 #endif |
| 437 return "debug break"; | 435 return "debug break"; |
| 438 case RelocInfo::CODE_TARGET: | 436 case RelocInfo::CODE_TARGET: |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 501 // convert inline target address to code object | 499 // convert inline target address to code object |
| 502 Address addr = target_address(); | 500 Address addr = target_address(); |
| 503 ASSERT(addr != NULL); | 501 ASSERT(addr != NULL); |
| 504 // Check that we can find the right code object. | 502 // Check that we can find the right code object. |
| 505 Code* code = Code::GetCodeFromTargetAddress(addr); | 503 Code* code = Code::GetCodeFromTargetAddress(addr); |
| 506 Object* found = Heap::FindCodeObject(addr); | 504 Object* found = Heap::FindCodeObject(addr); |
| 507 ASSERT(found->IsCode()); | 505 ASSERT(found->IsCode()); |
| 508 ASSERT(code->address() == HeapObject::cast(found)->address()); | 506 ASSERT(code->address() == HeapObject::cast(found)->address()); |
| 509 break; | 507 break; |
| 510 } | 508 } |
| 511 case RelocInfo::EMBEDDED_STRING: | |
| 512 case RUNTIME_ENTRY: | 509 case RUNTIME_ENTRY: |
| 513 case JS_RETURN: | 510 case JS_RETURN: |
| 514 case COMMENT: | 511 case COMMENT: |
| 515 case POSITION: | 512 case POSITION: |
| 516 case STATEMENT_POSITION: | 513 case STATEMENT_POSITION: |
| 517 case EXTERNAL_REFERENCE: | 514 case EXTERNAL_REFERENCE: |
| 518 case INTERNAL_REFERENCE: | 515 case INTERNAL_REFERENCE: |
| 519 case NONE: | 516 case NONE: |
| 520 break; | 517 break; |
| 521 case NUMBER_OF_MODES: | 518 case NUMBER_OF_MODES: |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 return ExternalReference(Redirect(FUNCTION_ADDR(Debug::Break))); | 786 return ExternalReference(Redirect(FUNCTION_ADDR(Debug::Break))); |
| 790 } | 787 } |
| 791 | 788 |
| 792 | 789 |
| 793 ExternalReference ExternalReference::debug_step_in_fp_address() { | 790 ExternalReference ExternalReference::debug_step_in_fp_address() { |
| 794 return ExternalReference(Debug::step_in_fp_addr()); | 791 return ExternalReference(Debug::step_in_fp_addr()); |
| 795 } | 792 } |
| 796 #endif | 793 #endif |
| 797 | 794 |
| 798 } } // namespace v8::internal | 795 } } // namespace v8::internal |
| OLD | NEW |