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

Side by Side Diff: src/source-position-table.h

Issue 2410353005: Fix generate-bytecode-expectations to work in component builds (Closed)
Patch Set: Created 4 years, 2 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/runtime/runtime.h ('k') | test/cctest/BUILD.gn » ('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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_SOURCE_POSITION_TABLE_H_ 5 #ifndef V8_SOURCE_POSITION_TABLE_H_
6 #define V8_SOURCE_POSITION_TABLE_H_ 6 #define V8_SOURCE_POSITION_TABLE_H_
7 7
8 #include "src/assert-scope.h" 8 #include "src/assert-scope.h"
9 #include "src/checks.h" 9 #include "src/checks.h"
10 #include "src/globals.h"
10 #include "src/handles.h" 11 #include "src/handles.h"
11 #include "src/zone/zone-containers.h" 12 #include "src/zone/zone-containers.h"
12 13
13 namespace v8 { 14 namespace v8 {
14 namespace internal { 15 namespace internal {
15 16
16 class AbstractCode; 17 class AbstractCode;
17 class BytecodeArray; 18 class BytecodeArray;
18 class ByteArray; 19 class ByteArray;
19 class Isolate; 20 class Isolate;
(...skipping 28 matching lines...) Expand all
48 inline bool Omit() const { return mode_ == OMIT_SOURCE_POSITIONS; } 49 inline bool Omit() const { return mode_ == OMIT_SOURCE_POSITIONS; }
49 50
50 RecordingMode mode_; 51 RecordingMode mode_;
51 ZoneVector<byte> bytes_; 52 ZoneVector<byte> bytes_;
52 #ifdef ENABLE_SLOW_DCHECKS 53 #ifdef ENABLE_SLOW_DCHECKS
53 ZoneVector<PositionTableEntry> raw_entries_; 54 ZoneVector<PositionTableEntry> raw_entries_;
54 #endif 55 #endif
55 PositionTableEntry previous_; // Previously written entry, to compute delta. 56 PositionTableEntry previous_; // Previously written entry, to compute delta.
56 }; 57 };
57 58
58 class SourcePositionTableIterator { 59 class V8_EXPORT_PRIVATE SourcePositionTableIterator {
59 public: 60 public:
60 explicit SourcePositionTableIterator(ByteArray* byte_array); 61 explicit SourcePositionTableIterator(ByteArray* byte_array);
61 62
62 void Advance(); 63 void Advance();
63 64
64 int code_offset() const { 65 int code_offset() const {
65 DCHECK(!done()); 66 DCHECK(!done());
66 return current_.code_offset; 67 return current_.code_offset;
67 } 68 }
68 int source_position() const { 69 int source_position() const {
(...skipping 12 matching lines...) Expand all
81 ByteArray* table_; 82 ByteArray* table_;
82 int index_; 83 int index_;
83 PositionTableEntry current_; 84 PositionTableEntry current_;
84 DisallowHeapAllocation no_gc; 85 DisallowHeapAllocation no_gc;
85 }; 86 };
86 87
87 } // namespace internal 88 } // namespace internal
88 } // namespace v8 89 } // namespace v8
89 90
90 #endif // V8_SOURCE_POSITION_TABLE_H_ 91 #endif // V8_SOURCE_POSITION_TABLE_H_
OLDNEW
« no previous file with comments | « src/runtime/runtime.h ('k') | test/cctest/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698