Index: src/compiler/code-assembler.cc |
diff --git a/src/compiler/code-assembler.cc b/src/compiler/code-assembler.cc |
index a9173afa756111f441f570c65477bcbba58646fe..f72fa219e5013fd6e16fa28dd5d4a9f54d593da1 100644 |
--- a/src/compiler/code-assembler.cc |
+++ b/src/compiler/code-assembler.cc |
@@ -41,8 +41,11 @@ CodeAssembler::CodeAssembler(Isolate* isolate, Zone* zone, |
CodeAssembler::CodeAssembler(Isolate* isolate, Zone* zone, int parameter_count, |
Code::Flags flags, const char* name) |
: CodeAssembler(isolate, zone, |
- Linkage::GetJSCallDescriptor(zone, false, parameter_count, |
- CallDescriptor::kNoFlags), |
+ Linkage::GetJSCallDescriptor( |
+ zone, false, parameter_count, |
+ Code::ExtractKindFromFlags(flags) == Code::BUILTIN |
+ ? CallDescriptor::kPushArgumentCount |
+ : CallDescriptor::kNoFlags), |
flags, name) {} |
CodeAssembler::CodeAssembler(Isolate* isolate, Zone* zone, |