Index: src/assembler.cc |
diff --git a/src/assembler.cc b/src/assembler.cc |
index c0290ebac2d8148588c4403b422f06a2ea7d5a6c..784331738ee23f47cb9bc5cf9b796304f3e9a6d5 100644 |
--- a/src/assembler.cc |
+++ b/src/assembler.cc |
@@ -1024,12 +1024,14 @@ ExternalReference::ExternalReference(Builtins::Name name, Isolate* isolate) |
ExternalReference::ExternalReference(Runtime::FunctionId id, Isolate* isolate) |
- : address_(Redirect(isolate, Runtime::FunctionForId(id)->entry)) {} |
+ : ExternalReference(Runtime::FunctionForId(id), isolate) {} |
ExternalReference::ExternalReference(const Runtime::Function* f, |
Isolate* isolate) |
- : address_(Redirect(isolate, f->entry)) {} |
+ : address_(Redirect(isolate, f->entry, f->result_size == 3 |
+ ? BUILTIN_CALL_TRIPLE |
+ : BUILTIN_CALL)) {} |
ExternalReference ExternalReference::isolate_address(Isolate* isolate) { |