OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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 "test/unittests/test-utils.h" | 5 #include "test/unittests/test-utils.h" |
6 | 6 |
7 #include "src/base/platform/time.h" | 7 #include "src/base/platform/time.h" |
| 8 #include "src/debug.h" |
8 #include "src/flags.h" | 9 #include "src/flags.h" |
9 #include "src/isolate-inl.h" | 10 #include "src/isolate.h" |
10 | 11 |
11 namespace v8 { | 12 namespace v8 { |
12 | 13 |
13 // static | 14 // static |
14 Isolate* TestWithIsolate::isolate_ = NULL; | 15 Isolate* TestWithIsolate::isolate_ = NULL; |
15 | 16 |
16 | 17 |
17 TestWithIsolate::TestWithIsolate() | 18 TestWithIsolate::TestWithIsolate() |
18 : isolate_scope_(isolate()), handle_scope_(isolate()) {} | 19 : isolate_scope_(isolate()), handle_scope_(isolate()) {} |
19 | 20 |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 76 |
76 base::RandomNumberGenerator* TestWithIsolate::random_number_generator() const { | 77 base::RandomNumberGenerator* TestWithIsolate::random_number_generator() const { |
77 return isolate()->random_number_generator(); | 78 return isolate()->random_number_generator(); |
78 } | 79 } |
79 | 80 |
80 | 81 |
81 TestWithZone::~TestWithZone() {} | 82 TestWithZone::~TestWithZone() {} |
82 | 83 |
83 } // namespace internal | 84 } // namespace internal |
84 } // namespace v8 | 85 } // namespace v8 |
OLD | NEW |