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

Side by Side Diff: src/x64/assembler-x64.h

Issue 1737043002: [Interpreter] Log source positions for bytecode arrays. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_cpu_profiler
Patch Set: TickLinesBaseline now works with more source positions Created 4 years, 9 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/profiler/cpu-profiler.cc ('k') | src/x87/assembler-x87.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 1677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 } 1688 }
1689 1689
1690 // Writes a single word of data in the code stream. 1690 // Writes a single word of data in the code stream.
1691 // Used for inline tables, e.g., jump-tables. 1691 // Used for inline tables, e.g., jump-tables.
1692 void db(uint8_t data); 1692 void db(uint8_t data);
1693 void dd(uint32_t data); 1693 void dd(uint32_t data);
1694 void dq(uint64_t data); 1694 void dq(uint64_t data);
1695 void dp(uintptr_t data) { dq(data); } 1695 void dp(uintptr_t data) { dq(data); }
1696 void dq(Label* label); 1696 void dq(Label* label);
1697 1697
1698 PositionsRecorder* positions_recorder() { return &positions_recorder_; } 1698 AssemblerPositionsRecorder* positions_recorder() {
1699 return &positions_recorder_;
1700 }
1699 1701
1700 // Check if there is less than kGap bytes available in the buffer. 1702 // Check if there is less than kGap bytes available in the buffer.
1701 // If this is the case, we need to grow the buffer before emitting 1703 // If this is the case, we need to grow the buffer before emitting
1702 // an instruction or relocation information. 1704 // an instruction or relocation information.
1703 inline bool buffer_overflow() const { 1705 inline bool buffer_overflow() const {
1704 return pc_ >= reloc_info_writer.pos() - kGap; 1706 return pc_ >= reloc_info_writer.pos() - kGap;
1705 } 1707 }
1706 1708
1707 // Get the number of bytes available in the buffer. 1709 // Get the number of bytes available in the buffer.
1708 inline int available_space() const { 1710 inline int available_space() const {
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
2171 // code generation 2173 // code generation
2172 RelocInfoWriter reloc_info_writer; 2174 RelocInfoWriter reloc_info_writer;
2173 2175
2174 // Internal reference positions, required for (potential) patching in 2176 // Internal reference positions, required for (potential) patching in
2175 // GrowBuffer(); contains only those internal references whose labels 2177 // GrowBuffer(); contains only those internal references whose labels
2176 // are already bound. 2178 // are already bound.
2177 std::deque<int> internal_reference_positions_; 2179 std::deque<int> internal_reference_positions_;
2178 2180
2179 List< Handle<Code> > code_targets_; 2181 List< Handle<Code> > code_targets_;
2180 2182
2181 PositionsRecorder positions_recorder_; 2183 AssemblerPositionsRecorder positions_recorder_;
2182 friend class PositionsRecorder; 2184 friend class AssemblerPositionsRecorder;
2183 }; 2185 };
2184 2186
2185 2187
2186 // Helper class that ensures that there is enough space for generating 2188 // Helper class that ensures that there is enough space for generating
2187 // instructions and relocation information. The constructor makes 2189 // instructions and relocation information. The constructor makes
2188 // sure that there is enough space and (in debug mode) the destructor 2190 // sure that there is enough space and (in debug mode) the destructor
2189 // checks that we did not generate too much. 2191 // checks that we did not generate too much.
2190 class EnsureSpace BASE_EMBEDDED { 2192 class EnsureSpace BASE_EMBEDDED {
2191 public: 2193 public:
2192 explicit EnsureSpace(Assembler* assembler) : assembler_(assembler) { 2194 explicit EnsureSpace(Assembler* assembler) : assembler_(assembler) {
(...skipping 14 matching lines...) Expand all
2207 Assembler* assembler_; 2209 Assembler* assembler_;
2208 #ifdef DEBUG 2210 #ifdef DEBUG
2209 int space_before_; 2211 int space_before_;
2210 #endif 2212 #endif
2211 }; 2213 };
2212 2214
2213 } // namespace internal 2215 } // namespace internal
2214 } // namespace v8 2216 } // namespace v8
2215 2217
2216 #endif // V8_X64_ASSEMBLER_X64_H_ 2218 #endif // V8_X64_ASSEMBLER_X64_H_
OLDNEW
« no previous file with comments | « src/profiler/cpu-profiler.cc ('k') | src/x87/assembler-x87.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698