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

Side by Side Diff: test/unittests/test-utils.cc

Issue 2406803002: [turbofan] Enforce native context specialization. (Closed)
Patch Set: Remove unused variables Created 4 years, 2 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
« no previous file with comments | « test/unittests/test-utils.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/debug.h" 9 #include "src/debug/debug.h"
10 #include "src/flags.h" 10 #include "src/flags.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 78
79 namespace internal { 79 namespace internal {
80 80
81 TestWithIsolate::~TestWithIsolate() {} 81 TestWithIsolate::~TestWithIsolate() {}
82 82
83 TestWithIsolateAndZone::~TestWithIsolateAndZone() {} 83 TestWithIsolateAndZone::~TestWithIsolateAndZone() {}
84 84
85 Factory* TestWithIsolate::factory() const { return isolate()->factory(); } 85 Factory* TestWithIsolate::factory() const { return isolate()->factory(); }
86 86
87
88 base::RandomNumberGenerator* TestWithIsolate::random_number_generator() const { 87 base::RandomNumberGenerator* TestWithIsolate::random_number_generator() const {
89 return isolate()->random_number_generator(); 88 return isolate()->random_number_generator();
90 } 89 }
91 90
91 TestWithZone::~TestWithZone() {}
92 92
93 TestWithZone::~TestWithZone() {} 93 TestWithNativeContext::~TestWithNativeContext() {}
94
95 Handle<Context> TestWithNativeContext::native_context() const {
96 return isolate()->native_context();
97 }
94 98
95 } // namespace internal 99 } // namespace internal
96 } // namespace v8 100 } // namespace v8
OLDNEW
« no previous file with comments | « test/unittests/test-utils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698