Chromium Code Reviews| 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); |