Index: src/code-stub-assembler.h |
diff --git a/src/code-stub-assembler.h b/src/code-stub-assembler.h |
index b5642d4badeaf3c73174e7788f1d37c2088c9108..f23be2ee91a1a8f97b4a94a52d95bfa544b1cee8 100644 |
--- a/src/code-stub-assembler.h |
+++ b/src/code-stub-assembler.h |
@@ -147,7 +147,8 @@ class CodeStubAssembler : public compiler::CodeAssembler { |
compiler::Node* InnerAllocate(compiler::Node* previous, |
compiler::Node* offset); |
- void Assert(compiler::Node* condition); |
+ void Assert(compiler::Node* condition, const char* string = nullptr, |
+ const char* file = nullptr, int line = 0); |
// Check a value for smi-ness |
compiler::Node* TaggedIsSmi(compiler::Node* a); |
@@ -990,6 +991,8 @@ class CodeStubAssembler : public compiler::CodeAssembler { |
static const int kElementLoopUnrollThreshold = 8; |
}; |
+#define CSA_ASSERT(x) Assert((x), #x, __FILE__, __LINE__) |
+ |
DEFINE_OPERATORS_FOR_FLAGS(CodeStubAssembler::AllocationFlags); |
} // namespace internal |