aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode.c
diff options
context:
space:
mode:
authorStefan Monnier2013-03-10 17:46:55 -0400
committerStefan Monnier2013-03-10 17:46:55 -0400
commit99ec16475a6d1bbe3b308f89e45afb0096e02f0e (patch)
tree1fac97bf5941de5d6934febe7c446624a2c86f1b /src/bytecode.c
parentd3e9f3a8431d8d3e132b19f9b5181e8afed2d1db (diff)
downloademacs-99ec16475a6d1bbe3b308f89e45afb0096e02f0e.tar.gz
emacs-99ec16475a6d1bbe3b308f89e45afb0096e02f0e.zip
* src/bytecode.c (struct byte_stack): Remove `constants' when unused.
Diffstat (limited to 'src/bytecode.c')
-rw-r--r--src/bytecode.c10
1 files changed, 7 insertions, 3 deletions
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);