| Index: src/isolate.cc
|
| diff --git a/src/isolate.cc b/src/isolate.cc
|
| index 34b96730103894efcf4e026ae5e682ea0d9df764..8ffa7c8a1371c27cf1b36983e9873fafd3cbea80 100644
|
| --- a/src/isolate.cc
|
| +++ b/src/isolate.cc
|
| @@ -25,7 +25,6 @@
|
| #include "src/heap-profiler.h"
|
| #include "src/hydrogen.h"
|
| #include "src/ic/stub-cache.h"
|
| -#include "src/isolate-inl.h"
|
| #include "src/lithium-allocator.h"
|
| #include "src/log.h"
|
| #include "src/messages.h"
|
| @@ -2407,6 +2406,19 @@ CallInterfaceDescriptorData* Isolate::call_descriptor_data(int index) {
|
| }
|
|
|
|
|
| +base::RandomNumberGenerator* Isolate::random_number_generator() {
|
| + if (random_number_generator_ == NULL) {
|
| + if (FLAG_random_seed != 0) {
|
| + random_number_generator_ =
|
| + new base::RandomNumberGenerator(FLAG_random_seed);
|
| + } else {
|
| + random_number_generator_ = new base::RandomNumberGenerator();
|
| + }
|
| + }
|
| + return random_number_generator_;
|
| +}
|
| +
|
| +
|
| Object* Isolate::FindCodeObject(Address a) {
|
| return inner_pointer_to_code_cache()->GcSafeFindCodeForInnerPointer(a);
|
| }
|
| @@ -2661,6 +2673,17 @@ bool StackLimitCheck::JsHasOverflowed() const {
|
| }
|
|
|
|
|
| +SaveContext::SaveContext(Isolate* isolate)
|
| + : isolate_(isolate), prev_(isolate->save_context()) {
|
| + if (isolate->context() != NULL) {
|
| + context_ = Handle<Context>(isolate->context());
|
| + }
|
| + isolate->set_save_context(this);
|
| +
|
| + c_entry_fp_ = isolate->c_entry_fp(isolate->thread_local_top());
|
| +}
|
| +
|
| +
|
| bool PostponeInterruptsScope::Intercept(StackGuard::InterruptFlag flag) {
|
| // First check whether the previous scope intercepts.
|
| if (prev_ && prev_->Intercept(flag)) return true;
|
|
|