Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index 3f72defaec375c03c49b662cad3b54805fd076c0..2003c73b9413ee7750f0aa12413a824cc3d5460d 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -231,7 +231,9 @@ void FullCodeGenerator::Generate(CompilationInfo* info) { |
} |
{ Comment cmnt(masm_, "[ Stack check"); |
- PrepareForBailout(info->function(), NO_REGISTERS); |
+ // The root of the AST tree, a FunctionLiteral, has AST Id 0 when seen from |
+ // below, and its actual AST Id when seen from outside. |
+ PrepareForBailoutForId(0, NO_REGISTERS); |
NearLabel ok; |
ExternalReference stack_limit = |
ExternalReference::address_of_stack_limit(isolate()); |