Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index ef2dbb3892fe6c86e6e6481dab59f318af073686..8ad30895a77b47b8145d32203079682b41ddf952 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -161,6 +161,30 @@ static void EmitCheckForHeapNumber(MacroAssembler* masm, Register operand, |
} |
+void HydrogenCodeStub::GenerateLightweightMiss(MacroAssembler* masm) { |
+ // Update the static counter each time a new code stub is generated. |
+ Isolate* isolate = masm->isolate(); |
+ isolate->counters()->code_stubs()->Increment(); |
+ |
+ CodeStubInterfaceDescriptor* descriptor = GetInterfaceDescriptor(isolate); |
+ int param_count = descriptor->register_param_count_; |
+ { |
+ // Call the runtime system in a fresh internal frame. |
+ FrameScope scope(masm, StackFrame::INTERNAL); |
+ ASSERT(descriptor->register_param_count_ == 0 || |
+ r0.is(descriptor->register_params_[param_count - 1])); |
+ // Push arguments |
+ for (int i = 0; i < param_count; ++i) { |
+ __ push(descriptor->register_params_[i]); |
+ } |
+ ExternalReference miss = descriptor->miss_handler_; |
+ __ CallExternalReference(miss, descriptor->register_param_count_); |
+ } |
+ |
+ __ Ret(); |
+} |
+ |
+ |
void ToNumberStub::Generate(MacroAssembler* masm) { |
// The ToNumber stub takes one argument in eax. |
Label check_heap_number, call_builtin; |