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

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

Issue 1300813005: [Interpreter] Add implementations of arithmetic binary op bytecodes. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@mstar_v8h
Patch Set: Fix unittest too... Created 5 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-array-builder.cc ('k') | src/interpreter/interpreter.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 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 <iosfwd> 8 #include <iosfwd>
9 9
10 // Clients of this interface shouldn't depend on lots of interpreter internals. 10 // Clients of this interface shouldn't depend on lots of interpreter internals.
(...skipping 24 matching lines...) Expand all
35 \ 35 \
36 /* Register-accumulator transfers */ \ 36 /* Register-accumulator transfers */ \
37 V(Ldar, OperandType::kReg) \ 37 V(Ldar, OperandType::kReg) \
38 V(Star, OperandType::kReg) \ 38 V(Star, OperandType::kReg) \
39 \ 39 \
40 /* Binary Operators */ \ 40 /* Binary Operators */ \
41 V(Add, OperandType::kReg) \ 41 V(Add, OperandType::kReg) \
42 V(Sub, OperandType::kReg) \ 42 V(Sub, OperandType::kReg) \
43 V(Mul, OperandType::kReg) \ 43 V(Mul, OperandType::kReg) \
44 V(Div, OperandType::kReg) \ 44 V(Div, OperandType::kReg) \
45 V(Mod, OperandType::kReg) \
45 \ 46 \
46 /* Control Flow */ \ 47 /* Control Flow */ \
47 V(Return, OperandType::kNone) 48 V(Return, OperandType::kNone)
48 49
49 50
50 // Enumeration of operand types used by bytecodes. 51 // Enumeration of operand types used by bytecodes.
51 enum class OperandType : uint8_t { 52 enum class OperandType : uint8_t {
52 #define DECLARE_OPERAND_TYPE(Name) k##Name, 53 #define DECLARE_OPERAND_TYPE(Name) k##Name,
53 OPERAND_TYPE_LIST(DECLARE_OPERAND_TYPE) 54 OPERAND_TYPE_LIST(DECLARE_OPERAND_TYPE)
54 #undef DECLARE_OPERAND_TYPE 55 #undef DECLARE_OPERAND_TYPE
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 }; 111 };
111 112
112 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode); 113 std::ostream& operator<<(std::ostream& os, const Bytecode& bytecode);
113 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type); 114 std::ostream& operator<<(std::ostream& os, const OperandType& operand_type);
114 115
115 } // namespace interpreter 116 } // namespace interpreter
116 } // namespace internal 117 } // namespace internal
117 } // namespace v8 118 } // namespace v8
118 119
119 #endif // V8_INTERPRETER_BYTECODES_H_ 120 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.cc ('k') | src/interpreter/interpreter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698