| OLD | NEW | 
|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 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 | 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 #ifndef V8_ISOLATE_INL_H_ | 5 #ifndef V8_ISOLATE_INL_H_ | 
| 6 #define V8_ISOLATE_INL_H_ | 6 #define V8_ISOLATE_INL_H_ | 
| 7 | 7 | 
| 8 #include "debug.h" | 8 #include "src/debug.h" | 
| 9 #include "isolate.h" | 9 #include "src/isolate.h" | 
| 10 #include "utils/random-number-generator.h" | 10 #include "src/utils/random-number-generator.h" | 
| 11 | 11 | 
| 12 namespace v8 { | 12 namespace v8 { | 
| 13 namespace internal { | 13 namespace internal { | 
| 14 | 14 | 
| 15 | 15 | 
| 16 SaveContext::SaveContext(Isolate* isolate) | 16 SaveContext::SaveContext(Isolate* isolate) | 
| 17   : isolate_(isolate), | 17   : isolate_(isolate), | 
| 18     prev_(isolate->save_context()) { | 18     prev_(isolate->save_context()) { | 
| 19   if (isolate->context() != NULL) { | 19   if (isolate->context() != NULL) { | 
| 20     context_ = Handle<Context>(isolate->context()); | 20     context_ = Handle<Context>(isolate->context()); | 
| (...skipping 12 matching lines...) Expand all  Loading... | 
| 33 RandomNumberGenerator* Isolate::random_number_generator() { | 33 RandomNumberGenerator* Isolate::random_number_generator() { | 
| 34   if (random_number_generator_ == NULL) { | 34   if (random_number_generator_ == NULL) { | 
| 35     random_number_generator_ = new RandomNumberGenerator; | 35     random_number_generator_ = new RandomNumberGenerator; | 
| 36   } | 36   } | 
| 37   return random_number_generator_; | 37   return random_number_generator_; | 
| 38 } | 38 } | 
| 39 | 39 | 
| 40 } }  // namespace v8::internal | 40 } }  // namespace v8::internal | 
| 41 | 41 | 
| 42 #endif  // V8_ISOLATE_INL_H_ | 42 #endif  // V8_ISOLATE_INL_H_ | 
| OLD | NEW | 
|---|