diff options
| author | Stefan Monnier | 2013-03-10 17:46:55 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2013-03-10 17:46:55 -0400 |
| commit | 99ec16475a6d1bbe3b308f89e45afb0096e02f0e (patch) | |
| tree | 1fac97bf5941de5d6934febe7c446624a2c86f1b /src | |
| parent | d3e9f3a8431d8d3e132b19f9b5181e8afed2d1db (diff) | |
| download | emacs-99ec16475a6d1bbe3b308f89e45afb0096e02f0e.tar.gz emacs-99ec16475a6d1bbe3b308f89e45afb0096e02f0e.zip | |
* src/bytecode.c (struct byte_stack): Remove `constants' when unused.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 16 | ||||
| -rw-r--r-- | src/bytecode.c | 10 |
2 files changed, 17 insertions, 9 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index b58bbc0a525..044bd5fa245 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,14 +1,18 @@ | |||
| 1 | 2013-03-10 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * bytecode.c (struct byte_stack): Remove `constants' when unused. | ||
| 4 | |||
| 1 | 2013-03-10 Eli Zaretskii <eliz@gnu.org> | 5 | 2013-03-10 Eli Zaretskii <eliz@gnu.org> |
| 2 | 6 | ||
| 3 | * xdisp.c (display_tool_bar_line, redisplay_tool_bar) | 7 | * xdisp.c (display_tool_bar_line, redisplay_tool_bar) |
| 4 | (redisplay_internal, set_cursor_from_row, try_window) | 8 | (redisplay_internal, set_cursor_from_row, try_window) |
| 5 | (try_window_id, dump_glyph_row, extend_face_to_end_of_line) | 9 | (try_window_id, dump_glyph_row, extend_face_to_end_of_line) |
| 6 | (display_line, notice_overwritten_cursor) | 10 | (display_line, notice_overwritten_cursor) |
| 7 | (mouse_face_from_buffer_pos, note_mouse_highlight): Use | 11 | (mouse_face_from_buffer_pos, note_mouse_highlight): |
| 8 | MATRIX_ROW_DISPLAYS_TEXT_P. | 12 | Use MATRIX_ROW_DISPLAYS_TEXT_P. |
| 9 | (note_mouse_highlight): Use MATRIX_ROW_GLYPH_START. | 13 | (note_mouse_highlight): Use MATRIX_ROW_GLYPH_START. |
| 10 | (mouse_face_from_string_pos, fast_find_string_pos): Use | 14 | (mouse_face_from_string_pos, fast_find_string_pos): |
| 11 | MATRIX_ROW_VPOS. | 15 | Use MATRIX_ROW_VPOS. |
| 12 | 16 | ||
| 13 | * xfns.c (Fx_show_tip): Use MATRIX_ROW_DISPLAYS_TEXT_P. | 17 | * xfns.c (Fx_show_tip): Use MATRIX_ROW_DISPLAYS_TEXT_P. |
| 14 | 18 | ||
| @@ -25,8 +29,8 @@ | |||
| 25 | 29 | ||
| 26 | * coding.c (detect_coding): Cound the heading ASCII bytes in the | 30 | * coding.c (detect_coding): Cound the heading ASCII bytes in the |
| 27 | case of detection for coding_category_utf_8_auto. | 31 | case of detection for coding_category_utf_8_auto. |
| 28 | (decode_coding_gap) [not CODING_DISABLE_ASCII_OPTIMIZATION]: Skip | 32 | (decode_coding_gap) [not CODING_DISABLE_ASCII_OPTIMIZATION]: |
| 29 | decoding if all bytes are ASCII. | 33 | Skip decoding if all bytes are ASCII. |
| 30 | 34 | ||
| 31 | * insdel.c (adjust_after_replace): Make it public. New arg | 35 | * insdel.c (adjust_after_replace): Make it public. New arg |
| 32 | text_at_gap_tail. | 36 | text_at_gap_tail. |
diff --git a/src/bytecode.c b/src/bytecode.c index bd8abe85e04..628c4d90cf3 100644 --- a/src/bytecode.c +++ b/src/bytecode.c | |||
| @@ -313,9 +313,11 @@ struct byte_stack | |||
| 313 | Lisp_Object byte_string; | 313 | Lisp_Object byte_string; |
| 314 | const unsigned char *byte_string_start; | 314 | const unsigned char *byte_string_start; |
| 315 | 315 | ||
| 316 | #if BYTE_MARK_STACK | ||
| 316 | /* The vector of constants used during byte-code execution. Storing | 317 | /* The vector of constants used during byte-code execution. Storing |
| 317 | this here protects it from GC because mark_byte_stack marks it. */ | 318 | this here protects it from GC because mark_byte_stack marks it. */ |
| 318 | Lisp_Object constants; | 319 | Lisp_Object constants; |
| 320 | #endif | ||
| 319 | 321 | ||
| 320 | /* Next entry in byte_stack_list. */ | 322 | /* Next entry in byte_stack_list. */ |
| 321 | struct byte_stack *next; | 323 | struct byte_stack *next; |
| @@ -379,12 +381,12 @@ unmark_byte_stack (void) | |||
| 379 | } | 381 | } |
| 380 | 382 | ||
| 381 | 383 | ||
| 382 | /* Fetch the next byte from the bytecode stream */ | 384 | /* Fetch the next byte from the bytecode stream. */ |
| 383 | 385 | ||
| 384 | #define FETCH *stack.pc++ | 386 | #define FETCH *stack.pc++ |
| 385 | 387 | ||
| 386 | /* Fetch two bytes from the bytecode stream and make a 16-bit number | 388 | /* Fetch two bytes from the bytecode stream and make a 16-bit number |
| 387 | out of them */ | 389 | out of them. */ |
| 388 | 390 | ||
| 389 | #define FETCH2 (op = FETCH, op + (FETCH << 8)) | 391 | #define FETCH2 (op = FETCH, op + (FETCH << 8)) |
| 390 | 392 | ||
| @@ -404,7 +406,7 @@ unmark_byte_stack (void) | |||
| 404 | #define DISCARD(n) (top -= (n)) | 406 | #define DISCARD(n) (top -= (n)) |
| 405 | 407 | ||
| 406 | /* Get the value which is at the top of the execution stack, but don't | 408 | /* Get the value which is at the top of the execution stack, but don't |
| 407 | pop it. */ | 409 | pop it. */ |
| 408 | 410 | ||
| 409 | #define TOP (*top) | 411 | #define TOP (*top) |
| 410 | 412 | ||
| @@ -535,7 +537,9 @@ exec_byte_code (Lisp_Object bytestr, Lisp_Object vector, Lisp_Object maxdepth, | |||
| 535 | 537 | ||
| 536 | stack.byte_string = bytestr; | 538 | stack.byte_string = bytestr; |
| 537 | stack.pc = stack.byte_string_start = SDATA (bytestr); | 539 | stack.pc = stack.byte_string_start = SDATA (bytestr); |
| 540 | #if BYTE_MARK_STACK | ||
| 538 | stack.constants = vector; | 541 | stack.constants = vector; |
| 542 | #endif | ||
| 539 | if (MAX_ALLOCA / word_size <= XFASTINT (maxdepth)) | 543 | if (MAX_ALLOCA / word_size <= XFASTINT (maxdepth)) |
| 540 | memory_full (SIZE_MAX); | 544 | memory_full (SIZE_MAX); |
| 541 | top = alloca ((XFASTINT (maxdepth) + 1) * sizeof *top); | 545 | top = alloca ((XFASTINT (maxdepth) + 1) * sizeof *top); |