Permalink
Browse files

Use stack_clear in pop_many not inefficient loop

  • Loading branch information...
ryoqun committed May 10, 2012
1 parent 62d48b1 commit b2570c39652626f0debc7051e4d864bd08d27b02
Showing with 1 addition and 3 deletions.
  1. +1 −3 vm/instructions.def
View
@@ -216,9 +216,7 @@ end
# ...
instruction pop_many(count) [ +count -- ]
- for(intptr_t i = 0; i < count; i++) {
- (void)stack_pop();
- }
+ stack_clear(count);
end
# [Description]

0 comments on commit b2570c3

Please sign in to comment.