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 "src/v8.h" | 8 #include "src/v8.h" |
| 9 |
9 #include "src/ast.h" | 10 #include "src/ast.h" |
10 #include "src/bytecodes-irregexp.h" | 11 #include "src/bytecodes-irregexp.h" |
11 | 12 |
12 #ifndef V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_ | 13 #ifndef V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_ |
13 #define V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_ | 14 #define V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_ |
14 | 15 |
15 namespace v8 { | 16 namespace v8 { |
16 namespace internal { | 17 namespace internal { |
17 | 18 |
18 #ifdef V8_INTERPRETED_REGEXP | 19 #ifdef V8_INTERPRETED_REGEXP |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 } | 57 } |
57 *reinterpret_cast<uint32_t*>(buffer_.start() + pc_) = word; | 58 *reinterpret_cast<uint32_t*>(buffer_.start() + pc_) = word; |
58 pc_ += 4; | 59 pc_ += 4; |
59 } | 60 } |
60 | 61 |
61 #endif // V8_INTERPRETED_REGEXP | 62 #endif // V8_INTERPRETED_REGEXP |
62 | 63 |
63 } } // namespace v8::internal | 64 } } // namespace v8::internal |
64 | 65 |
65 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_ | 66 #endif // V8_REGEXP_MACRO_ASSEMBLER_IRREGEXP_INL_H_ |
OLD | NEW |