Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Use stack_clear in pop_many not inefficient loop

  • Loading branch information...
commit b2570c39652626f0debc7051e4d864bd08d27b02 1 parent 62d48b1
@ryoqun authored
Showing with 1 addition and 3 deletions.
  1. +1 −3 vm/instructions.def
View
4 vm/instructions.def
@@ -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]
Please sign in to comment.
Something went wrong with that request. Please try again.