/external/v8/test/cctest/ |
D | test-object-observe.cc | 37 HandleScope scope(CcTest::isolate()); in TEST() 38 LocalContext context1(CcTest::isolate()); in TEST() 55 LocalContext context2(CcTest::isolate()); in TEST() 57 context2->Global()->Set(String::NewFromUtf8(CcTest::isolate(), "obj"), in TEST() 64 LocalContext context3(CcTest::isolate()); in TEST() 66 context3->Global()->Set(String::NewFromUtf8(CcTest::isolate(), "obj"), in TEST() 72 LocalContext context4(CcTest::isolate()); in TEST() 75 String::NewFromUtf8(CcTest::isolate(), "observer"), observer); in TEST() 76 context4->Global()->Set(String::NewFromUtf8(CcTest::isolate(), "fun1"), in TEST() 78 context4->Global()->Set(String::NewFromUtf8(CcTest::isolate(), "fun2"), in TEST() [all …]
|
D | test-thread-termination.cc | 106 v8::Isolate* isolate, in CreateGlobalTemplate() argument 109 v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New(isolate); in CreateGlobalTemplate() 110 global->Set(v8::String::NewFromUtf8(isolate, "terminate"), in CreateGlobalTemplate() 111 v8::FunctionTemplate::New(isolate, terminate)); in CreateGlobalTemplate() 112 global->Set(v8::String::NewFromUtf8(isolate, "fail"), in CreateGlobalTemplate() 113 v8::FunctionTemplate::New(isolate, Fail)); in CreateGlobalTemplate() 114 global->Set(v8::String::NewFromUtf8(isolate, "loop"), in CreateGlobalTemplate() 115 v8::FunctionTemplate::New(isolate, Loop)); in CreateGlobalTemplate() 116 global->Set(v8::String::NewFromUtf8(isolate, "doloop"), in CreateGlobalTemplate() 117 v8::FunctionTemplate::New(isolate, doloop)); in CreateGlobalTemplate() [all …]
|
D | test-func-name-inference.cc | 54 Isolate* isolate = CcTest::i_isolate(); in CheckFunctionName() local 55 Factory* factory = isolate->factory(); in CheckFunctionName() 74 int func_pos = Runtime::StringMatch(isolate, in CheckFunctionName() 81 isolate->debug()->PrepareForBreakPoints(); in CheckFunctionName() 83 isolate->debug()->FindSharedFunctionInfoInScript(i_script, func_pos); in CheckFunctionName() 95 static v8::Handle<v8::Script> Compile(v8::Isolate* isolate, const char* src) { in Compile() argument 96 return v8::Script::Compile(v8::String::NewFromUtf8(isolate, src)); in Compile() 102 v8::HandleScope scope(CcTest::isolate()); in TEST() 105 CcTest::isolate(), in TEST() 115 v8::HandleScope scope(CcTest::isolate()); in TEST() [all …]
|
D | test-decls.cc | 55 Isolate* isolate = CcTest::isolate(); in ~DeclarationContext() local 56 HandleScope scope(isolate); in ~DeclarationContext() 57 Local<Context> context = Local<Context>::New(isolate, context_); in ~DeclarationContext() 99 v8::Isolate* isolate() const { return CcTest::isolate(); } in isolate() function in DeclarationContext 121 Isolate* isolate = CcTest::isolate(); in InitializeIfNeeded() local 122 HandleScope scope(isolate); in InitializeIfNeeded() 123 Local<FunctionTemplate> function = FunctionTemplate::New(isolate); in InitializeIfNeeded() 124 Local<Value> data = External::New(CcTest::isolate(), this); in InitializeIfNeeded() 130 Local<Context> context = Context::New(isolate, in InitializeIfNeeded() 134 context_.Reset(isolate, context); in InitializeIfNeeded() [all …]
|
D | test-serialize.cc | 67 Isolate* isolate = CcTest::i_isolate(); in TEST() local 70 ExternalReferenceEncoder encoder(isolate); in TEST() 76 ExternalReference::address_of_stack_limit(isolate); in TEST() 80 ExternalReference::address_of_real_stack_limit(isolate); in TEST() 84 encoder.Encode(ExternalReference::debug_break(isolate).address())); in TEST() 87 encoder.Encode(ExternalReference::new_space_start(isolate).address())); in TEST() 90 encoder.Encode(ExternalReference::roots_array_start(isolate).address())); in TEST() 97 Isolate* isolate = CcTest::i_isolate(); in TEST() local 100 ExternalReferenceDecoder decoder(isolate); in TEST() 106 CHECK_EQ(ExternalReference::address_of_stack_limit(isolate).address(), in TEST() [all …]
|
D | test-accessors.cc | 68 v8::Isolate* isolate = env->GetIsolate(); in THREADED_TEST() local 69 v8::HandleScope scope(isolate); in THREADED_TEST() 70 Local<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(isolate); in THREADED_TEST() 73 v8::FunctionTemplate::New(isolate, handle_property); in THREADED_TEST() 124 v8::Isolate* isolate = CcTest::isolate(); in THREADED_TEST() local 125 v8::HandleScope scope(isolate); in THREADED_TEST() 126 v8::Handle<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(isolate); in THREADED_TEST() 129 v8::External::New(isolate, &foo)); in THREADED_TEST() 132 v8::External::New(isolate, &bar)); in THREADED_TEST() 135 v8::External::New(isolate, &baz)); in THREADED_TEST() [all …]
|
D | test-compiler.cc | 41 Isolate* isolate = CcTest::i_isolate(); in GetGlobalProperty() local 43 isolate, isolate->global_object(), name).ToHandleChecked(); in GetGlobalProperty() 48 Isolate* isolate = CcTest::i_isolate(); in SetGlobalProperty() local 49 Handle<Object> object(value, isolate); in SetGlobalProperty() 51 isolate->factory()->InternalizeUtf8String(name); in SetGlobalProperty() 52 Handle<JSObject> global(isolate->context()->global_object()); in SetGlobalProperty() 53 Runtime::SetObjectProperty(isolate, global, internalized_name, object, in SetGlobalProperty() 59 Isolate* isolate = CcTest::i_isolate(); in Compile() local 60 Handle<String> source_code = isolate->factory()->NewStringFromUtf8( in Compile() 64 Handle<Context>(isolate->native_context()), NULL, NULL, in Compile() [all …]
|
D | test-weakmaps.cc | 44 static Handle<JSWeakMap> AllocateJSWeakMap(Isolate* isolate) { in AllocateJSWeakMap() argument 45 Factory* factory = isolate->factory(); in AllocateJSWeakMap() 51 HandleScope scope(isolate); in AllocateJSWeakMap() 52 Handle<ObjectHashTable> table = ObjectHashTable::New(isolate, 1); in AllocateJSWeakMap() 83 Isolate* isolate = GetIsolateFrom(&context); in TEST() local 84 Factory* factory = isolate->factory(); in TEST() 85 Heap* heap = isolate->heap(); in TEST() 86 HandleScope scope(isolate); in TEST() 87 Handle<JSWeakMap> weakmap = AllocateJSWeakMap(isolate); in TEST() 88 GlobalHandles* global_handles = isolate->global_handles(); in TEST() [all …]
|
D | test-lockers.cc | 61 KangarooThread(v8::Isolate* isolate, v8::Handle<v8::Context> context) in KangarooThread() argument 63 isolate_(isolate), in KangarooThread() 64 context_(isolate, context) {} in KangarooThread() 101 v8::Isolate* isolate = v8::Isolate::New(); in TEST() local 104 v8::Locker locker(isolate); in TEST() 105 v8::Isolate::Scope isolate_scope(isolate); in TEST() 106 v8::HandleScope handle_scope(isolate); in TEST() 107 v8::Local<v8::Context> context = v8::Context::New(isolate); in TEST() 109 CHECK_EQ(isolate, v8::internal::Isolate::Current()); in TEST() 111 thread1.Reset(new KangarooThread(isolate, context)); in TEST() [all …]
|
D | test-assembler-ia32.cc | 52 Isolate* isolate = reinterpret_cast<Isolate*>(CcTest::isolate()); in TEST() local 53 HandleScope scope(isolate); in TEST() 56 Assembler assm(isolate, buffer, sizeof buffer); in TEST() 64 Handle<Code> code = isolate->factory()->NewCode( in TEST() 79 Isolate* isolate = reinterpret_cast<Isolate*>(CcTest::isolate()); in TEST() local 80 HandleScope scope(isolate); in TEST() 83 Assembler assm(isolate, buffer, sizeof buffer); in TEST() 101 Handle<Code> code = isolate->factory()->NewCode( in TEST() 116 Isolate* isolate = reinterpret_cast<Isolate*>(CcTest::isolate()); in TEST() local 117 HandleScope scope(isolate); in TEST() [all …]
|
D | test-heap.cc | 64 static void CheckOddball(Isolate* isolate, Object* obj, const char* string) { in CheckOddball() argument 66 Handle<Object> handle(obj, isolate); in CheckOddball() 68 *Execution::ToString(isolate, handle).ToHandleChecked(); in CheckOddball() 73 static void CheckSmi(Isolate* isolate, int value, const char* string) { in CheckSmi() argument 74 Handle<Object> handle(Smi::FromInt(value), isolate); in CheckSmi() 76 *Execution::ToString(isolate, handle).ToHandleChecked(); in CheckSmi() 81 static void CheckNumber(Isolate* isolate, double value, const char* string) { in CheckNumber() argument 82 Handle<Object> number = isolate->factory()->NewNumber(value); in CheckNumber() 85 Execution::ToString(isolate, number).ToHandleChecked(); in CheckNumber() 90 static void CheckFindCodeObject(Isolate* isolate) { in CheckFindCodeObject() argument [all …]
|
/external/v8/src/ |
D | runtime.cc | 86 if (!(value)) return isolate->ThrowIllegalOperation(); 90 isolate->ThrowIllegalOperation(); \ 168 Isolate* isolate = context->GetIsolate(); in ComputeObjectLiteralMap() local 196 isolate->factory()->NewFixedArray(number_of_string_keys); in ComputeObjectLiteralMap() 208 return isolate->factory()->ObjectLiteralMapFromCache(context, keys); in ComputeObjectLiteralMap() 211 return Map::Create(isolate, number_of_properties); in ComputeObjectLiteralMap() 216 Isolate* isolate, 222 Isolate* isolate, in CreateObjectLiteralBoilerplate() argument 248 isolate->heap()->InNewSpace(*literals) ? NOT_TENURED : TENURED; in CreateObjectLiteralBoilerplate() 251 isolate->factory()->NewJSObjectFromMap(map, pretenure_flag); in CreateObjectLiteralBoilerplate() [all …]
|
D | accessors.cc | 25 Isolate* isolate, in MakeAccessor() argument 30 Factory* factory = isolate->factory(); in MakeAccessor() 36 Handle<Object> get = v8::FromCData(isolate, getter); in MakeAccessor() 37 Handle<Object> set = v8::FromCData(isolate, setter); in MakeAccessor() 45 Isolate* isolate, in CloneAccessor() argument 47 Factory* factory = isolate->factory(); in CloneAccessor() 60 static C* FindInstanceOf(Isolate* isolate, Object* obj) { in FindInstanceOf() argument 61 for (PrototypeIterator iter(isolate, obj, in FindInstanceOf() 88 Isolate* isolate = name->GetIsolate(); in IsJSObjectFieldAccessor() local 91 return CheckForName(name, isolate->factory()->length_string(), in IsJSObjectFieldAccessor() [all …]
|
D | code-factory.cc | 15 Callable CodeFactory::LoadIC(Isolate* isolate, ContextualMode mode) { in LoadIC() argument 17 LoadIC::initialize_stub(isolate, LoadICState(mode).GetExtraICState()), in LoadIC() 18 LoadDescriptor(isolate)); in LoadIC() 23 Callable CodeFactory::KeyedLoadIC(Isolate* isolate) { in KeyedLoadIC() argument 24 return Callable(isolate->builtins()->KeyedLoadIC_Initialize(), in KeyedLoadIC() 25 LoadDescriptor(isolate)); in KeyedLoadIC() 30 Callable CodeFactory::StoreIC(Isolate* isolate, StrictMode mode) { in StoreIC() argument 31 return Callable(StoreIC::initialize_stub(isolate, mode), in StoreIC() 32 StoreDescriptor(isolate)); in StoreIC() 37 Callable CodeFactory::KeyedStoreIC(Isolate* isolate, StrictMode mode) { in KeyedStoreIC() argument [all …]
|
D | api.cc | 52 #define LOG_API(isolate, expr) LOG(isolate, ApiEntryCall(expr)) argument 54 #define ENTER_V8(isolate) \ argument 55 DCHECK((isolate)->IsInitialized()); \ 56 i::VMState<i::OTHER> __state__((isolate)) 60 #define ON_BAILOUT(isolate, location, code) \ argument 61 if (IsExecutionTerminatingCheck(isolate)) { \ 67 #define EXCEPTION_PREAMBLE(isolate) \ argument 68 (isolate)->handle_scope_implementer()->IncrementCallDepth(); \ 69 DCHECK(!(isolate)->external_caught_exception()); \ 73 #define EXCEPTION_BAILOUT_CHECK_GENERIC(isolate, value, do_callback) \ argument [all …]
|
D | assembler.cc | 126 AssemblerBase::AssemblerBase(Isolate* isolate, void* buffer, int buffer_size) in AssemblerBase() argument 127 : isolate_(isolate), in AssemblerBase() 133 serializer_enabled_(isolate && isolate->serializer_enabled()) { in AssemblerBase() 134 if (FLAG_mask_constants_with_cookie && isolate != NULL) { in AssemblerBase() 135 jit_cookie_ = isolate->random_number_generator()->NextInt(); in AssemblerBase() 702 Isolate* isolate = code->map()->GetIsolate(); in RelocIterator() local 703 if (sequence != NULL && !Code::IsYoungSequence(isolate, sequence)) { in RelocIterator() 797 void RelocInfo::Print(Isolate* isolate, OStream& os) { // NOLINT in Print() argument 804 ExternalReferenceEncoder ref_encoder(isolate); in Print() 817 isolate->deoptimizer_data() != NULL) { in Print() [all …]
|
D | execution.cc | 43 Isolate* isolate = function->GetIsolate(); in Invoke() local 46 VMState<JS> state(isolate); in Invoke() 47 CHECK(AllowJavascriptExecution::IsAllowed(isolate)); in Invoke() 48 if (!ThrowOnJavascriptExecution::IsAllowed(isolate)) { in Invoke() 49 isolate->ThrowIllegalOperation(); in Invoke() 50 isolate->ReportPendingMessages(); in Invoke() 64 ? isolate->factory()->js_construct_entry_code() in Invoke() 65 : isolate->factory()->js_entry_code(); in Invoke() 81 SaveContext save(isolate); in Invoke() 82 SealHandleScope shs(isolate); in Invoke() [all …]
|
D | arguments.cc | 16 v8::Handle<V> CustomArguments<T>::GetReturnValue(Isolate* isolate) { in GetReturnValue() argument 26 Isolate* isolate = this->isolate(); in Call() local 27 VMState<EXTERNAL> state(isolate); in Call() 28 ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f)); in Call() 34 return GetReturnValue<v8::Value>(isolate); in Call() 40 Isolate* isolate = this->isolate(); \ 41 VMState<EXTERNAL> state(isolate); \ 42 ExternalCallbackScope call_scope(isolate, FUNCTION_ADDR(f)); \ 45 return GetReturnValue<ReturnValue>(isolate); \ 52 Isolate* isolate = this->isolate(); \ [all …]
|
D | d8.cc | 71 static Handle<Value> Throw(Isolate* isolate, const char* message) { in Throw() argument 72 return isolate->ThrowException(String::NewFromUtf8(isolate, message)); in Throw() 79 explicit PerIsolateData(Isolate* isolate) : isolate_(isolate), realms_(NULL) { in PerIsolateData() argument 80 HandleScope scope(isolate); in PerIsolateData() 81 isolate->SetData(0, this); in PerIsolateData() 88 inline static PerIsolateData* Get(Isolate* isolate) { in Get() argument 89 return reinterpret_cast<PerIsolateData*>(isolate->GetData(0)); in Get() 127 explicit DumbLineEditor(Isolate* isolate) in DumbLineEditor() argument 128 : LineEditor(LineEditor::DUMB, "dumb"), isolate_(isolate) { } in DumbLineEditor() 181 Isolate* isolate, Local<String> source, Local<Value> name, in CompileString() argument [all …]
|
D | messages.cc | 18 void MessageHandler::DefaultMessageReport(Isolate* isolate, in DefaultMessageReport() argument 21 SmartArrayPointer<char> str = GetLocalizedMessage(isolate, message_obj); in DefaultMessageReport() 25 HandleScope scope(isolate); in DefaultMessageReport() 26 Handle<Object> data(loc->script()->name(), isolate); in DefaultMessageReport() 37 Isolate* isolate, in MakeMessageObject() argument 42 Factory* factory = isolate->factory(); in MakeMessageObject() 77 void MessageHandler::ReportMessage(Isolate* isolate, in ReportMessage() argument 85 Object* exception_object = isolate->heap()->undefined_value(); in ReportMessage() 86 if (isolate->has_pending_exception()) { in ReportMessage() 87 exception_object = isolate->pending_exception(); in ReportMessage() [all …]
|
D | assembler.h | 59 AssemblerBase(Isolate* isolate, void* buffer, int buffer_size); 62 Isolate* isolate() const { return isolate_; } in isolate() function 556 inline void Visit(Isolate* isolate, ObjectVisitor* v); 581 void Print(Isolate* isolate, OStream& os); // NOLINT 584 void Verify(Isolate* isolate); 792 ExternalReference(Builtins::CFunctionId id, Isolate* isolate); 794 ExternalReference(ApiFunction* ptr, Type type, Isolate* isolate); 796 ExternalReference(Builtins::Name name, Isolate* isolate); 798 ExternalReference(Runtime::FunctionId id, Isolate* isolate); 800 ExternalReference(const Runtime::Function* f, Isolate* isolate); [all …]
|
D | handles.cc | 13 int HandleScope::NumberOfHandles(Isolate* isolate) { in NumberOfHandles() argument 14 HandleScopeImplementer* impl = isolate->handle_scope_implementer(); in NumberOfHandles() 18 (isolate->handle_scope_data()->next - impl->blocks()->last())); in NumberOfHandles() 22 Object** HandleScope::Extend(Isolate* isolate) { in Extend() argument 23 HandleScopeData* current = isolate->handle_scope_data(); in Extend() 35 HandleScopeImplementer* impl = isolate->handle_scope_implementer(); in Extend() 61 void HandleScope::DeleteExtensions(Isolate* isolate) { in DeleteExtensions() argument 62 HandleScopeData* current = isolate->handle_scope_data(); in DeleteExtensions() 63 isolate->handle_scope_implementer()->DeleteExtensions(current->limit); in DeleteExtensions() 77 Address HandleScope::current_level_address(Isolate* isolate) { in current_level_address() argument [all …]
|
D | code-stubs.h | 168 explicit CodeStub(Isolate* isolate) : minor_key_(0), isolate_(isolate) {} in CodeStub() argument 171 static void GenerateStubsAheadOfTime(Isolate* isolate); 172 static void GenerateFPStubs(Isolate* isolate); 189 static void InitializeDescriptor(Isolate* isolate, uint32_t key, 192 static MaybeHandle<Code> GetCode(Isolate* isolate, uint32_t key); 209 Isolate* isolate() const { return isolate_; } in isolate() function 212 CodeStub(uint32_t key, Isolate* isolate) in CodeStub() argument 213 : minor_key_(MinorKeyFromKey(key)), isolate_(isolate) {} in CodeStub() 265 static void Dispatch(Isolate* isolate, uint32_t key, void** value_out, 283 NAME(uint32_t key, Isolate* isolate) : SUPER(key, isolate) {} \ [all …]
|
/external/v8/src/ic/ |
D | ic.cc | 68 #define TRACE_GENERIC_IC(isolate, type, reason) \ argument 72 JavaScriptFrame::PrintTop(isolate, stdout, false, true); \ 79 #define TRACE_GENERIC_IC(isolate, type, reason) \ argument 141 IC::IC(FrameDepth depth, Isolate* isolate) in IC() argument 142 : isolate_(isolate), target_set_(false), target_maps_set_(false) { in IC() 146 const Address entry = Isolate::c_entry_fp(isolate->thread_local_top()); in IC() 168 StackFrameIterator it(isolate); in IC() 177 isolate); in IC() 180 target_ = handle(raw_target(), isolate); in IC() 191 StackFrameIterator it(isolate()); in GetSharedFunctionInfo() [all …]
|
D | ic-compiler.cc | 52 Isolate* isolate = name->GetIsolate(); in ComputeMonomorphic() local 53 if (handler.is_identical_to(isolate->builtins()->LoadIC_Normal()) || in ComputeMonomorphic() 54 handler.is_identical_to(isolate->builtins()->StoreIC_Normal())) { in ComputeMonomorphic() 55 name = isolate->factory()->normal_ic_symbol(); in ComputeMonomorphic() 59 Handle<Map> stub_holder = IC::GetICCacheHolder(*type, isolate, &flag); in ComputeMonomorphic() 78 PropertyICCompiler ic_compiler(isolate, kind, extra_ic_state, flag); in ComputeMonomorphic() 88 Isolate* isolate = receiver_map->GetIsolate(); in ComputeKeyedLoadMonomorphic() local 90 Handle<Name> name = isolate->factory()->KeyedLoadMonomorphic_string(); in ComputeKeyedLoadMonomorphic() 92 Handle<Object> probe(receiver_map->FindInCodeCache(*name, flags), isolate); in ComputeKeyedLoadMonomorphic() 98 stub = LoadIndexedInterceptorStub(isolate).GetCode(); in ComputeKeyedLoadMonomorphic() [all …]
|