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

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

Issue 2336203002: [Interpreter] Add an unsigned immediate operand type (Closed)
Patch Set: Address comments Created 4 years, 3 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/interpreter/bytecode-array-builder.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/bytecode-register.h" 9 #include "src/interpreter/bytecode-register.h"
10 #include "src/interpreter/bytecodes.h" 10 #include "src/interpreter/bytecodes.h"
(...skipping 13 matching lines...) Expand all
24 Bytecode current_bytecode() const; 24 Bytecode current_bytecode() const;
25 int current_bytecode_size() const; 25 int current_bytecode_size() const;
26 int current_offset() const { return bytecode_offset_; } 26 int current_offset() const { return bytecode_offset_; }
27 OperandScale current_operand_scale() const { return operand_scale_; } 27 OperandScale current_operand_scale() const { return operand_scale_; }
28 int current_prefix_offset() const { return prefix_offset_; } 28 int current_prefix_offset() const { return prefix_offset_; }
29 const Handle<BytecodeArray>& bytecode_array() const { 29 const Handle<BytecodeArray>& bytecode_array() const {
30 return bytecode_array_; 30 return bytecode_array_;
31 } 31 }
32 32
33 uint32_t GetFlagOperand(int operand_index) const; 33 uint32_t GetFlagOperand(int operand_index) const;
34 uint32_t GetUnsignedImmediateOperand(int operand_index) const;
34 int32_t GetImmediateOperand(int operand_index) const; 35 int32_t GetImmediateOperand(int operand_index) const;
35 uint32_t GetIndexOperand(int operand_index) const; 36 uint32_t GetIndexOperand(int operand_index) const;
36 uint32_t GetRegisterCountOperand(int operand_index) const; 37 uint32_t GetRegisterCountOperand(int operand_index) const;
37 Register GetRegisterOperand(int operand_index) const; 38 Register GetRegisterOperand(int operand_index) const;
38 int GetRegisterOperandRange(int operand_index) const; 39 int GetRegisterOperandRange(int operand_index) const;
39 Runtime::FunctionId GetRuntimeIdOperand(int operand_index) const; 40 Runtime::FunctionId GetRuntimeIdOperand(int operand_index) const;
40 Runtime::FunctionId GetIntrinsicIdOperand(int operand_index) const; 41 Runtime::FunctionId GetIntrinsicIdOperand(int operand_index) const;
41 Handle<Object> GetConstantForIndexOperand(int operand_index) const; 42 Handle<Object> GetConstantForIndexOperand(int operand_index) const;
42 43
43 // Returns the absolute offset of the branch target at the current 44 // Returns the absolute offset of the branch target at the current
(...skipping 14 matching lines...) Expand all
58 int prefix_offset_; 59 int prefix_offset_;
59 60
60 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayIterator); 61 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayIterator);
61 }; 62 };
62 63
63 } // namespace interpreter 64 } // namespace interpreter
64 } // namespace internal 65 } // namespace internal
65 } // namespace v8 66 } // namespace v8
66 67
67 #endif // V8_INTERPRETER_BYTECODE_GRAPH_ITERATOR_H_ 68 #endif // V8_INTERPRETER_BYTECODE_GRAPH_ITERATOR_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.cc ('k') | src/interpreter/bytecode-array-iterator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698