Index: src/x64/virtual-frame-x64.cc |
diff --git a/src/x64/virtual-frame-x64.cc b/src/x64/virtual-frame-x64.cc |
index 84bd06275fa830697796b69d5ed3262ece296c4c..125f919c679b5e9583fd6c31e9a8dd016c67f1a2 100644 |
--- a/src/x64/virtual-frame-x64.cc |
+++ b/src/x64/virtual-frame-x64.cc |
@@ -809,6 +809,19 @@ void VirtualFrame::SyncRange(int begin, int end) { |
} |
} |
+ |
+Result VirtualFrame::InvokeBuiltin(Builtins::JavaScript id, |
+ InvokeFlag flag, |
+ int arg_count) { |
+ PrepareForCall(arg_count, arg_count); |
+ ASSERT(cgen()->HasValidEntryRegisters()); |
+ __ InvokeBuiltin(id, flag); |
+ Result result = cgen()->allocator()->Allocate(rax); |
+ ASSERT(result.is_valid()); |
+ return result; |
+} |
+ |
+ |
//------------------------------------------------------------------------------ |
// Virtual frame stub and IC calling functions. |