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

Unified Diff: src/execution.cc

Issue 196533007: Assert that allocation is allowed in generated code. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698