| OLD | NEW |
| 1 // Copyright 2008-2009 the V8 project authors. All rights reserved. | 1 // Copyright 2008-2009 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // A light-weight assembler for the Irregexp byte code. | 5 // A light-weight assembler for the Irregexp byte code. |
| 6 | 6 |
| 7 | 7 |
| 8 #include "v8.h" | 8 #include "src/v8.h" |
| 9 #include "ast.h" | 9 #include "src/ast.h" |
| 10 #include "bytecodes-irregexp.h" | 10 #include "src/bytecodes-irregexp.h" |
| 11 | 11 |
| 12 #ifndef V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_ | 12 #ifndef V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_ |
| 13 #define V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_ | 13 #define V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_ |
| 14 | 14 |
| 15 namespace v8 { | 15 namespace v8 { |
| 16 namespace internal { | 16 namespace internal { |
| 17 | 17 |
| 18 #ifdef V8_INTERPRETED_REGEXP | 18 #ifdef V8_INTERPRETED_REGEXP |
| 19 | 19 |
| 20 void RegExpMacroAssemblerIrregexp::Emit(uint32_t byte, | 20 void RegExpMacroAssemblerIrregexp::Emit(uint32_t byte, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 } | 56 } |
| 57 *reinterpret_cast<uint32_t*>(buffer_.start() + pc_) = word; | 57 *reinterpret_cast<uint32_t*>(buffer_.start() + pc_) = word; |
| 58 pc_ += 4; | 58 pc_ += 4; |
| 59 } | 59 } |
| 60 | 60 |
| 61 #endif // V8_INTERPRETED_REGEXP | 61 #endif // V8_INTERPRETED_REGEXP |
| 62 | 62 |
| 63 } } // namespace v8::internal | 63 } } // namespace v8::internal |
| 64 | 64 |
| 65 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_ | 65 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_ |
| OLD | NEW |