Index: src/arm/codegen-arm.cc |
diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc |
index 312bfd58dcd7c38bb945d6463fbc04eba997d488..f6bf5d043b02b2c9d7162d17b9046e10a40c05b0 100644 |
--- a/src/arm/codegen-arm.cc |
+++ b/src/arm/codegen-arm.cc |
@@ -4501,6 +4501,20 @@ void CodeGenerator::GenerateNumberToString(ZoneList<Expression*>* args) { |
} |
+void CodeGenerator::GenerateSwapElements(ZoneList<Expression*>* args) { |
+ Comment cmnt(masm_, "[ GenerateSwapElements"); |
+ |
+ ASSERT_EQ(3, args->length()); |
+ |
+ Load(args->at(0)); |
+ Load(args->at(1)); |
+ Load(args->at(2)); |
+ |
+ frame_->CallRuntime(Runtime::kSwapElements, 3); |
+ frame_->EmitPush(r0); |
+} |
+ |
+ |
void CodeGenerator::GenerateCallFunction(ZoneList<Expression*>* args) { |
Comment cmnt(masm_, "[ GenerateCallFunction"); |