Index: src/mips/lithium-codegen-mips.cc |
diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc |
index 34e1a8225d37a7a462cf35bd48b6968d0e511560..19c81b59fd03579a4bd6a86cc3f4fc72e56da60a 100644 |
--- a/src/mips/lithium-codegen-mips.cc |
+++ b/src/mips/lithium-codegen-mips.cc |
@@ -2764,6 +2764,15 @@ void LCodeGen::DoOuterContext(LOuterContext* instr) { |
} |
+void LCodeGen::DoDeclareGlobals(LDeclareGlobals* instr) { |
+ __ LoadHeapObject(scratch0(), instr->hydrogen()->pairs()); |
+ __ li(scratch1(), Operand(Smi::FromInt(instr->hydrogen()->flags()))); |
+ // The context is the first argument. |
+ __ Push(cp, scratch0(), scratch1()); |
+ CallRuntime(Runtime::kDeclareGlobals, 3, instr); |
+} |
+ |
+ |
void LCodeGen::DoGlobalObject(LGlobalObject* instr) { |
Register context = ToRegister(instr->context()); |
Register result = ToRegister(instr->result()); |