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

Side by Side Diff: src/interpreter/bytecode-array-reverse-iterator.h

Issue 2518003002: [ignition] Add a reverse bytecode iterator (Closed)
Patch Set: Make class final 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 | « BUILD.gn ('k') | src/interpreter/bytecode-array-reverse-iterator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_REVERSE_ITERATOR_H_
6 #define V8_INTERPRETER_BYTECODE_ARRAY_REVERSE_ITERATOR_H_
7
8 #include "src/interpreter/bytecode-array-accessor.h"
9 #include "src/zone/zone-containers.h"
10 #include "src/zone/zone.h"
11
12 namespace v8 {
13 namespace internal {
14 namespace interpreter {
15
16 class V8_EXPORT_PRIVATE BytecodeArrayReverseIterator final
17 : public BytecodeArrayAccessor {
18 public:
19 explicit BytecodeArrayReverseIterator(Handle<BytecodeArray> bytecode_array,
20 Zone* zone);
21
22 void Advance();
23 void Reset();
24 bool done() const;
25
26 private:
27 ZoneVector<int> offsets_;
28 ZoneVector<int>::const_reverse_iterator it_offsets_;
29
30 void UpdateOffsetFromIterator();
31
32 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayReverseIterator);
33 };
34
35 } // namespace interpreter
36 } // namespace internal
37 } // namespace v8
38
39 #endif // V8_INTERPRETER_BYTECODE_ARRAY_REVERSE_ITERATOR_H_
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | src/interpreter/bytecode-array-reverse-iterator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698