Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 41acad355f9957256e1093f0aa2e56cb905ae9cd..bd35937d37a52fbd3baa12d58434d0e50946ecc8 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -4057,6 +4057,17 @@ void FullCodeGenerator::EmitFastAsciiArrayJoin(CallRuntime* expr) { |
} |
+void FullCodeGenerator::EmitDebugIsActive(CallRuntime* expr) { |
+ ASSERT(expr->arguments()->length() == 0); |
+ ExternalReference debug_is_active = |
+ ExternalReference::debug_is_active_address(isolate()); |
+ __ li(at, Operand(debug_is_active)); |
+ __ lb(v0, MemOperand(at)); |
+ __ SmiTag(v0); |
+ context()->Plug(v0); |
+} |
+ |
+ |
void FullCodeGenerator::VisitCallRuntime(CallRuntime* expr) { |
if (expr->function() != NULL && |
expr->function()->intrinsic_type == Runtime::INLINE) { |