35 #ifndef V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_
36 #define V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_
41 #ifdef V8_INTERPRETED_REGEXP
43 void RegExpMacroAssemblerIrregexp::Emit(uint32_t
byte,
44 uint32_t twenty_four_bits) {
46 ASSERT(pc_ <= buffer_.length());
47 if (pc_ + 3 >= buffer_.length()) {
50 *
reinterpret_cast<uint32_t*
>(buffer_.start() + pc_) = word;
55 void RegExpMacroAssemblerIrregexp::Emit16(uint32_t word) {
56 ASSERT(pc_ <= buffer_.length());
57 if (pc_ + 1 >= buffer_.length()) {
60 *
reinterpret_cast<uint16_t*
>(buffer_.start() + pc_) = word;
65 void RegExpMacroAssemblerIrregexp::Emit8(uint32_t word) {
66 ASSERT(pc_ <= buffer_.length());
67 if (pc_ == buffer_.length()) {
70 *
reinterpret_cast<unsigned char*
>(buffer_.start() + pc_) = word;
75 void RegExpMacroAssemblerIrregexp::Emit32(uint32_t word) {
76 ASSERT(pc_ <= buffer_.length());
77 if (pc_ + 3 >= buffer_.length()) {
80 *
reinterpret_cast<uint32_t*
>(buffer_.start() + pc_) = word;
84 #endif // V8_INTERPRETED_REGEXP
88 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_
#define ASSERT(condition)