Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/jsregexp-inl.h

Issue 304153016: Use full include paths everywhere (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/jsregexp.cc ('k') | src/lazy-instance.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_JSREGEXP_INL_H_ 6 #ifndef V8_JSREGEXP_INL_H_
7 #define V8_JSREGEXP_INL_H_ 7 #define V8_JSREGEXP_INL_H_
8 8
9 #include "allocation.h" 9 #include "src/allocation.h"
10 #include "handles.h" 10 #include "src/handles.h"
11 #include "heap.h" 11 #include "src/heap.h"
12 #include "jsregexp.h" 12 #include "src/jsregexp.h"
13 #include "objects.h" 13 #include "src/objects.h"
14 14
15 namespace v8 { 15 namespace v8 {
16 namespace internal { 16 namespace internal {
17 17
18 18
19 RegExpImpl::GlobalCache::~GlobalCache() { 19 RegExpImpl::GlobalCache::~GlobalCache() {
20 // Deallocate the register array if we allocated it in the constructor 20 // Deallocate the register array if we allocated it in the constructor
21 // (as opposed to using the existing jsregexp_static_offsets_vector). 21 // (as opposed to using the existing jsregexp_static_offsets_vector).
22 if (register_array_size_ > Isolate::kJSRegexpStaticOffsetsVectorSize) { 22 if (register_array_size_ > Isolate::kJSRegexpStaticOffsetsVectorSize) {
23 DeleteArray(register_array_); 23 DeleteArray(register_array_);
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 // After a failed match we shift back by one result. 74 // After a failed match we shift back by one result.
75 index -= registers_per_match_; 75 index -= registers_per_match_;
76 } 76 }
77 return &register_array_[index]; 77 return &register_array_[index];
78 } 78 }
79 79
80 80
81 } } // namespace v8::internal 81 } } // namespace v8::internal
82 82
83 #endif // V8_JSREGEXP_INL_H_ 83 #endif // V8_JSREGEXP_INL_H_
OLDNEW
« no previous file with comments | « src/jsregexp.cc ('k') | src/lazy-instance.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698