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

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

Issue 1361113002: [Interpreter] Add support for loading globals in the interpreter. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Review comments and fix ASAN Created 5 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/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/bytecodes.h" 9 #include "src/interpreter/bytecodes.h"
10 #include "src/objects.h" 10 #include "src/objects.h"
(...skipping 11 matching lines...) Expand all
22 Bytecode current_bytecode() const; 22 Bytecode current_bytecode() const;
23 const Handle<BytecodeArray>& bytecode_array() const { 23 const Handle<BytecodeArray>& bytecode_array() const {
24 return bytecode_array_; 24 return bytecode_array_;
25 } 25 }
26 26
27 int8_t GetSmi8Operand(int operand_index) const; 27 int8_t GetSmi8Operand(int operand_index) const;
28 int GetIndexOperand(int operand_index) const; 28 int GetIndexOperand(int operand_index) const;
29 Register GetRegisterOperand(int operand_index) const; 29 Register GetRegisterOperand(int operand_index) const;
30 Handle<Object> GetConstantForIndexOperand(int operand_index) const; 30 Handle<Object> GetConstantForIndexOperand(int operand_index) const;
31 31
32 // Get the raw byte for the given operand. Note: you should prefer using the
33 // typed versions above which cast the return to an appropriate type.
34 uint8_t GetRawOperand(int operand_index, OperandType operand_type) const;
35
32 private: 36 private:
33 uint8_t GetOperand(int operand_index, OperandType operand_type) const;
34
35 Handle<BytecodeArray> bytecode_array_; 37 Handle<BytecodeArray> bytecode_array_;
36 int bytecode_offset_; 38 int bytecode_offset_;
37 39
38 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayIterator); 40 DISALLOW_COPY_AND_ASSIGN(BytecodeArrayIterator);
39 }; 41 };
40 42
41 } // namespace interpreter 43 } // namespace interpreter
42 } // namespace internal 44 } // namespace internal
43 } // namespace v8 45 } // namespace v8
44 46
45 #endif // V8_INTERPRETER_BYTECODE_GRAPH_ITERATOR_H_ 47 #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