Index: src/arm64/macro-assembler-arm64.h |
diff --git a/src/arm64/macro-assembler-arm64.h b/src/arm64/macro-assembler-arm64.h |
index 517419606463631180c8b0b6506b139277e72b94..fdb0490cdecdcc8a2060c2bb761c8a8ca26d5f4a 100644 |
--- a/src/arm64/macro-assembler-arm64.h |
+++ b/src/arm64/macro-assembler-arm64.h |
@@ -982,6 +982,9 @@ class MacroAssembler : public Assembler { |
// --debug-code. |
void AssertPositiveOrZero(Register value); |
+ // Abort execution if argument is not a number (heap number or smi). |
+ void AssertNumber(Register value); |
+ |
void JumpIfHeapNumber(Register object, Label* on_heap_number, |
SmiCheckType smi_check_type = DONT_DO_SMI_CHECK); |
void JumpIfNotHeapNumber(Register object, Label* on_not_heap_number, |