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

Side by Side Diff: src/interpreter/bytecodes.h

Issue 2187523002: [interpreter] Add CreateFunctionContext bytecode (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@fncontextstubslotparam
Patch Set: fix bytecode graph builder Created 4 years, 4 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/interpreter.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_BYTECODES_H_ 5 #ifndef V8_INTERPRETER_BYTECODES_H_
6 #define V8_INTERPRETER_BYTECODES_H_ 6 #define V8_INTERPRETER_BYTECODES_H_
7 7
8 #include <cstdint> 8 #include <cstdint>
9 #include <iosfwd> 9 #include <iosfwd>
10 #include <string> 10 #include <string>
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 OperandType::kIdx, OperandType::kFlag8) \ 220 OperandType::kIdx, OperandType::kFlag8) \
221 V(CreateArrayLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ 221 V(CreateArrayLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \
222 OperandType::kIdx, OperandType::kFlag8) \ 222 OperandType::kIdx, OperandType::kFlag8) \
223 V(CreateObjectLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ 223 V(CreateObjectLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \
224 OperandType::kIdx, OperandType::kFlag8) \ 224 OperandType::kIdx, OperandType::kFlag8) \
225 \ 225 \
226 /* Closure allocation */ \ 226 /* Closure allocation */ \
227 V(CreateClosure, AccumulatorUse::kWrite, OperandType::kIdx, \ 227 V(CreateClosure, AccumulatorUse::kWrite, OperandType::kIdx, \
228 OperandType::kFlag8) \ 228 OperandType::kFlag8) \
229 \ 229 \
230 /* Context allocation */ \
231 /* TODO(klaasb) rename Idx or add unsigned Imm OperandType? */ \
232 V(CreateFunctionContext, AccumulatorUse::kWrite, OperandType::kIdx) \
233 \
230 /* Arguments allocation */ \ 234 /* Arguments allocation */ \
231 V(CreateMappedArguments, AccumulatorUse::kWrite) \ 235 V(CreateMappedArguments, AccumulatorUse::kWrite) \
232 V(CreateUnmappedArguments, AccumulatorUse::kWrite) \ 236 V(CreateUnmappedArguments, AccumulatorUse::kWrite) \
233 V(CreateRestParameter, AccumulatorUse::kWrite) \ 237 V(CreateRestParameter, AccumulatorUse::kWrite) \
234 \ 238 \
235 /* Control Flow */ \ 239 /* Control Flow */ \
236 V(Jump, AccumulatorUse::kNone, OperandType::kImm) \ 240 V(Jump, AccumulatorUse::kNone, OperandType::kImm) \
237 V(JumpConstant, AccumulatorUse::kNone, OperandType::kIdx) \ 241 V(JumpConstant, AccumulatorUse::kNone, OperandType::kIdx) \
238 V(JumpIfTrue, AccumulatorUse::kRead, OperandType::kImm) \ 242 V(JumpIfTrue, AccumulatorUse::kRead, OperandType::kImm) \
239 V(JumpIfTrueConstant, AccumulatorUse::kRead, OperandType::kIdx) \ 243 V(JumpIfTrueConstant, AccumulatorUse::kRead, OperandType::kIdx) \
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); 575 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use);
572 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); 576 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale);
573 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); 577 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size);
574 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 578 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
575 579
576 } // namespace interpreter 580 } // namespace interpreter
577 } // namespace internal 581 } // namespace internal
578 } // namespace v8 582 } // namespace v8
579 583
580 #endif // V8_INTERPRETER_BYTECODES_H_ 584 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-generator.cc ('k') | src/interpreter/interpreter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698