Index: src/x64/macro-assembler-x64.h |
diff --git a/src/x64/macro-assembler-x64.h b/src/x64/macro-assembler-x64.h |
index 2e478dc85c2bfd26f1a156b2c3a99ae2269dcc9b..f6e7f73bd5cb98bb5fd8f66caba43290a4fc7603 100644 |
--- a/src/x64/macro-assembler-x64.h |
+++ b/src/x64/macro-assembler-x64.h |
@@ -1165,6 +1165,9 @@ class MacroAssembler: public Assembler { |
// via --debug-code. |
void AssertUndefinedOrAllocationSite(Register object); |
+ // Abort if argument is not a valid API call result, enabled via --debug-code. |
+ void AssertApiCallResult(Register object); |
+ |
// --------------------------------------------------------------------------- |
// Exception handling |