aboutsummaryrefslogtreecommitdiff
path: root/deps/v8/src/torque/instructions.h
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/torque/instructions.h')
-rw-r--r--deps/v8/src/torque/instructions.h28
1 files changed, 11 insertions, 17 deletions
diff --git a/deps/v8/src/torque/instructions.h b/deps/v8/src/torque/instructions.h
index 1bf38aaa94..544a841bf2 100644
--- a/deps/v8/src/torque/instructions.h
+++ b/deps/v8/src/torque/instructions.h
@@ -207,10 +207,7 @@ struct LoadObjectFieldInstruction : InstructionBase {
TORQUE_INSTRUCTION_BOILERPLATE()
LoadObjectFieldInstruction(const ClassType* class_type,
std::string field_name)
- : class_type(class_type) {
- // The normal way to write this triggers a bug in Clang on Windows.
- this->field_name = std::move(field_name);
- }
+ : class_type(class_type), field_name(std::move(field_name)) {}
const ClassType* class_type;
std::string field_name;
};
@@ -219,10 +216,7 @@ struct StoreObjectFieldInstruction : InstructionBase {
TORQUE_INSTRUCTION_BOILERPLATE()
StoreObjectFieldInstruction(const ClassType* class_type,
std::string field_name)
- : class_type(class_type) {
- // The normal way to write this triggers a bug in Clang on Windows.
- this->field_name = std::move(field_name);
- }
+ : class_type(class_type), field_name(std::move(field_name)) {}
const ClassType* class_type;
std::string field_name;
};
@@ -230,10 +224,14 @@ struct StoreObjectFieldInstruction : InstructionBase {
struct CallIntrinsicInstruction : InstructionBase {
TORQUE_INSTRUCTION_BOILERPLATE()
CallIntrinsicInstruction(Intrinsic* intrinsic,
+ TypeVector specialization_types,
std::vector<std::string> constexpr_arguments)
- : intrinsic(intrinsic), constexpr_arguments(constexpr_arguments) {}
+ : intrinsic(intrinsic),
+ specialization_types(std::move(specialization_types)),
+ constexpr_arguments(constexpr_arguments) {}
Intrinsic* intrinsic;
+ TypeVector specialization_types;
std::vector<std::string> constexpr_arguments;
};
@@ -395,10 +393,8 @@ struct ReturnInstruction : InstructionBase {
struct PrintConstantStringInstruction : InstructionBase {
TORQUE_INSTRUCTION_BOILERPLATE()
- explicit PrintConstantStringInstruction(std::string message) {
- // The normal way to write this triggers a bug in Clang on Windows.
- this->message = std::move(message);
- }
+ explicit PrintConstantStringInstruction(std::string message)
+ : message(std::move(message)) {}
std::string message;
};
@@ -407,10 +403,8 @@ struct AbortInstruction : InstructionBase {
TORQUE_INSTRUCTION_BOILERPLATE()
enum class Kind { kDebugBreak, kUnreachable, kAssertionFailure };
bool IsBlockTerminator() const override { return kind != Kind::kDebugBreak; }
- explicit AbortInstruction(Kind kind, std::string message = "") : kind(kind) {
- // The normal way to write this triggers a bug in Clang on Windows.
- this->message = std::move(message);
- }
+ explicit AbortInstruction(Kind kind, std::string message = "")
+ : kind(kind), message(std::move(message)) {}
Kind kind;
std::string message;