Fix C++ comments that I introduced.

This commit is contained in:
dbaron%dbaron.org 2006-03-24 08:32:09 +00:00
Родитель 548123895a
Коммит 3bd90a7a87
3 изменённых файлов: 15 добавлений и 9 удалений

Просмотреть файл

@ -2447,9 +2447,11 @@ static stack_frame* getStackFrame()
#elif defined(__x86_64__)
__asm__( "movq %%rbp, %0" : "=g"(currentFrame));
#else
// It would be nice if this worked uniformly, but at least on i386 and
// x86_64, it stopped working with gcc 4.1, because it points to the
// end of the saved registers instead of the start.
/*
* It would be nice if this worked uniformly, but at least on i386 and
* x86_64, it stopped working with gcc 4.1, because it points to the
* end of the saved registers instead of the start.
*/
currentFrame = (stack_frame*)__builtin_frame_address(0);
#endif
currentFrame = currentFrame->next;

Просмотреть файл

@ -177,9 +177,11 @@ JS_Backtrace(int skip)
#elif defined(__x86_64__)
__asm__( "movq %%rbp, %0" : "=g"(bp));
#else
// It would be nice if this worked uniformly, but at least on i386 and
// x86_64, it stopped working with gcc 4.1, because it points to the
// end of the saved registers instead of the start.
/*
* It would be nice if this worked uniformly, but at least on i386 and
* x86_64, it stopped working with gcc 4.1, because it points to the
* end of the saved registers instead of the start.
*/
bp = (void**) __builtin_frame_address(0);
#endif
while (--skip >= 0) {

Просмотреть файл

@ -1353,9 +1353,11 @@ backtrace(int skip)
#elif defined(__x86_64__)
__asm__( "movq %%rbp, %0" : "=g"(bp));
#else
// It would be nice if this worked uniformly, but at least on i386 and
// x86_64, it stopped working with gcc 4.1, because it points to the
// end of the saved registers instead of the start.
/*
* It would be nice if this worked uniformly, but at least on i386 and
* x86_64, it stopped working with gcc 4.1, because it points to the
* end of the saved registers instead of the start.
*/
bp = (void**) __builtin_frame_address(0);
#endif
while (--skip >= 0) {