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

Side by Side Diff: src/interpreter/bytecode-operands.h

Issue 2894293003: Save/restore only live registers in the generator suspend/resume. (Closed)
Patch Set: Tweak Created 3 years, 6 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-generator.cc ('k') | src/interpreter/bytecode-register-optimizer.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 2016 the V8 project authors. All rights reserved. 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 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_OPERANDS_H_ 5 #ifndef V8_INTERPRETER_BYTECODE_OPERANDS_H_
6 #define V8_INTERPRETER_BYTECODE_OPERANDS_H_ 6 #define V8_INTERPRETER_BYTECODE_OPERANDS_H_
7 7
8 #include "src/globals.h" 8 #include "src/globals.h"
9 9
10 namespace v8 { 10 namespace v8 {
11 namespace internal { 11 namespace internal {
12 namespace interpreter { 12 namespace interpreter {
13 13
14 #define INVALID_OPERAND_TYPE_LIST(V) V(None, OperandTypeInfo::kNone) 14 #define INVALID_OPERAND_TYPE_LIST(V) V(None, OperandTypeInfo::kNone)
15 15
16 #define REGISTER_INPUT_OPERAND_TYPE_LIST(V) \ 16 #define REGISTER_INPUT_OPERAND_TYPE_LIST(V) \
17 V(Reg, OperandTypeInfo::kScalableSignedByte) \ 17 V(Reg, OperandTypeInfo::kScalableSignedByte) \
18 V(RegList, OperandTypeInfo::kScalableSignedByte) \ 18 V(RegList, OperandTypeInfo::kScalableSignedByte) \
19 V(RegPair, OperandTypeInfo::kScalableSignedByte) 19 V(RegPair, OperandTypeInfo::kScalableSignedByte)
20 20
21 #define REGISTER_OUTPUT_OPERAND_TYPE_LIST(V) \ 21 #define REGISTER_OUTPUT_OPERAND_TYPE_LIST(V) \
22 V(RegOut, OperandTypeInfo::kScalableSignedByte) \ 22 V(RegOut, OperandTypeInfo::kScalableSignedByte) \
23 V(RegOutList, OperandTypeInfo::kScalableSignedByte) \
23 V(RegOutPair, OperandTypeInfo::kScalableSignedByte) \ 24 V(RegOutPair, OperandTypeInfo::kScalableSignedByte) \
24 V(RegOutTriple, OperandTypeInfo::kScalableSignedByte) 25 V(RegOutTriple, OperandTypeInfo::kScalableSignedByte)
25 26
26 #define SIGNED_SCALABLE_SCALAR_OPERAND_TYPE_LIST(V) \ 27 #define SIGNED_SCALABLE_SCALAR_OPERAND_TYPE_LIST(V) \
27 V(Imm, OperandTypeInfo::kScalableSignedByte) 28 V(Imm, OperandTypeInfo::kScalableSignedByte)
28 29
29 #define UNSIGNED_SCALABLE_SCALAR_OPERAND_TYPE_LIST(V) \ 30 #define UNSIGNED_SCALABLE_SCALAR_OPERAND_TYPE_LIST(V) \
30 V(Idx, OperandTypeInfo::kScalableUnsignedByte) \ 31 V(Idx, OperandTypeInfo::kScalableUnsignedByte) \
31 V(UImm, OperandTypeInfo::kScalableUnsignedByte) \ 32 V(UImm, OperandTypeInfo::kScalableUnsignedByte) \
32 V(RegCount, OperandTypeInfo::kScalableUnsignedByte) 33 V(RegCount, OperandTypeInfo::kScalableUnsignedByte)
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 return operand_type >= OperandType::kIdx && 157 return operand_type >= OperandType::kIdx &&
157 operand_type <= OperandType::kRegCount; 158 operand_type <= OperandType::kRegCount;
158 } 159 }
159 }; 160 };
160 161
161 } // namespace interpreter 162 } // namespace interpreter
162 } // namespace internal 163 } // namespace internal
163 } // namespace v8 164 } // namespace v8
164 165
165 #endif // V8_INTERPRETER_BYTECODE_OPERANDS_H_ 166 #endif // V8_INTERPRETER_BYTECODE_OPERANDS_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/interpreter/bytecode-register-optimizer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698