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

Side by Side Diff: src/assembler.cc

Issue 2517143003: Remove some leftovers of full-codegen's generators implementation. (Closed)
Patch Set: Address feedback. Created 4 years 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/debug/debug.cc » ('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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
775 case DEBUG_BREAK_SLOT_AT_POSITION: 775 case DEBUG_BREAK_SLOT_AT_POSITION:
776 return "debug break slot at position"; 776 return "debug break slot at position";
777 case DEBUG_BREAK_SLOT_AT_RETURN: 777 case DEBUG_BREAK_SLOT_AT_RETURN:
778 return "debug break slot at return"; 778 return "debug break slot at return";
779 case DEBUG_BREAK_SLOT_AT_CALL: 779 case DEBUG_BREAK_SLOT_AT_CALL:
780 return "debug break slot at call"; 780 return "debug break slot at call";
781 case DEBUG_BREAK_SLOT_AT_TAIL_CALL: 781 case DEBUG_BREAK_SLOT_AT_TAIL_CALL:
782 return "debug break slot at tail call"; 782 return "debug break slot at tail call";
783 case CODE_AGE_SEQUENCE: 783 case CODE_AGE_SEQUENCE:
784 return "code age sequence"; 784 return "code age sequence";
785 case GENERATOR_CONTINUATION:
786 return "generator continuation";
787 case WASM_MEMORY_REFERENCE: 785 case WASM_MEMORY_REFERENCE:
788 return "wasm memory reference"; 786 return "wasm memory reference";
789 case WASM_MEMORY_SIZE_REFERENCE: 787 case WASM_MEMORY_SIZE_REFERENCE:
790 return "wasm memory size reference"; 788 return "wasm memory size reference";
791 case WASM_GLOBAL_REFERENCE: 789 case WASM_GLOBAL_REFERENCE:
792 return "wasm global value reference"; 790 return "wasm global value reference";
793 case NUMBER_OF_MODES: 791 case NUMBER_OF_MODES:
794 case PC_JUMP: 792 case PC_JUMP:
795 UNREACHABLE(); 793 UNREACHABLE();
796 return "number_of_modes"; 794 return "number_of_modes";
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
877 case DEOPT_SCRIPT_OFFSET: 875 case DEOPT_SCRIPT_OFFSET:
878 case DEOPT_INLINING_ID: 876 case DEOPT_INLINING_ID:
879 case DEOPT_REASON: 877 case DEOPT_REASON:
880 case DEOPT_ID: 878 case DEOPT_ID:
881 case CONST_POOL: 879 case CONST_POOL:
882 case VENEER_POOL: 880 case VENEER_POOL:
883 case DEBUG_BREAK_SLOT_AT_POSITION: 881 case DEBUG_BREAK_SLOT_AT_POSITION:
884 case DEBUG_BREAK_SLOT_AT_RETURN: 882 case DEBUG_BREAK_SLOT_AT_RETURN:
885 case DEBUG_BREAK_SLOT_AT_CALL: 883 case DEBUG_BREAK_SLOT_AT_CALL:
886 case DEBUG_BREAK_SLOT_AT_TAIL_CALL: 884 case DEBUG_BREAK_SLOT_AT_TAIL_CALL:
887 case GENERATOR_CONTINUATION:
888 case WASM_MEMORY_REFERENCE: 885 case WASM_MEMORY_REFERENCE:
889 case WASM_MEMORY_SIZE_REFERENCE: 886 case WASM_MEMORY_SIZE_REFERENCE:
890 case WASM_GLOBAL_REFERENCE: 887 case WASM_GLOBAL_REFERENCE:
891 case NONE32: 888 case NONE32:
892 case NONE64: 889 case NONE64:
893 break; 890 break;
894 case NUMBER_OF_MODES: 891 case NUMBER_OF_MODES:
895 case PC_JUMP: 892 case PC_JUMP:
896 UNREACHABLE(); 893 UNREACHABLE();
897 break; 894 break;
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 1904
1908 1905
1909 void Assembler::RecordComment(const char* msg) { 1906 void Assembler::RecordComment(const char* msg) {
1910 if (FLAG_code_comments) { 1907 if (FLAG_code_comments) {
1911 EnsureSpace ensure_space(this); 1908 EnsureSpace ensure_space(this);
1912 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); 1909 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg));
1913 } 1910 }
1914 } 1911 }
1915 1912
1916 1913
1917 void Assembler::RecordGeneratorContinuation() {
1918 EnsureSpace ensure_space(this);
1919 RecordRelocInfo(RelocInfo::GENERATOR_CONTINUATION);
1920 }
1921
1922
1923 void Assembler::RecordDebugBreakSlot(RelocInfo::Mode mode) { 1914 void Assembler::RecordDebugBreakSlot(RelocInfo::Mode mode) {
1924 EnsureSpace ensure_space(this); 1915 EnsureSpace ensure_space(this);
1925 DCHECK(RelocInfo::IsDebugBreakSlot(mode)); 1916 DCHECK(RelocInfo::IsDebugBreakSlot(mode));
1926 RecordRelocInfo(mode); 1917 RecordRelocInfo(mode);
1927 } 1918 }
1928 1919
1929 1920
1930 void Assembler::DataAlign(int m) { 1921 void Assembler::DataAlign(int m) {
1931 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 1922 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
1932 while ((pc_offset() & (m - 1)) != 0) { 1923 while ((pc_offset() & (m - 1)) != 0) {
1933 db(0); 1924 db(0);
1934 } 1925 }
1935 } 1926 }
1936 } // namespace internal 1927 } // namespace internal
1937 } // namespace v8 1928 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/debug/debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698