Revision: 13093
Author: [email protected]
Date: Thu Nov 29 06:04:27 2012
Log: MIPS: Also time external callbacks from generated code.
Port r13078 (73f25483)
BUG=
TEST=
Review URL: https://chromiumcodereview.appspot.com/11316236
Patch from Akos Palfi <[email protected]>.
http://code.google.com/p/v8/source/detail?r=13093
Modified:
/branches/bleeding_edge/src/mips/macro-assembler-mips.cc
=======================================
--- /branches/bleeding_edge/src/mips/macro-assembler-mips.cc Thu Nov 29
01:12:31 2012
+++ /branches/bleeding_edge/src/mips/macro-assembler-mips.cc Thu Nov 29
06:04:27 2012
@@ -3976,6 +3976,14 @@
Addu(s2, s2, Operand(1));
sw(s2, MemOperand(s3, kLevelOffset));
+ if (FLAG_log_timer_events) {
+ FrameScope frame(this, StackFrame::MANUAL);
+ PushSafepointRegisters();
+ PrepareCallCFunction(0, a0);
+
CallCFunction(ExternalReference::log_enter_external_function(isolate()), 0);
+ PopSafepointRegisters();
+ }
+
// The O32 ABI requires us to pass a pointer in a0 where the returned
struct
// (4 bytes) will be placed. This is also built into the Simulator.
// Set up the pointer to the returned value (a0). It was allocated in
@@ -3988,6 +3996,14 @@
DirectCEntryStub stub;
stub.GenerateCall(this, function);
+ if (FLAG_log_timer_events) {
+ FrameScope frame(this, StackFrame::MANUAL);
+ PushSafepointRegisters();
+ PrepareCallCFunction(0, a0);
+
CallCFunction(ExternalReference::log_leave_external_function(isolate()), 0);
+ PopSafepointRegisters();
+ }
+
// As mentioned above, on MIPS a pointer is returned - we need to
dereference
// it to get the actual return value (which is also a pointer).
lw(v0, MemOperand(v0));
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev