| Index: src/hydrogen.cc
|
| ===================================================================
|
| --- src/hydrogen.cc (revision 11256)
|
| +++ src/hydrogen.cc (working copy)
|
| @@ -2454,6 +2454,10 @@
|
| Bailout("function with illegal redeclaration");
|
| return NULL;
|
| }
|
| + if (scope->calls_eval()) {
|
| + Bailout("function calls eval");
|
| + return NULL;
|
| + }
|
| SetUpScope(scope);
|
|
|
| // Add an edge to the body entry. This is warty: the graph's start
|
| @@ -5865,6 +5869,10 @@
|
| VariableProxy* proxy = expr->expression()->AsVariableProxy();
|
| bool global_call = proxy != NULL && proxy->var()->IsUnallocated();
|
|
|
| + if (proxy != NULL && proxy->var()->is_possibly_eval()) {
|
| + return Bailout("possible direct call to eval");
|
| + }
|
| +
|
| if (global_call) {
|
| Variable* var = proxy->var();
|
| bool known_global_function = false;
|
|
|