Index: src/arm64/lithium-codegen-arm64.cc |
diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc |
index c86efbd3a424b2f01f82e104ba9059a5289d842f..29c13ac5833e2bf59dbb713c5f7f8529176b867d 100644 |
--- a/src/arm64/lithium-codegen-arm64.cc |
+++ b/src/arm64/lithium-codegen-arm64.cc |
@@ -5896,7 +5896,7 @@ void LCodeGen::DoTypeofIsAndBranch(LTypeofIsAndBranch* instr) { |
__ CompareInstanceType(map, scratch, LAST_NONCALLABLE_SPEC_OBJECT_TYPE); |
__ B(gt, false_label); |
// Check for undetectable objects => false. |
- __ Ldrb(scratch, FieldMemOperand(value, Map::kBitFieldOffset)); |
+ __ Ldrb(scratch, FieldMemOperand(map, Map::kBitFieldOffset)); |
EmitTestAndBranch(instr, eq, scratch, 1 << Map::kIsUndetectable); |
} else { |