| 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 "include/libplatform/libplatform.h" | 7 #include "include/libplatform/libplatform.h" |
| 8 #include "src/base/platform/time.h" | 8 #include "src/base/platform/time.h" |
| 9 #include "src/debug.h" | 9 #include "src/debug/debug.h" |
| 10 #include "src/flags.h" | 10 #include "src/flags.h" |
| 11 #include "src/isolate.h" | 11 #include "src/isolate.h" |
| 12 #include "src/v8.h" | 12 #include "src/v8.h" |
| 13 | 13 |
| 14 namespace v8 { | 14 namespace v8 { |
| 15 | 15 |
| 16 class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator { | 16 class ArrayBufferAllocator : public v8::ArrayBuffer::Allocator { |
| 17 public: | 17 public: |
| 18 virtual void* Allocate(size_t length) { | 18 virtual void* Allocate(size_t length) { |
| 19 void* data = AllocateUninitialized(length); | 19 void* data = AllocateUninitialized(length); |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 base::RandomNumberGenerator* TestWithIsolate::random_number_generator() const { | 100 base::RandomNumberGenerator* TestWithIsolate::random_number_generator() const { |
| 101 return isolate()->random_number_generator(); | 101 return isolate()->random_number_generator(); |
| 102 } | 102 } |
| 103 | 103 |
| 104 | 104 |
| 105 TestWithZone::~TestWithZone() {} | 105 TestWithZone::~TestWithZone() {} |
| 106 | 106 |
| 107 } // namespace internal | 107 } // namespace internal |
| 108 } // namespace v8 | 108 } // namespace v8 |
| OLD | NEW |