Index: src/assembler.cc |
diff --git a/src/assembler.cc b/src/assembler.cc |
index 4aac08d54167b02d1bfe8368e7c3213e67b56d79..806bc3ce508345638721495c9687e748e13d33db 100644 |
--- a/src/assembler.cc |
+++ b/src/assembler.cc |
@@ -1025,12 +1025,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) { |