Revision: 8338
Author:   [email protected]
Date:     Tue Jun 21 00:32:23 2011
Log:      MIPS: Update an outdated comment in the CEntryStub.

Following r8289 (bf0c0cf).

BUG=
TEST=

Review URL: http://codereview.chromium.org//7211007
Patch from Paul Lind <[email protected]>.
http://code.google.com/p/v8/source/detail?r=8338

Modified:
 /branches/bleeding_edge/src/mips/code-stubs-mips.cc

=======================================
--- /branches/bleeding_edge/src/mips/code-stubs-mips.cc Fri Jun 17 03:45:29 2011 +++ /branches/bleeding_edge/src/mips/code-stubs-mips.cc Tue Jun 21 00:32:23 2011
@@ -3542,15 +3542,10 @@

   __ li(a2, Operand(ExternalReference::isolate_address()));

-  // From arm version of this function:
-  // TODO(1242173): To let the GC traverse the return address of the exit
-  // frames, we need to know where the return address is. Right now,
-  // we push it on the stack to be able to find it again, but we never
-  // restore from it in case of changes, which makes it impossible to
- // support moving the C entry code stub. This should be fixed, but currently - // this is OK because the CEntryStub gets generated so early in the V8 boot
-  // sequence that it is not moving ever.
-
+ // To let the GC traverse the return address of the exit frames, we need to
+  // know where the return address is. The CEntryStub is unmovable, so
+  // we can store the address on the stack to be able to find it again and
+  // we never have to restore it, because it will not change.
   { Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm);
// This branch-and-link sequence is needed to find the current PC on mips,
     // saved to the ra register.

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to