OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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 | 5 |
6 #ifndef V8_REGEXP_JSREGEXP_INL_H_ | 6 #ifndef V8_REGEXP_JSREGEXP_INL_H_ |
7 #define V8_REGEXP_JSREGEXP_INL_H_ | 7 #define V8_REGEXP_JSREGEXP_INL_H_ |
8 | 8 |
9 #include "src/allocation.h" | 9 #include "src/allocation.h" |
10 #include "src/handles.h" | |
11 #include "src/heap/heap.h" | 10 #include "src/heap/heap.h" |
12 #include "src/objects.h" | 11 #include "src/objects.h" |
13 #include "src/regexp/jsregexp.h" | 12 #include "src/regexp/jsregexp.h" |
14 | 13 |
15 namespace v8 { | 14 namespace v8 { |
16 namespace internal { | 15 namespace internal { |
17 | 16 |
18 | 17 |
19 RegExpImpl::GlobalCache::~GlobalCache() { | 18 RegExpImpl::GlobalCache::~GlobalCache() { |
20 // Deallocate the register array if we allocated it in the constructor | 19 // Deallocate the register array if we allocated it in the constructor |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 index -= registers_per_match_; | 77 index -= registers_per_match_; |
79 } | 78 } |
80 return ®ister_array_[index]; | 79 return ®ister_array_[index]; |
81 } | 80 } |
82 | 81 |
83 | 82 |
84 } // namespace internal | 83 } // namespace internal |
85 } // namespace v8 | 84 } // namespace v8 |
86 | 85 |
87 #endif // V8_REGEXP_JSREGEXP_INL_H_ | 86 #endif // V8_REGEXP_JSREGEXP_INL_H_ |
OLD | NEW |