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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
824 return "statement position"; | 824 return "statement position"; |
825 case EXTERNAL_REFERENCE: | 825 case EXTERNAL_REFERENCE: |
826 return "external reference"; | 826 return "external reference"; |
827 case INTERNAL_REFERENCE: | 827 case INTERNAL_REFERENCE: |
828 return "internal reference"; | 828 return "internal reference"; |
829 case INTERNAL_REFERENCE_ENCODED: | 829 case INTERNAL_REFERENCE_ENCODED: |
830 return "encoded internal reference"; | 830 return "encoded internal reference"; |
831 case DEOPT_REASON: | 831 case DEOPT_REASON: |
832 return "deopt reason"; | 832 return "deopt reason"; |
833 case DEOPT_ID: | 833 case DEOPT_ID: |
834 return "deopt inlining id"; | 834 return "deopt index"; |
835 case CONST_POOL: | 835 case CONST_POOL: |
836 return "constant pool"; | 836 return "constant pool"; |
837 case VENEER_POOL: | 837 case VENEER_POOL: |
838 return "veneer pool"; | 838 return "veneer pool"; |
839 case DEBUG_BREAK_SLOT_AT_POSITION: | 839 case DEBUG_BREAK_SLOT_AT_POSITION: |
840 return "debug break slot at position"; | 840 return "debug break slot at position"; |
841 case DEBUG_BREAK_SLOT_AT_RETURN: | 841 case DEBUG_BREAK_SLOT_AT_RETURN: |
842 return "debug break slot at return"; | 842 return "debug break slot at return"; |
843 case DEBUG_BREAK_SLOT_AT_CALL: | 843 case DEBUG_BREAK_SLOT_AT_CALL: |
844 return "debug break slot at call"; | 844 return "debug break slot at call"; |
(...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2050 } | 2050 } |
2051 } | 2051 } |
2052 } | 2052 } |
2053 | 2053 |
2054 return !empty ? emitted_label_.pos() : 0; | 2054 return !empty ? emitted_label_.pos() : 0; |
2055 } | 2055 } |
2056 | 2056 |
2057 | 2057 |
2058 // Platform specific but identical code for all the platforms. | 2058 // Platform specific but identical code for all the platforms. |
2059 | 2059 |
2060 void Assembler::RecordDeoptReason(const int reason, int raw_position, | 2060 void Assembler::RecordDeoptReason(const int reason, int raw_position, int id) { |
2061 int inlining_id) { | |
2062 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling()) { | 2061 if (FLAG_trace_deopt || isolate()->cpu_profiler()->is_profiling()) { |
2063 EnsureSpace ensure_space(this); | 2062 EnsureSpace ensure_space(this); |
2064 RecordRelocInfo(RelocInfo::POSITION, raw_position); | 2063 RecordRelocInfo(RelocInfo::POSITION, raw_position); |
2065 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); | 2064 RecordRelocInfo(RelocInfo::DEOPT_REASON, reason); |
2066 RecordRelocInfo(RelocInfo::DEOPT_ID, inlining_id); | 2065 RecordRelocInfo(RelocInfo::DEOPT_ID, id); |
2067 } | 2066 } |
2068 } | 2067 } |
2069 | 2068 |
2070 | 2069 |
2071 void Assembler::RecordComment(const char* msg) { | 2070 void Assembler::RecordComment(const char* msg) { |
2072 if (FLAG_code_comments) { | 2071 if (FLAG_code_comments) { |
2073 EnsureSpace ensure_space(this); | 2072 EnsureSpace ensure_space(this); |
2074 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); | 2073 RecordRelocInfo(RelocInfo::COMMENT, reinterpret_cast<intptr_t>(msg)); |
2075 } | 2074 } |
2076 } | 2075 } |
(...skipping 13 matching lines...) Expand all Loading... |
2090 | 2089 |
2091 | 2090 |
2092 void Assembler::DataAlign(int m) { | 2091 void Assembler::DataAlign(int m) { |
2093 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); | 2092 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); |
2094 while ((pc_offset() & (m - 1)) != 0) { | 2093 while ((pc_offset() & (m - 1)) != 0) { |
2095 db(0); | 2094 db(0); |
2096 } | 2095 } |
2097 } | 2096 } |
2098 } // namespace internal | 2097 } // namespace internal |
2099 } // namespace v8 | 2098 } // namespace v8 |
OLD | NEW |