Index: src/arm/codegen-arm.cc |
=================================================================== |
--- src/arm/codegen-arm.cc (revision 2290) |
+++ src/arm/codegen-arm.cc (working copy) |
@@ -3180,6 +3180,15 @@ |
} |
+void CodeGenerator::GenerateClassOf(ZoneList<Expression*>* args) { |
+ VirtualFrame::SpilledScope spilled_scope; |
+ ASSERT(args->length() == 1); |
+ LoadAndSpill(args->at(0)); // Load the object. |
+ frame_->CallRuntime(Runtime::kClassOf, 1); |
+ frame_->EmitPush(r0); |
+} |
+ |
+ |
void CodeGenerator::GenerateValueOf(ZoneList<Expression*>* args) { |
VirtualFrame::SpilledScope spilled_scope; |
ASSERT(args->length() == 1); |