Home | History | Annotate | Download | only in src

Lines Matching refs:V8

1 // Copyright 2012 the V8 project authors. All rights reserved.
46 #include "src/v8.h"
52 namespace v8 {
218 for (v8::TryCatch* block = thread->try_catch_handler();
270 void Isolate::RegisterTryCatchHandler(v8::TryCatch* that) {
275 void Isolate::UnregisterTryCatchHandler(v8::TryCatch* that) {
851 v8::FailedAccessCheckCallback callback) {
880 v8::Utils::ToLocal(receiver), v8::ACCESS_HAS, v8::Utils::ToLocal(data));
915 v8::AccessCheckCallback callback = nullptr;
920 callback = v8::ToCData<v8::AccessCheckCallback>(fun_obj);
929 return callback(v8::Utils::ToLocal(accessing_context),
930 v8::Utils::ToLocal(receiver), v8::Utils::ToLocal(data));
1008 entry.first(reinterpret_cast<v8::Isolate*>(this), entry.second);
1109 // 1) External v8::TryCatch missing: Always create a message because any
1111 // 2) External v8::TryCatch exists: Only create a message if the handler
1113 // 3) ReThrow from v8::TryCatch: The message from a previous throw still
1148 // or if the custom callback determined that V8 should abort, then
1155 reinterpret_cast<v8::Isolate*>(this)))) {
1443 void Isolate::RestorePendingMessageFromTryCatch(v8::TryCatch* handler) {
1454 void Isolate::CancelScheduledExceptionFromTryCatch(v8::TryCatch* handler) {
1634 // chance to set proper v8::TryCatch later.
1659 // chance to set proper v8::TryCatch later.
1667 // Try to propagate the exception to an external v8::TryCatch handler. If
1678 // message have already been propagated to v8::TryCatch.
1682 // depending on whether and external v8::TryCatch or an internal JavaScript
1869 v8::Isolate::AbortOnUncaughtExceptionCallback callback) {
1925 // cleanly dispose all Isolates before disposing v8, so we are conservative
1996 v8::internal::Segment* GetSegment(size_t size) override {
1997 v8::internal::Segment* memory = AccountingAllocator::GetSegment(size);
2013 void ReturnSegment(v8::internal::Segment* memory) override {
2421 v8::TryCatch* handler = try_catch_handler();
2510 // Ensure that the thread has a valid stack guard. The v8::Locker object
2520 V8::FatalProcessOutOfMemory("heap setup");
2534 V8::FatalProcessOutOfMemory("heap object creation");
2636 // v8::V8::SetAddHistogramSampleFunction calls.
2754 v8::tracing::TracingCategoryObserver::ENABLED_BY_NATIVE)) {
3088 v8::MicrotasksPolicy::kAuto;
3096 v8::Isolate* isolate = reinterpret_cast<v8::Isolate*>(this);
3097 v8::Isolate::SuppressMicrotaskExecutionScope suppress(isolate);
3111 v8::PromiseRejectEvent event) {
3114 if (event == v8::kPromiseRejectWithNoHandler && value->IsJSObject()) {
3117 promise_reject_callback_(v8::PromiseRejectMessage(
3118 v8::Utils::PromiseToLocal(promise), event, v8::Utils::ToLocal(value),
3119 v8::Utils::StackTraceToLocal(stack_trace)));
3240 v8::Isolate::SuppressMicrotaskExecutionScope suppress(
3241 reinterpret_cast<v8::Isolate*>(this));
3251 TRACE_EVENT0("v8.execute", "RunMicrotasks");
3267 v8::MicrotaskCallback callback =
3268 v8::ToCData<v8::MicrotaskCallback>(callback_info->callback());
3269 void* data = v8::ToCData<void*>(callback_info->data());
3341 microtasks_completed_callbacks_.at(i)(reinterpret_cast<v8::Isolate*>(this));
3346 void Isolate::SetUseCounterCallback(v8::Isolate::UseCounterCallback callback) {
3352 void Isolate::CountUsage(v8::Isolate::UseCounterFeature feature) {
3353 // The counter callback may cause the embedder to call into V8, which is not
3358 use_counter_callback_(reinterpret_cast<v8::Isolate*>(this), feature);
3514 } // namespace v8