@@ -1141,8 +1141,8 @@ class LiftoffCompiler {
1141
1141
}
1142
1142
1143
1143
void CatchException(FullDecoder* decoder,
1144
- const ExceptionIndexImmediate <validate>& imm,
1145
- Control* block, base::Vector<Value> values) {
1144
+ const TagIndexImmediate <validate>& imm, Control* block ,
1145
+ base::Vector<Value> values) {
1146
1146
DCHECK(block->is_try_catch());
1147
1147
__ emit_jump(block->label.get());
1148
1148
@@ -1171,7 +1171,7 @@ class LiftoffCompiler {
1171
1171
1172
1172
CODE_COMMENT("load expected exception tag");
1173
1173
Register imm_tag = pinned.set(__ GetUnusedRegister(kGpReg, pinned)).gp();
1174
- LOAD_TAGGED_PTR_INSTANCE_FIELD(imm_tag, ExceptionsTable , pinned);
1174
+ LOAD_TAGGED_PTR_INSTANCE_FIELD(imm_tag, TagsTable , pinned);
1175
1175
__ LoadTaggedPointer(
1176
1176
imm_tag, imm_tag, no_reg,
1177
1177
wasm::ObjectAccess::ElementOffsetInTaggedFixedArray(imm.index), {});
@@ -1189,8 +1189,7 @@ class LiftoffCompiler {
1189
1189
block->try_info->in_handler = true;
1190
1190
num_exceptions_++;
1191
1191
}
1192
- GetExceptionValues(decoder, __ cache_state()->stack_state.back(),
1193
- imm.exception);
1192
+ GetExceptionValues(decoder, __ cache_state()->stack_state.back(), imm.tag);
1194
1193
}
1195
1194
1196
1195
void Rethrow(FullDecoder* decoder,
@@ -4227,18 +4226,18 @@ class LiftoffCompiler {
4227
4226
4228
4227
void GetExceptionValues(FullDecoder* decoder,
4229
4228
LiftoffAssembler::VarState& exception_var,
4230
- const WasmException* exception ) {
4229
+ const WasmTag* tag ) {
4231
4230
LiftoffRegList pinned;
4232
4231
CODE_COMMENT("get exception values");
4233
4232
LiftoffRegister values_array = GetExceptionProperty(
4234
4233
exception_var, RootIndex::kwasm_exception_values_symbol);
4235
4234
pinned.set(values_array);
4236
4235
uint32_t index = 0;
4237
- const WasmExceptionSig * sig = exception ->sig;
4236
+ const WasmTagSig * sig = tag ->sig;
4238
4237
for (ValueType param : sig->parameters()) {
4239
4238
LoadExceptionValue(param.kind(), values_array, &index, pinned);
4240
4239
}
4241
- DCHECK_EQ(index, WasmExceptionPackage::GetEncodedSize(exception ));
4240
+ DCHECK_EQ(index, WasmExceptionPackage::GetEncodedSize(tag ));
4242
4241
}
4243
4242
4244
4243
void EmitLandingPad(FullDecoder* decoder, int handler_offset) {
@@ -4273,12 +4272,12 @@ class LiftoffCompiler {
4273
4272
__ DropValues(1);
4274
4273
}
4275
4274
4276
- void Throw(FullDecoder* decoder, const ExceptionIndexImmediate <validate>& imm,
4275
+ void Throw(FullDecoder* decoder, const TagIndexImmediate <validate>& imm,
4277
4276
const base::Vector<Value>& /* args */) {
4278
4277
LiftoffRegList pinned;
4279
4278
4280
4279
// Load the encoded size in a register for the builtin call.
4281
- int encoded_size = WasmExceptionPackage::GetEncodedSize(imm.exception );
4280
+ int encoded_size = WasmExceptionPackage::GetEncodedSize(imm.tag );
4282
4281
LiftoffRegister encoded_size_reg =
4283
4282
pinned.set(__ GetUnusedRegister(kGpReg, pinned));
4284
4283
__ LoadConstant(encoded_size_reg, WasmValue(encoded_size));
@@ -4300,7 +4299,7 @@ class LiftoffCompiler {
4300
4299
// first value, such that we can just pop them from the value stack.
4301
4300
CODE_COMMENT("fill values array");
4302
4301
int index = encoded_size;
4303
- auto* sig = imm.exception ->sig;
4302
+ auto* sig = imm.tag ->sig;
4304
4303
for (size_t param_idx = sig->parameter_count(); param_idx > 0;
4305
4304
--param_idx) {
4306
4305
ValueType type = sig->GetParam(param_idx - 1);
@@ -4312,7 +4311,7 @@ class LiftoffCompiler {
4312
4311
CODE_COMMENT("load exception tag");
4313
4312
LiftoffRegister exception_tag =
4314
4313
pinned.set(__ GetUnusedRegister(kGpReg, pinned));
4315
- LOAD_TAGGED_PTR_INSTANCE_FIELD(exception_tag.gp(), ExceptionsTable , pinned);
4314
+ LOAD_TAGGED_PTR_INSTANCE_FIELD(exception_tag.gp(), TagsTable , pinned);
4316
4315
__ LoadTaggedPointer(
4317
4316
exception_tag.gp(), exception_tag.gp(), no_reg,
4318
4317
wasm::ObjectAccess::ElementOffsetInTaggedFixedArray(imm.index), {});
0 commit comments