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

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

Issue 1514413002: [Interpreter] Generate valid FrameStates in the Bytecode Graph Builder. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@int_materialize_sf
Patch Set: Add checks that environment doesn't change after state nodes are attached Created 5 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 | « src/compiler/pipeline.cc ('k') | src/interpreter/bytecode-array-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
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/handles.h" 8 #include "src/handles.h"
9 #include "src/interpreter/bytecodes.h" 9 #include "src/interpreter/bytecodes.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
11 11
12 namespace v8 { 12 namespace v8 {
13 namespace internal { 13 namespace internal {
14 namespace interpreter { 14 namespace interpreter {
15 15
16 class BytecodeArrayIterator { 16 class BytecodeArrayIterator {
17 public: 17 public:
18 explicit BytecodeArrayIterator(Handle<BytecodeArray> bytecode_array); 18 explicit BytecodeArrayIterator(Handle<BytecodeArray> bytecode_array);
19 19
20 void Advance(); 20 void Advance();
21 bool done() const; 21 bool done() const;
22 Bytecode current_bytecode() const; 22 Bytecode current_bytecode() const;
23 int current_bytecode_size() const;
23 int current_offset() const { return bytecode_offset_; } 24 int current_offset() const { return bytecode_offset_; }
24 const Handle<BytecodeArray>& bytecode_array() const { 25 const Handle<BytecodeArray>& bytecode_array() const {
25 return bytecode_array_; 26 return bytecode_array_;
26 } 27 }
27 28
28 int8_t GetImmediateOperand(int operand_index) const; 29 int8_t GetImmediateOperand(int operand_index) const;
29 int GetIndexOperand(int operand_index) const; 30 int GetIndexOperand(int operand_index) const;
30 int GetCountOperand(int operand_index) const; 31 int GetCountOperand(int operand_index) const;
31 Register GetRegisterOperand(int operand_index) const; 32 Register GetRegisterOperand(int operand_index) const;
32 Handle<Object> GetConstantForIndexOperand(int operand_index) const; 33 Handle<Object> GetConstantForIndexOperand(int operand_index) const;
(...skipping 12 matching lines...) Expand all
45 int bytecode_offset_; 46 int bytecode_offset_;
46 47
47 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayIterator); 48 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayIterator);
48 }; 49 };
49 50
50 } // namespace interpreter 51 } // namespace interpreter
51 } // namespace internal 52 } // namespace internal
52 } // namespace v8 53 } // namespace v8
53 54
54 #endif // V8_INTERPRETER_BYTECODE_GRAPH_ITERATOR_H_ 55 #endif // V8_INTERPRETER_BYTECODE_GRAPH_ITERATOR_H_
OLDNEW
« no previous file with comments | « src/compiler/pipeline.cc ('k') | src/interpreter/bytecode-array-iterator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698