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

Side by Side Diff: src/interpreter/bytecode-array-iterator.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 | « no previous file | src/interpreter/bytecode-operands.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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_INTERPRETER_BYTECODE_ARRAY_ITERATOR_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_ARRAY_ITERATOR_H_
6 #define V8_INTERPRETER_BYTECODE_ARRAY_ITERATOR_H_ 6 #define V8_INTERPRETER_BYTECODE_ARRAY_ITERATOR_H_
7 7
8 #include "src/globals.h"
8 #include "src/handles.h" 9 #include "src/handles.h"
9 #include "src/interpreter/bytecode-register.h" 10 #include "src/interpreter/bytecode-register.h"
10 #include "src/interpreter/bytecodes.h" 11 #include "src/interpreter/bytecodes.h"
11 #include "src/objects.h" 12 #include "src/objects.h"
12 #include "src/runtime/runtime.h" 13 #include "src/runtime/runtime.h"
13 14
14 namespace v8 { 15 namespace v8 {
15 namespace internal { 16 namespace internal {
16 namespace interpreter { 17 namespace interpreter {
17 18
18 class BytecodeArrayIterator { 19 class V8_EXPORT_PRIVATE BytecodeArrayIterator {
19 public: 20 public:
20 explicit BytecodeArrayIterator(Handle<BytecodeArray> bytecode_array); 21 explicit BytecodeArrayIterator(Handle<BytecodeArray> bytecode_array);
21 22
22 void Advance(); 23 void Advance();
23 bool done() const; 24 bool done() const;
24 Bytecode current_bytecode() const; 25 Bytecode current_bytecode() const;
25 int current_bytecode_size() const; 26 int current_bytecode_size() const;
26 int current_offset() const { return bytecode_offset_; } 27 int current_offset() const { return bytecode_offset_; }
27 OperandScale current_operand_scale() const { return operand_scale_; } 28 OperandScale current_operand_scale() const { return operand_scale_; }
28 int current_prefix_offset() const { return prefix_offset_; } 29 int current_prefix_offset() const { return prefix_offset_; }
(...skipping 30 matching lines...) Expand all
59 int prefix_offset_; 60 int prefix_offset_;
60 61
61 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayIterator); 62 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayIterator);
62 }; 63 };
63 64
64 } // namespace interpreter 65 } // namespace interpreter
65 } // namespace internal 66 } // namespace internal
66 } // namespace v8 67 } // namespace v8
67 68
68 #endif // V8_INTERPRETER_BYTECODE_GRAPH_ITERATOR_H_ 69 #endif // V8_INTERPRETER_BYTECODE_GRAPH_ITERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | src/interpreter/bytecode-operands.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698