Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(25)

Unified Diff: src/code-stub-assembler.h

Issue 2419433008: Improve CodeStubAssembler assert functionality (Closed)
Patch Set: Fix memory leak Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | src/code-stub-assembler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698