Index: src/builtins/builtins.cc |
diff --git a/src/builtins/builtins.cc b/src/builtins/builtins.cc |
index 84b231d55bdfe1bb4ad69a7070f3881b9013e688..8e32cc57796ecaa7343bb6c4d86666e97e3c8e06 100644 |
--- a/src/builtins/builtins.cc |
+++ b/src/builtins/builtins.cc |
@@ -84,7 +84,8 @@ Code* BuildWithCodeStubAssemblerJS(Isolate* isolate, |
Code::Flags flags, const char* name) { |
HandleScope scope(isolate); |
Zone zone(isolate->allocator(), ZONE_NAME); |
- CodeStubAssembler assembler(isolate, &zone, argc, flags, name); |
+ const int argc_with_recv = argc + 1; |
+ CodeStubAssembler assembler(isolate, &zone, argc_with_recv, flags, name); |
generator(&assembler); |
Handle<Code> code = assembler.GenerateCode(); |
PostBuildProfileAndTracing(isolate, *code, name); |