OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 1 // Copyright 2016 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 #include <limits.h> | 5 #include <limits.h> |
6 #include <stddef.h> | 6 #include <stddef.h> |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "include/v8.h" | 9 #include "include/v8.h" |
10 #include "src/factory.h" | 10 #include "src/factory.h" |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 i::MaybeHandle<i::JSRegExp> maybe_regexp = | 64 i::MaybeHandle<i::JSRegExp> maybe_regexp = |
65 i::JSRegExp::New(source, static_cast<i::JSRegExp::Flags>(flags)); | 65 i::JSRegExp::New(source, static_cast<i::JSRegExp::Flags>(flags)); |
66 if (!maybe_regexp.ToHandle(®exp)) continue; | 66 if (!maybe_regexp.ToHandle(®exp)) continue; |
67 } | 67 } |
68 Test(isolate, regexp, one_byte, results_array); | 68 Test(isolate, regexp, one_byte, results_array); |
69 Test(isolate, regexp, two_byte, results_array); | 69 Test(isolate, regexp, two_byte, results_array); |
70 Test(isolate, regexp, factory->empty_string(), results_array); | 70 Test(isolate, regexp, factory->empty_string(), results_array); |
71 Test(isolate, regexp, source, results_array); | 71 Test(isolate, regexp, source, results_array); |
72 } | 72 } |
73 | 73 |
| 74 isolate->RequestGarbageCollectionForTesting( |
| 75 v8::Isolate::kFullGarbageCollection); |
74 return 0; | 76 return 0; |
75 } | 77 } |
OLD | NEW |