| Index: src/x64/full-codegen-x64.cc
 | 
| diff --git a/src/x64/full-codegen-x64.cc b/src/x64/full-codegen-x64.cc
 | 
| index da1a7aee44b0600b12f38c8d6a92a92caadf9fb4..60efe03db71c6a75d7602b5614501e950427b33c 100644
 | 
| --- a/src/x64/full-codegen-x64.cc
 | 
| +++ b/src/x64/full-codegen-x64.cc
 | 
| @@ -88,7 +88,7 @@ void FullCodeGenerator::Generate(CompilationInfo* info) {
 | 
|    bool function_in_register = true;
 | 
|  
 | 
|    // Possibly allocate a local context.
 | 
| -  int heap_slots = scope()->num_heap_slots();
 | 
| +  int heap_slots = scope()->num_heap_slots() - Context::MIN_CONTEXT_SLOTS;
 | 
|    if (heap_slots > 0) {
 | 
|      Comment cmnt(masm_, "[ Allocate local context");
 | 
|      // Argument to NewContext is the function, which is still in rdi.
 | 
| 
 |