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

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-generator 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
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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 V(CreateRegExpLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \ 219 V(CreateRegExpLiteral, AccumulatorUse::kWrite, OperandType::kIdx, \
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 /* Context allocation */ \
rmcilroy 2016/08/03 10:58:14 nit - newline above
klaasb 2016/08/03 12:28:16 Done.
230 V(CreateFunctionContext, AccumulatorUse::kWrite, OperandType::kImm) \
229 \ 231 \
230 /* Arguments allocation */ \ 232 /* Arguments allocation */ \
231 V(CreateMappedArguments, AccumulatorUse::kWrite) \ 233 V(CreateMappedArguments, AccumulatorUse::kWrite) \
232 V(CreateUnmappedArguments, AccumulatorUse::kWrite) \ 234 V(CreateUnmappedArguments, AccumulatorUse::kWrite) \
233 V(CreateRestParameter, AccumulatorUse::kWrite) \ 235 V(CreateRestParameter, AccumulatorUse::kWrite) \
234 \ 236 \
235 /* Control Flow */ \ 237 /* Control Flow */ \
236 V(Jump, AccumulatorUse::kNone, OperandType::kImm) \ 238 V(Jump, AccumulatorUse::kNone, OperandType::kImm) \
237 V(JumpConstant, AccumulatorUse::kNone, OperandType::kIdx) \ 239 V(JumpConstant, AccumulatorUse::kNone, OperandType::kIdx) \
238 V(JumpIfTrue, AccumulatorUse::kRead, OperandType::kImm) \ 240 V(JumpIfTrue, AccumulatorUse::kRead, OperandType::kImm) \
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use); 573 std::ostream& operator<<(std::ostream& os, const AccumulatorUse& use);
572 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale); 574 std::ostream& operator<<(std::ostream& os, const OperandScale& operand_scale);
573 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size); 575 std::ostream& operator<<(std::ostream& os, const OperandSize& operand_size);
574 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 576 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
575 577
576 } // namespace interpreter 578 } // namespace interpreter
577 } // namespace internal 579 } // namespace internal
578 } // namespace v8 580 } // namespace v8
579 581
580 #endif // V8_INTERPRETER_BYTECODES_H_ 582 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698