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

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

Issue 1051393003: Removed src/{isolate,property-details,utils}-inl.h (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 | « src/isolate.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef V8_ISOLATE_INL_H_
6 #define V8_ISOLATE_INL_H_
7
8 #include "src/base/utils/random-number-generator.h"
9 #include "src/debug.h"
10 #include "src/isolate.h"
11
12 namespace v8 {
13 namespace internal {
14
15
16 SaveContext::SaveContext(Isolate* isolate)
17 : isolate_(isolate),
18 prev_(isolate->save_context()) {
19 if (isolate->context() != NULL) {
20 context_ = Handle<Context>(isolate->context());
21 }
22 isolate->set_save_context(this);
23
24 c_entry_fp_ = isolate->c_entry_fp(isolate->thread_local_top());
25 }
26
27
28 base::RandomNumberGenerator* Isolate::random_number_generator() {
29 if (random_number_generator_ == NULL) {
30 if (FLAG_random_seed != 0) {
31 random_number_generator_ =
32 new base::RandomNumberGenerator(FLAG_random_seed);
33 } else {
34 random_number_generator_ = new base::RandomNumberGenerator();
35 }
36 }
37 return random_number_generator_;
38 }
39
40 } } // namespace v8::internal
41
42 #endif // V8_ISOLATE_INL_H_
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698