Index: src/ia32/codegen-ia32.cc |
=================================================================== |
--- src/ia32/codegen-ia32.cc (revision 2155) |
+++ src/ia32/codegen-ia32.cc (working copy) |
@@ -4913,6 +4913,15 @@ |
} |
+void CodeGenerator::GenerateRandomPositiveSmi(ZoneList<Expression*>* args) { |
+ ASSERT(args->length() == 0); |
+ frame_->SpillAll(); |
+ __ call(FUNCTION_ADDR(V8::RandomPositiveSmi), RelocInfo::RUNTIME_ENTRY); |
+ Result result = allocator_->Allocate(eax); |
+ frame_->Push(&result); |
+} |
+ |
+ |
void CodeGenerator::VisitCallRuntime(CallRuntime* node) { |
if (CheckForInlineRuntimeCall(node)) { |
return; |