Revision: 21946
Author:   [email protected]
Date:     Mon Jun 23 16:49:52 2014 UTC
Log:      MIPS: Introduce intrinsic to expose debug state to generated code.

Port r21908 (527abba)

BUG=
[email protected]

Review URL: https://codereview.chromium.org/343193005
http://code.google.com/p/v8/source/detail?r=21946

Modified:
 /branches/bleeding_edge/src/mips/full-codegen-mips.cc

=======================================
--- /branches/bleeding_edge/src/mips/full-codegen-mips.cc Tue Jun 17 17:06:08 2014 UTC +++ /branches/bleeding_edge/src/mips/full-codegen-mips.cc Mon Jun 23 16:49:52 2014 UTC
@@ -4055,6 +4055,17 @@
   __ bind(&done);
   context()->Plug(v0);
 }
+
+
+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) {

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to