Index: src/regexp-macro-assembler-irregexp-inl.h |
=================================================================== |
--- src/regexp-macro-assembler-irregexp-inl.h (revision 1104) |
+++ src/regexp-macro-assembler-irregexp-inl.h (working copy) |
@@ -36,12 +36,14 @@ |
namespace v8 { namespace internal { |
-void RegExpMacroAssemblerIrregexp::Emit(uint32_t byte) { |
+void RegExpMacroAssemblerIrregexp::Emit(uint32_t byte, uint32_t twenty_four_bits) { |
Christian Plesner Hansen
2009/01/20 14:22:17
Maybe assert that twenty_four_bits does indeed onl
Erik Corry
2009/01/20 18:49:55
Right now we don't check so the assert would not a
|
+ uint32_t word = ((twenty_four_bits << BYTECODE_SHIFT) | byte); |
ASSERT(pc_ <= buffer_.length()); |
- if (pc_ == buffer_.length()) { |
+ if (pc_ + 3 >= buffer_.length()) { |
Expand(); |
} |
- buffer_[pc_++] = byte; |
+ Store32(buffer_.start() + pc_, word); |
+ pc_ += 4; |
} |