From d2e9911161d53f6005032e6cb6ca261c972ce697 Mon Sep 17 00:00:00 2001 From: Joshua Warner Date: Thu, 1 May 2014 19:49:43 -0600 Subject: [PATCH] add asserts in CallEvent --- src/codegen/compiler/event.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/codegen/compiler/event.cpp b/src/codegen/compiler/event.cpp index fa714d115b..9e94787d03 100644 --- a/src/codegen/compiler/event.cpp +++ b/src/codegen/compiler/event.cpp @@ -319,6 +319,10 @@ class CallEvent: public Event { unsigned argumentIndex = 0; while (true) { + assert(c, arguments[index] == s->value); + assert(c, + argumentIndex + 1 >= arguments.count || arguments[index + 1] + == s->next->value); unsigned footprint = (argumentIndex + 1 < arguments.count and s->value->nextWord == s->next->value)