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

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

Issue 2622863003: [debugger] infrastructure for side-effect-free debug-evaluate. (Closed)
Patch Set: Created 3 years, 11 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 786 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 static OperandSize SizeForUnsignedOperand(uint32_t value) { 797 static OperandSize SizeForUnsignedOperand(uint32_t value) {
798 if (value <= kMaxUInt8) { 798 if (value <= kMaxUInt8) {
799 return OperandSize::kByte; 799 return OperandSize::kByte;
800 } else if (value <= kMaxUInt16) { 800 } else if (value <= kMaxUInt16) {
801 return OperandSize::kShort; 801 return OperandSize::kShort;
802 } else { 802 } else {
803 return OperandSize::kQuad; 803 return OperandSize::kQuad;
804 } 804 }
805 } 805 }
806 806
807 static bool BytecodeIsReadOnly(Bytecode bytecode);
jgruber 2017/01/10 12:46:37 What does read-only mean in this context? A commen
Yang 2017/01/10 14:14:06 Done.
808
807 private: 809 private:
808 static const OperandType* const kOperandTypes[]; 810 static const OperandType* const kOperandTypes[];
809 static const OperandTypeInfo* const kOperandTypeInfos[]; 811 static const OperandTypeInfo* const kOperandTypeInfos[];
810 static const int kOperandCount[]; 812 static const int kOperandCount[];
811 static const int kNumberOfRegisterOperands[]; 813 static const int kNumberOfRegisterOperands[];
812 static const AccumulatorUse kAccumulatorUse[]; 814 static const AccumulatorUse kAccumulatorUse[];
813 static const bool kIsScalable[]; 815 static const bool kIsScalable[];
814 static const int kBytecodeSizes[][3]; 816 static const int kBytecodeSizes[][3];
815 static const OperandSize* const kOperandSizes[][3]; 817 static const OperandSize* const kOperandSizes[][3];
816 }; 818 };
817 819
818 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os, 820 V8_EXPORT_PRIVATE std::ostream& operator<<(std::ostream& os,
819 const Bytecode& bytecode); 821 const Bytecode& bytecode);
820 822
821 } // namespace interpreter 823 } // namespace interpreter
822 } // namespace internal 824 } // namespace internal
823 } // namespace v8 825 } // namespace v8
824 826
825 #endif // V8_INTERPRETER_BYTECODES_H_ 827 #endif // V8_INTERPRETER_BYTECODES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698