Revision f230a1cf deps/v8/test/cctest/test-random.cc
deps/v8/test/cctest/test-random.cc | ||
---|---|---|
69 | 69 |
TEST(CrankshaftRandom) { |
70 | 70 |
v8::V8::Initialize(); |
71 | 71 |
// Skip test if crankshaft is disabled. |
72 |
if (!Isolate::Current()->use_crankshaft()) return;
|
|
73 |
v8::Isolate* v8_isolate = v8::Isolate::GetCurrent();
|
|
72 |
if (!CcTest::i_isolate()->use_crankshaft()) return;
|
|
73 |
v8::Isolate* v8_isolate = CcTest::isolate();
|
|
74 | 74 |
v8::HandleScope scope(v8_isolate); |
75 | 75 |
v8::Context::Scope context_scope(v8::Context::New(v8_isolate)); |
76 | 76 |
|
... | ... | |
82 | 82 |
|
83 | 83 |
CompileRun("function f() { return Math.random(); }"); |
84 | 84 |
|
85 |
Object* string = Isolate::Current()->factory()->InternalizeOneByteString(
|
|
85 |
Object* string = CcTest::i_isolate()->factory()->InternalizeOneByteString(
|
|
86 | 86 |
STATIC_ASCII_VECTOR("f"))->ToObjectChecked(); |
87 | 87 |
MaybeObject* fun_object = |
88 | 88 |
context->global_object()->GetProperty(String::cast(string)); |
Also available in: Unified diff