Reviewers: Michael Starzinger,
Description:
Assert that allocation is allowed in generated code.
Allocation may happen in generated code as well, even though it has to
call into runtime for GC.
[email protected]
Please review this at https://codereview.chromium.org/196533007/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files (+3, -0 lines):
M src/execution.cc
Index: src/execution.cc
diff --git a/src/execution.cc b/src/execution.cc
index
ac848e15a9dacb9cd1fcb7c8a3c6c6a67de9bf96..13b631521c50d1d2432eb8c8635e7348ed96c836
100644
--- a/src/execution.cc
+++ b/src/execution.cc
@@ -75,6 +75,9 @@ static Handle<Object> Invoke(bool is_construct,
bool* has_pending_exception) {
Isolate* isolate = function->GetIsolate();
+ // Generated code might allocate.
+ ASSERT(AllowHeapAllocation::IsAllowed());
+
// Entering JavaScript.
VMState<JS> state(isolate);
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.