Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: src/assembler.cc

Issue 2672823007: Revert of [debugger] remove debugger statement support from FCG/CS. (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/assembler.h ('k') | src/ast/ast.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 718
719 #ifdef ENABLE_DISASSEMBLER 719 #ifdef ENABLE_DISASSEMBLER
720 const char* RelocInfo::RelocModeName(RelocInfo::Mode rmode) { 720 const char* RelocInfo::RelocModeName(RelocInfo::Mode rmode) {
721 switch (rmode) { 721 switch (rmode) {
722 case NONE32: 722 case NONE32:
723 return "no reloc 32"; 723 return "no reloc 32";
724 case NONE64: 724 case NONE64:
725 return "no reloc 64"; 725 return "no reloc 64";
726 case EMBEDDED_OBJECT: 726 case EMBEDDED_OBJECT:
727 return "embedded object"; 727 return "embedded object";
728 case DEBUGGER_STATEMENT:
729 return "debugger statement";
728 case CODE_TARGET: 730 case CODE_TARGET:
729 return "code target"; 731 return "code target";
730 case CODE_TARGET_WITH_ID: 732 case CODE_TARGET_WITH_ID:
731 return "code target with id"; 733 return "code target with id";
732 case CELL: 734 case CELL:
733 return "property cell"; 735 return "property cell";
734 case RUNTIME_ENTRY: 736 case RUNTIME_ENTRY:
735 return "runtime entry"; 737 return "runtime entry";
736 case COMMENT: 738 case COMMENT:
737 return "comment"; 739 return "comment";
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
825 827
826 #ifdef VERIFY_HEAP 828 #ifdef VERIFY_HEAP
827 void RelocInfo::Verify(Isolate* isolate) { 829 void RelocInfo::Verify(Isolate* isolate) {
828 switch (rmode_) { 830 switch (rmode_) {
829 case EMBEDDED_OBJECT: 831 case EMBEDDED_OBJECT:
830 Object::VerifyPointer(target_object()); 832 Object::VerifyPointer(target_object());
831 break; 833 break;
832 case CELL: 834 case CELL:
833 Object::VerifyPointer(target_cell()); 835 Object::VerifyPointer(target_cell());
834 break; 836 break;
837 case DEBUGGER_STATEMENT:
835 case CODE_TARGET_WITH_ID: 838 case CODE_TARGET_WITH_ID:
836 case CODE_TARGET: { 839 case CODE_TARGET: {
837 // convert inline target address to code object 840 // convert inline target address to code object
838 Address addr = target_address(); 841 Address addr = target_address();
839 CHECK(addr != NULL); 842 CHECK(addr != NULL);
840 // Check that we can find the right code object. 843 // Check that we can find the right code object.
841 Code* code = Code::GetCodeFromTargetAddress(addr); 844 Code* code = Code::GetCodeFromTargetAddress(addr);
842 Object* found = isolate->FindCodeObject(addr); 845 Object* found = isolate->FindCodeObject(addr);
843 CHECK(found->IsCode()); 846 CHECK(found->IsCode());
844 CHECK(code->address() == HeapObject::cast(found)->address()); 847 CHECK(code->address() == HeapObject::cast(found)->address());
(...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after
1928 1931
1929 1932
1930 void Assembler::DataAlign(int m) { 1933 void Assembler::DataAlign(int m) {
1931 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1934 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1932 while ((pc_offset() & (m - 1)) != 0) { 1935 while ((pc_offset() & (m - 1)) != 0) {
1933 db(0); 1936 db(0);
1934 } 1937 }
1935 } 1938 }
1936 } // namespace internal 1939 } // namespace internal
1937 } // namespace v8 1940 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/ast/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698