Lines Matching refs:v8
1 // Copyright 2012 the V8 project authors. All rights reserved.
32 #include "../include/v8-debug.h"
33 #include "../include/v8-profiler.h"
34 #include "../include/v8-testing.h"
70 namespace v8 {
95 i::V8::FatalProcessOutOfMemory(NULL); \
108 isolate, value, i::V8::FireCallCompletedCallback(isolate);)
117 if (v8::Locker::IsActive()) { \
120 "Entering the V8 API without proper locking in place"); \
145 i::V8::FatalProcessOutOfMemory(location, false);
149 // When V8 cannot allocated memory FatalProcessOutOfMemory is called.
151 void i::V8::FatalProcessOutOfMemory(const char* location, bool take_snapshot) {
208 i::V8::SetFatalError();
222 i::V8::SetFatalError();
227 bool V8::IsDead() {
228 return i::V8::IsDead();
241 callback(location, "V8 is no longer usable");
267 && i::V8::IsDead() ? ReportV8Dead(location) : false;
281 static inline bool EmptyCheck(const char* location, v8::Handle<v8::Data> obj) {
286 static inline bool EmptyCheck(const char* location, const v8::Data* obj) {
295 return i::V8::Initialize(NULL);
306 return ApiCheck(InitializeHelper(), location, "Error initializing V8");
328 : raw_data(i::NewArray<char*>(V8::GetCompressedStartupDataCount())) {
329 for (int i = 0; i < V8::GetCompressedStartupDataCount(); ++i) {
336 for (int i = 0; i < V8::GetCompressedStartupDataCount(); ++i) {
344 int compressed_data_count = V8::GetCompressedStartupDataCount();
347 V8::GetCompressedStartupData(compressed_data);
362 V8::SetDecompressedStartupData(compressed_data);
368 StartupData::CompressionAlgorithm V8::GetCompressedStartupDataAlgorithm() {
385 int V8::GetCompressedStartupDataCount() {
394 void V8::GetCompressedStartupData(StartupData* compressed_data) {
425 void V8::SetDecompressedStartupData(StartupData* decompressed_data) {
454 void V8::SetFatalErrorHandler(FatalErrorCallback that) {
460 void V8::SetAllowCodeGenerationFromStringsCallback(
475 void V8::SetFlagsFromString(const char* str, int length) {
480 void V8::SetFlagsFromCommandLine(int* argc, char** argv, bool remove_flags) {
485 v8::Handle<Value> ThrowException(v8::Handle<v8::Value> value) {
487 if (IsDeadCheck(isolate, "v8::ThrowException()")) {
488 return v8::Handle<Value>();
498 return v8::Undefined();
536 v8::Handle<Primitive> Undefined() {
538 if (!EnsureInitializedForIsolate(isolate, "v8::Undefined()")) {
539 return v8::Handle<v8::Primitive>();
541 return v8::Handle<Primitive>(ToApi<Primitive>(
546 v8::Handle<Primitive> Null() {
548 if (!EnsureInitializedForIsolate(isolate, "v8::Null()")) {
549 return v8::Handle<v8::Primitive>();
551 return v8::Handle<Primitive>(
556 v8::Handle<Boolean> True() {
558 if (!EnsureInitializedForIsolate(isolate, "v8::True()")) {
559 return v8::Handle<Boolean>();
561 return v8::Handle<Boolean>(
566 v8::Handle<Boolean> False() {
568 if (!EnsureInitializedForIsolate(isolate, "v8::False()")) {
569 return v8::Handle<Boolean>();
571 return v8::Handle<Boolean>(
605 i::Object** V8::GlobalizeReference(i::Object** obj) {
607 if (IsDeadCheck(isolate, "V8::Persistent::New")) return NULL;
615 void V8::MakeWeak(i::Object** object, void* parameters,
624 void V8::ClearWeak(i::Object** obj) {
631 void V8::MarkIndependent(i::Object** object) {
638 bool V8::IsGlobalNearDeath(i::Object** obj) {
646 bool V8::IsGlobalWeak(i::Object** obj) {
654 void V8::DisposeGlobal(i::Object** obj) {
667 v8::ImplementationUtilities::HandleScopeData* current =
686 v8::ImplementationUtilities::HandleScopeData* current =
724 if (IsDeadCheck(isolate, "v8::Context::Enter()")) return;
742 "v8::Context::Exit()",
755 void Context::SetData(v8::Handle<String> data) {
758 if (IsDeadCheck(isolate, "v8::Context::SetData()")) return;
767 v8::Local<v8::Value> Context::GetData() {
770 if (IsDeadCheck(isolate, "v8::Context::GetData()")) {
771 return v8::Local<Value>();
785 i::Object** v8::HandleScope::RawClose(i::Object** value) {
787 "v8::HandleScope::Close()",
821 EnsureInitializedForIsolate(isolate, "v8::Nowhere");
884 void Template::Set(v8::Handle<String> name, v8::Handle<Data> value,
885 v8::PropertyAttribute attribute) {
887 if (IsDeadCheck(isolate, "v8::Template::Set()")) return;
898 array.add(Utils::OpenHandle(*v8::Integer::New(attribute)));
912 if (IsDeadCheck(isolate, "v8::FunctionTemplate::PrototypeTemplate()")) {
925 void FunctionTemplate::Inherit(v8::Handle<FunctionTemplate> value) {
927 if (IsDeadCheck(isolate, "v8::FunctionTemplate::Inherit()")) return;
934 v8::Handle<Value> data, v8::Handle<Signature> signature) {
936 EnsureInitializedForIsolate(isolate, "v8::FunctionTemplate::New()");
948 if (data.IsEmpty()) data = v8::Undefined();
963 EnsureInitializedForIsolate(isolate, "v8::Signature::New()");
991 EnsureInitializedForIsolate(isolate, "v8::TypeSwitch::New()");
1006 int TypeSwitch::match(v8::Handle<Value> value) {
1028 v8::Handle<Value> data) {
1030 if (IsDeadCheck(isolate, "v8::FunctionTemplate::SetCallHandler()")) return;
1038 if (data.IsEmpty()) data = v8::Undefined();
1045 v8::Handle<String> name,
1048 v8::Handle<Value> data,
1049 v8::AccessControl settings,
1050 v8::PropertyAttribute attributes) {
1055 if (data.IsEmpty()) data = v8::Undefined();
1067 v8::Handle<String> name,
1070 v8::Handle<Value> data,
1071 v8::AccessControl settings,
1072 v8::PropertyAttribute attributes) {
1075 "v8::FunctionTemplate::AddInstancePropertyAccessor()")) {
1096 if (IsDeadCheck(isolate, "v8::FunctionTemplate::InstanceTemplate()")
1097 || EmptyCheck("v8::FunctionTemplate::InstanceTemplate()", this))
1102 ObjectTemplate::New(v8::Handle<FunctionTemplate>(this));
1113 if (IsDeadCheck(isolate, "v8::FunctionTemplate::SetClassName()")) return;
1121 if (IsDeadCheck(isolate, "v8::FunctionTemplate::SetHiddenPrototype()")) {
1131 if (IsDeadCheck(isolate, "v8::FunctionTemplate::SetPrototypeAttributes()")) {
1148 "v8::FunctionTemplate::SetNamedInstancePropertyHandler()")) {
1164 if (data.IsEmpty()) data = v8::Undefined();
1179 "v8::FunctionTemplate::SetIndexedInstancePropertyHandler()")) {
1195 if (data.IsEmpty()) data = v8::Undefined();
1206 "v8::FunctionTemplate::SetInstanceCallAsFunctionHandler()")) {
1216 if (data.IsEmpty()) data = v8::Undefined();
1231 v8::Handle<FunctionTemplate> constructor) {
1233 if (IsDeadCheck(isolate, "v8::ObjectTemplate::New()")) {
1236 EnsureInitializedForIsolate(isolate, "v8::ObjectTemplate::New()");
1263 void ObjectTemplate::SetAccessor(v8::Handle<String> name,
1266 v8::Handle<Value> data,
1270 if (IsDeadCheck(isolate, "v8::ObjectTemplate::SetAccessor()")) return;
1293 if (IsDeadCheck(isolate, "v8::ObjectTemplate::SetNamedPropertyHandler()")) {
1313 if (IsDeadCheck(isolate, "v8::ObjectTemplate::MarkAsUndetectable()")) return;
1330 if (IsDeadCheck(isolate, "v8::ObjectTemplate::SetAccessCheckCallbacks()")) {
1345 if (data.IsEmpty()) data = v8::Undefined();
1364 if (IsDeadCheck(isolate, "v8::ObjectTemplate::SetIndexedPropertyHandler()")) {
1386 "v8::ObjectTemplate::SetCallAsFunctionHandler()")) {
1401 "v8::ObjectTemplate::InternalFieldCount()")) {
1410 if (IsDeadCheck(isolate, "v8::ObjectTemplate::SetInternalFieldCount()")) {
1414 "v8::ObjectTemplate::SetInternalFieldCount()",
1439 ScriptData* ScriptData::PreCompile(v8::Handle<String> source) {
1476 Local<Script> Script::New(v8::Handle<String> source,
1477 v8::ScriptOrigin* origin,
1478 v8::ScriptData* pre_data,
1479 v8::Handle<String> script_data) {
1481 ON_BAILOUT(isolate, "v8::Script::New()", return Local<Script>());
1530 Local<Script> Script::New(v8::Handle<String> source,
1531 v8::Handle<Value> file_name) {
1537 Local<Script> Script::Compile(v8::Handle<String> source,
1538 v8::ScriptOrigin* origin,
1539 v8::ScriptData* pre_data,
1540 v8::Handle<String> script_data) {
1542 ON_BAILOUT(isolate, "v8::Script::Compile()", return Local<Script>());
1559 Local<Script> Script::Compile(v8::Handle<String> source,
1560 v8::Handle<Value> file_name,
1561 v8::Handle<String> script_data) {
1569 ON_BAILOUT(isolate, "v8::Script::Run()", return Local<Value>());
1614 ON_BAILOUT(isolate, "v8::Script::Id()", return Local<Value>());
1629 void Script::SetData(v8::Handle<String> data) {
1631 ON_BAILOUT(isolate, "v8::Script::SetData()", return);
1646 v8::TryCatch::TryCatch()
1659 v8::TryCatch::~TryCatch() {
1662 v8::HandleScope scope;
1663 v8::Local<v8::Value> exc = v8::Local<v8::Value>::New(Exception());
1665 v8::ThrowException(exc);
1672 bool v8::TryCatch::HasCaught() const {
1677 bool v8::TryCatch::CanContinue() const {
1682 v8::Handle<v8::Value> v8::TryCatch::ReThrow() {
1683 if (!HasCaught()) return v8::Local<v8::Value>();
1685 return v8::Undefined();
1689 v8::Local<Value> v8::TryCatch::Exception() const {
1694 return v8::Utils::ToLocal(i::Handle<i::Object>(exception, isolate_));
1696 return v8::Local<Value>();
1701 v8::Local<Value> v8::TryCatch::StackTrace() const {
1705 if (!raw_obj->IsJSObject()) return v8::Local<Value>();
1709 if (!obj->HasProperty(*name)) return v8::Local<Value>();
1711 if (value.is_null()) return v8::Local<Value>();
1712 return v8::Utils::ToLocal(scope.CloseAndEscape(value));
1714 return v8::Local<Value>();
1719 v8::Local<v8::Message> v8::TryCatch::Message() const {
1723 return v8::Utils::MessageToLocal(i::Handle<i::Object>(message, isolate_));
1725 return v8::Local<v8::Message>();
1730 void v8::TryCatch::Reset() {
1737 void v8::TryCatch::SetVerbose(bool value) {
1742 void v8::TryCatch::SetCaptureMessage(bool value) {
1752 ON_BAILOUT(isolate, "v8::Message::Get()", return Local<String>());
1762 v8::Handle<Value> Message::GetScriptResourceName() const {
1764 if (IsDeadCheck(isolate, "v8::Message::GetScriptResourceName()")) {
1779 v8::Handle<Value> Message::GetScriptData() const {
1781 if (IsDeadCheck(isolate, "v8::Message::GetScriptResourceData()")) {
1796 v8::Handle<v8::StackTrace> Message::GetStackTrace() const {
1798 if (IsDeadCheck(isolate, "v8::Message::GetStackTrace()")) {
1799 return Local<v8::StackTrace>();
1806 if (!stackFramesObj->IsJSArray()) return v8::Handle<v8::StackTrace>();
1844 ON_BAILOUT(isolate, "v8::Message::GetLineNumber()", return kNoLineNumberInfo);
1859 if (IsDeadCheck(isolate, "v8::Message::GetStartPosition()")) return 0;
1870 if (IsDeadCheck(isolate, "v8::Message::GetEndPosition()")) return 0;
1881 if (IsDeadCheck(isolate, "v8::Message::GetStartColumn()")) {
1899 if (IsDeadCheck(isolate, "v8::Message::GetEndColumn()")) return kNoColumnInfo;
1919 ON_BAILOUT(isolate, "v8::Message::GetSourceLine()", return Local<String>());
1926 EXCEPTION_BAILOUT_CHECK(isolate, Local<v8::String>());
1937 if (IsDeadCheck(isolate, "v8::Message::PrintCurrentStackTrace()")) return;
1947 if (IsDeadCheck(isolate, "v8::StackTrace::GetFrame()")) {
1961 if (IsDeadCheck(isolate, "v8::StackTrace::GetFrameCount()")) return -1;
1969 if (IsDeadCheck(isolate, "v8::StackTrace::AsArray()")) Local<Array>();
1978 if (IsDeadCheck(isolate, "v8::StackTrace::CurrentStackTrace()")) {
1992 if (IsDeadCheck(isolate, "v8::StackFrame::GetLineNumber()")) {
2008 if (IsDeadCheck(isolate, "v8::StackFrame::GetColumn()")) {
2024 if (IsDeadCheck(isolate, "v8::StackFrame::GetScriptName()")) {
2040 if (IsDeadCheck(isolate, "v8::StackFrame::GetScriptNameOrSourceURL()")) {
2056 if (IsDeadCheck(isolate, "v8::StackFrame::GetFunctionName()")) {
2072 if (IsDeadCheck(isolate, "v8::StackFrame::IsEval()")) return false;
2083 if (IsDeadCheck(isolate, "v8::StackFrame::IsConstructor()")) return false;
2095 if (IsDeadCheck(i::Isolate::Current(), "v8::Value::IsUndefined()")) {
2103 if (IsDeadCheck(i::Isolate::Current(), "v8::Value::IsNull()")) return false;
2109 if (IsDeadCheck(i::Isolate::Current(), "v8::Value::IsTrue()")) return false;
2115 if (IsDeadCheck(i::Isolate::Current(), "v8::Value::IsFalse()")) return false;
2121 if (IsDeadCheck(i::Isolate::Current(), "v8::Value::IsFunction()")) {
2129 if (IsDeadCheck(i::Isolate::Current(), "v8::Value::IsString()")) return false;
2137 if (IsDeadCheck(i::Isolate::Current(), "v8::Value::IsArray()")) return false;
2143 if (IsDeadCheck(i::Isolate::Current(), "v8::Value::IsObject()")) return false;
2149 if (IsDeadCheck(i::Isolate::Current(), "v8::Value::IsNumber()")) return false;
2155 if (IsDeadCheck(i::Isolate::Current(), "v8::Value::IsBoolean()")) {
2163 if (IsDeadCheck(i::Isolate::Current(), "v8::Value::IsExternal()")) {
2171 if (IsDeadCheck(i::Isolate::Current(), "v8::Value::IsInt32()")) return false;
2188 if (IsDeadCheck(i::Isolate::Current(), "v8::Value::IsUint32()")) return false;
2206 if (IsDeadCheck(isolate, "v8::Value::IsDate()")) return false;
2214 if (IsDeadCheck(isolate, "v8::Value::IsStringObject()")) return false;
2222 if (IsDeadCheck(isolate, "v8::Value::IsNumberObject()")) return false;
2246 if (IsDeadCheck(isolate, "v8::Value::IsNativeError()")) return false;
2265 if (IsDeadCheck(isolate, "v8::Value::IsBooleanObject()")) return false;
2272 if (IsDeadCheck(i::Isolate::Current(), "v8::Value::IsRegExp()")) return false;
2285 if (IsDeadCheck(isolate, "v8::Value::ToString()")) {
2305 if (IsDeadCheck(isolate, "v8::Value::ToDetailString()")) {
2318 Local<v8::Object> Value::ToObject() const {
2325 if (IsDeadCheck(isolate, "v8::Value::ToObject()")) {
2326 return Local<v8::Object>();
2332 EXCEPTION_BAILOUT_CHECK(isolate, Local<v8::Object>());
2334 return Local<v8::Object>(ToApi<Object>(val));
2344 if (IsDeadCheck(isolate, "v8::Value::ToBoolean()")) {
2362 if (IsDeadCheck(isolate, "v8::Value::ToNumber()")) {
2382 if (IsDeadCheck(isolate, "v8::Value::ToInteger()")) return Local<Integer>();
2393 void External::CheckCast(v8::Value* that) {
2394 if (IsDeadCheck(i::Isolate::Current(), "v8::External::Cast()")) return;
2397 "v8::External::Cast()",
2402 void v8::Object::CheckCast(Value* that) {
2403 if (IsDeadCheck(i::Isolate::Current(), "v8::Object::Cast()")) return;
2406 "v8::Object::Cast()",
2411 void v8
2412 if (IsDeadCheck(i::Isolate::Current(), "v8::Function::Cast()")) return;
2415 "v8::Function::Cast()",
2420 void v8::String::CheckCast(v8::Value* that) {
2421 if (IsDeadCheck(i::Isolate::Current(), "v8::String::Cast()")) return;
2424 "v8::String::Cast()",
2429 void v8::Number::CheckCast(v8::Value* that) {
2430 if (IsDeadCheck(i::Isolate::Current(), "v8::Number::Cast()")) return;
2433 "v8::Number::Cast()",
2438 void v8::Integer::CheckCast(v8::Value* that) {
2439 if (IsDeadCheck(i::Isolate::Current(), "v8::Integer::Cast()")) return;
2442 "v8::Integer::Cast()",
2447 void v8::Array::CheckCast(Value* that) {
2448 if (IsDeadCheck(i::Isolate::Current(), "v8::Array::Cast()")) return;
2451 "v8::Array::Cast()",
2456 void v8::Date::CheckCast(v8::Value* that) {
2458 if (IsDeadCheck(isolate, "v8::Date::Cast()")) return;
2461 "v8::Date::Cast()",
2466 void v8::StringObject::CheckCast(v8::Value* that) {
2468 if (IsDeadCheck(isolate, "v8::StringObject::Cast()")) return;
2471 "v8::StringObject::Cast()",
2476 void v8::NumberObject::CheckCast(v8::Value* that) {
2478 if (IsDeadCheck(isolate, "v8::NumberObject::Cast()")) return;
2481 "v8::NumberObject::Cast()",
2486 void v8::BooleanObject::CheckCast(v8::Value* that) {
2488 if (IsDeadCheck(isolate, "v8::BooleanObject::Cast()")) return;
2491 "v8::BooleanObject::Cast()",
2496 void v8::RegExp::CheckCast(v8::Value* that) {
2497 if (IsDeadCheck(i::Isolate::Current(), "v8::RegExp::Cast()")) return;
2500 "v8::RegExp::Cast()",
2511 if (IsDeadCheck(isolate, "v8::Value::BooleanValue()")) return false;
2527 if (IsDeadCheck(isolate, "v8::Value::NumberValue()")) {
2547 if (IsDeadCheck(isolate, "v8::Value::IntegerValue()")) return 0;
2569 if (IsDeadCheck(isolate, "v8::Value::ToInt32()")) return Local<Int32>();
2587 if (IsDeadCheck(isolate, "v8::Value::ToUint32()")) return Local<Uint32>();
2605 if (IsDeadCheck(isolate, "v8::Value::ToArrayIndex()")) return Local<Uint32>();
2633 if (IsDeadCheck(isolate, "v8::Value::Int32Value()")) return 0;
2651 if (IsDeadCheck(isolate, "v8::Value::Equals()")
2652 || EmptyCheck("v8::Value::Equals()", this)
2653 || EmptyCheck("v8::Value::Equals()", that)) {
2678 if (IsDeadCheck(isolate, "v8::Value::StrictEquals()")
2679 || EmptyCheck("v8::Value::StrictEquals()", this)
2680 || EmptyCheck("v8::Value::StrictEquals()", that)) {
2714 if (IsDeadCheck(isolate, "v8::Value::Uint32Value()")) return 0;
2730 bool v8::Object::Set(v8::Handle<Value> key, v8::Handle<Value> value,
2731 v8::PropertyAttribute attribs) {
2733 ON_BAILOUT(isolate, "v8::Object::Set()", return false);
2752 bool v8::Object::Set(uint32_t index, v8::Handle<Value> value) {
2754 ON_BAILOUT(isolate, "v8::Object::Set()", return false);
2772 bool v8::Object::ForceSet(v8::Handle<Value> key,
2773 v8::Handle<Value> value,
2774 v8::PropertyAttribute attribs) {
2776 ON_BAILOUT(isolate, "v8::Object::ForceSet()", return false);
2794 bool v8::Object::ForceDelete(v8::Handle<Value> key) {
2796 ON_BAILOUT(isolate, "v8::Object::ForceDelete()", return false);
2814 Local<Value> v8::Object::Get(v8::Handle<Value> key) {
2816 ON_BAILOUT(isolate, "v8::Object::Get()", return Local<v8::Value>());
2828 Local<Value> v8::Object::Get(uint32_t index) {
2830 ON_BAILOUT(isolate, "v8::Object::Get()", return Local<v8::Value>());
2841 PropertyAttribute v8::Object::GetPropertyAttributes(v8::Handle<Value> key) {
2843 ON_BAILOUT(isolate, "v8::Object::GetPropertyAttribute()",
2861 Local<Value> v8::Object::GetPrototype() {
2863 ON_BAILOUT(isolate, "v8::Object::GetPrototype()",
2864 return Local<v8::Value>());
2872 bool v8::Object::SetPrototype(Handle<Value> value) {
2874 ON_BAILOUT(isolate, "v8::Object::SetPrototype()", return false);
2889 Local<Object> v8::Object::FindInstanceInPrototypeChain(
2890 v8
2893 "v8::Object::FindInstanceInPrototypeChain()",
2894 return Local<v8::Object>());
2907 Local<Array> v8::Object::GetPropertyNames() {
2909 ON_BAILOUT(isolate, "v8::Object::GetPropertyNames()",
2910 return Local<v8::Array>());
2917 if (threw) return Local<v8::Array>();
2928 Local<Array> v8::Object::GetOwnPropertyNames() {
2930 ON_BAILOUT(isolate, "v8::Object::GetOwnPropertyNames()",
2931 return Local<v8::Array>());
2938 if (threw) return Local<v8::Array>();
2949 Local<String> v8::Object::ObjectProtoToString() {
2951 ON_BAILOUT(isolate, "v8::Object::ObjectProtoToString()",
2952 return Local<v8::String>());
2964 return v8::String::New("[object ]");
2969 return v8::String::New("[object Object]");
2985 memcpy(ptr, prefix, prefix_len * v8::internal::kCharSize);
2993 memcpy(ptr, postfix, postfix_len * v8::internal::kCharSize);
2996 Local<String> result = v8::String::New(buf.start(), buf_len);
3003 Local<String> v8::Object::GetConstructorName() {
3005 ON_BAILOUT(isolate, "v8::Object::GetConstructorName()",
3006 return Local<v8::String>());
3014 bool v8::Object::Delete(v8::Handle<String> key) {
3016 ON_BAILOUT(isolate, "v8::Object::Delete()", return false);
3025 bool v8::Object::Has(v8::Handle<String> key) {
3027 ON_BAILOUT(isolate, "v8::Object::Has()", return false);
3035 bool v8::Object::Delete(uint32_t index) {
3037 ON_BAILOUT(isolate, "v8::Object::DeleteProperty()",
3046 bool v8::Object::Has(uint32_t index) {
3048 ON_BAILOUT(isolate, "v8::Object::HasProperty()", return false);
3057 v8::Handle<Value> data,
3061 ON_BAILOUT(isolate, "v8::Object::SetAccessor()", return false);
3075 bool v8::Object::HasOwnProperty(Handle<String> key) {
3077 ON_BAILOUT(isolate, "v8::Object::HasOwnProperty()",
3084 bool v8::Object::HasRealNamedProperty(Handle<String> key) {
3086 ON_BAILOUT(isolate, "v8::Object::HasRealNamedProperty()",
3093 bool v8::Object::HasRealIndexedProperty(uint32_t index) {
3095 "v8::Object::HasRealIndexedProperty()",
3101 bool v8::Object::HasRealNamedCallbackProperty(Handle<String> key) {
3104 "v8::Object::HasRealNamedCallbackProperty()",
3112 bool v8::Object::HasNamedLookupInterceptor() {
3114 ON_BAILOUT(isolate, "v8::Object::HasNamedLookupInterceptor()",
3120 bool v8::Object::HasIndexedLookupInterceptor() {
3122 ON_BAILOUT(isolate, "v8::Object::HasIndexedLookupInterceptor()",
3151 Local<Value> v8::Object::GetRealNamedPropertyInPrototypeChain(
3155 "v8::Object::GetRealNamedPropertyInPrototypeChain()",
3166 Local<Value> v8::Object::GetRealNamedProperty(Handle<String> key) {
3168 ON_BAILOUT(isolate, "v8::Object::GetRealNamedProperty()",
3182 void v8::Object::TurnOnAccessCheck() {
3184 ON_BAILOUT(isolate, "v8::Object::TurnOnAccessCheck()", return);
3200 bool v8::Object::IsDirty() {
3205 Local<v8::Object> v8::Object::Clone() {
3207 ON_BAILOUT(isolate, "v8::Object::Clone()", return Local<Object>());
3233 Local<v8::Context> v8::Object::CreationContext() {
3236 "v8::Object::CreationContext()", return Local<v8::Context>());
3244 int v8::Object::GetIdentityHash() {
3246 ON_BAILOUT(isolate, "v8::Object::GetIdentityHash()", return 0);
3254 bool v8::Object::SetHiddenValue(v8::Handle<v8::String> key,
3255 v8::Handle<v8::Value> value) {
3257 ON_BAILOUT(isolate, "v8::Object::SetHiddenValue()", return false);
3269 v8::Local<v8::Value> v8::Object::GetHiddenValue(v8::Handle<v8::String> key) {
3271 ON_BAILOUT(isolate, "v8::Object::GetHiddenValue()",
3272 return Local<v8::Value>());
3277 if (result->IsUndefined()) return v8::Local<v8::Value>();
3282 bool v8::Object::DeleteHiddenValue(v8::Handle<v8::String> key) {
3284 ON_BAILOUT(isolate, "v8::DeleteHiddenValue()", return false);
3352 void v8::Object::SetIndexedPropertiesToPixelData(uint8_t* data, int length) {
3354 ON_BAILOUT(isolate, "v8
3358 "v8::Object::SetIndexedPropertiesToPixelData()",
3364 "v8::Object::SetIndexedPropertiesToPixelData()",
3372 bool v8::Object::HasIndexedPropertiesInPixelData() {
3374 ON_BAILOUT(self->GetIsolate(), "v8::HasIndexedPropertiesInPixelData()",
3380 uint8_t* v8::Object::GetIndexedPropertiesPixelData() {
3382 ON_BAILOUT(self->GetIsolate(), "v8::GetIndexedPropertiesPixelData()",
3393 int v8::Object::GetIndexedPropertiesPixelDataLength() {
3395 ON_BAILOUT(self->GetIsolate(), "v8::GetIndexedPropertiesPixelDataLength()",
3405 void v8::Object::SetIndexedPropertiesToExternalArrayData(
3410 ON_BAILOUT(isolate, "v8::SetIndexedPropertiesToExternalArrayData()", return);
3414 "v8::Object::SetIndexedPropertiesToExternalArrayData()",
3420 "v8::Object::SetIndexedPropertiesToExternalArrayData()",
3428 bool v8::Object::HasIndexedPropertiesInExternalArrayData() {
3431 "v8::HasIndexedPropertiesInExternalArrayData()",
3437 void* v8::Object::GetIndexedPropertiesExternalArrayData() {
3440 "v8::GetIndexedPropertiesExternalArrayData()",
3450 ExternalArrayType v8::Object::GetIndexedPropertiesExternalArrayDataType() {
3453 "v8::GetIndexedPropertiesExternalArrayDataType()",
3480 int v8::Object::GetIndexedPropertiesExternalArrayDataLength() {
3483 "v8::GetIndexedPropertiesExternalArrayDataLength()",
3493 bool v8::Object::IsCallable() {
3495 ON_BAILOUT(isolate, "v8::Object::IsCallable()", return false);
3504 Local<v8::Value> Object::CallAsFunction(v8::Handle<v8::Object> recv,
3506 v8::Handle<v8::Value> argv[]) {
3508 ON_BAILOUT(isolate, "v8::Object::CallAsFunction()",
3509 return Local<v8::Value>());
3515 STATIC_ASSERT(sizeof(v8::Handle<v8::Value>) == sizeof(i::Object**));
3536 Local<v8::Value> Object::CallAsConstructor(int argc,
3537 v8::Handle<v8::Value> argv[]) {
3539 ON_BAILOUT(isolate, "v8::Object::CallAsConstructor()",
3540 return Local<v8::Object>());
3545 STATIC_ASSERT(sizeof(v8::Handle<v8::Value>) == sizeof(i::Object**));
3552 EXCEPTION_BAILOUT_CHECK_DO_CALLBACK(isolate, Local<v8::Object>());
3559 EXCEPTION_BAILOUT_CHECK(isolate, Local<v8::Object>());
3565 EXCEPTION_BAILOUT_CHECK_DO_CALLBACK(isolate, Local<v8::Object>());
3569 return Local<v8::Object>();
3573 Local<v8::Object> Function::NewInstance() const {
3578 Local<v8::Object> Function::NewInstance(int argc,
3579 v8::Handle<v8::Value> argv[]) const {
3581 ON_BAILOUT(isolate, "v8::Function::NewInstance()",
3582 return Local<v8::Object>());
3587 STATIC_ASSERT(sizeof(v8::Handle<v8::Value>) == sizeof(i::Object**));
3592 EXCEPTION_BAILOUT_CHECK_DO_CALLBACK(isolate, Local<v8::Object>());
3597 Local<v8::Value> Function::Call(v8::Handle<v8::Object> recv, int argc,
3598 v8::Handle<v8::Value> argv[]) {
3600 ON_BAILOUT(isolate, "v8::Function::Call()", return Local<v8::Value>());
3608 STATIC_ASSERT(sizeof(v8::Handle<v8::Value>) == sizeof(i::Object**));
3621 void Function::SetName(v8::Handle<v8::String> name) {
3646 v8::ScriptOrigin origin(
3648 v8::Integer::New(script->line_offset()->value()),
3649 v8::Integer::New(script->column_offset()->value()));
3652 return v8::ScriptOrigin(Handle<Value>());
3681 return v8::Undefined();
3688 if (IsDeadCheck(str->GetIsolate(), "v8::String::Length()")) return 0;
3695 if (IsDeadCheck(str->GetIsolate(), "v8::String::Utf8Length()")) return 0;
3790 if (IsDeadCheck(str->GetIsolate(), "v8::String::MayContainNonAscii()")) {
3802 if (IsDeadCheck(isolate, "v8
3933 if (IsDeadCheck(isolate, "v8::String::WriteAscii()")) return 0;
3967 if (IsDeadCheck(isolate, "v8::String::Write()")) return 0;
3991 bool v8::String::IsExternal() const {
3993 if (IsDeadCheck(str->GetIsolate(), "v8::String::IsExternal()")) {
3996 EnsureInitializedForIsolate(str->GetIsolate(), "v8::String::IsExternal()");
4001 bool v8::String::IsExternalAscii() const {
4003 if (IsDeadCheck(str->GetIsolate(), "v8::String::IsExternalAscii()")) {
4010 void v8::String::VerifyExternalStringResource(
4011 v8::String::ExternalStringResource* value) const {
4013 const v8::String::ExternalStringResource* expected;
4025 const v8::String::ExternalAsciiStringResource*
4026 v8::String::GetExternalAsciiStringResource() const {
4029 "v8::String::GetExternalAsciiStringResource()")) {
4043 if (IsDeadCheck(i::Isolate::Current(), "v8::Number::Value()")) return 0;
4050 if (IsDeadCheck(i::Isolate::Current(), "v8::Boolean::Value()")) return false;
4057 if (IsDeadCheck(i::Isolate::Current(), "v8::Integer::Value()")) return 0;
4068 if (IsDeadCheck(i::Isolate::Current(), "v8::Int32::Value()")) return 0;
4079 if (IsDeadCheck(i::Isolate::Current(), "v8::Uint32::Value()")) return 0;
4089 int v8::Object::InternalFieldCount() {
4091 if (IsDeadCheck(obj->GetIsolate(), "v8::Object::InternalFieldCount()")) {
4098 Local<Value> v8::Object::CheckedGetInternalField(int index) {
4100 if (IsDeadCheck(obj->GetIsolate(), "v8::Object::GetInternalField()")) {
4104 "v8::Object::GetInternalField()",
4118 void v8::Object::SetInternalField(int index, v8::Handle<Value> value) {
4121 if (IsDeadCheck(isolate, "v8::Object::SetInternalField()")) {
4125 "v8::Object::SetInternalField()",
4152 void v8::Object::SetPointerInInternalField(int index, void* value) {
4172 bool v8::V8::Initialize() {
4181 void v8::V8::SetEntropySource(EntropySource source) {
4182 i::V8::SetEntropySource(source);
4186 void v8::V8::SetReturnAddressLocationResolver(
4188 i::V8::SetReturnAddressLocationResolver(return_address_resolver);
4192 bool v8::V8::Dispose() {
4195 "v8::V8::Dispose()",
4196 "Use v8::Isolate::Dispose() for a non-default isolate.")) {
4199 i::V8::TearDown();
4210 void v8::V8::GetHeapStatistics(HeapStatistics* heap_statistics) {
4229 void v8::V8::VisitExternalResources(ExternalResourceVisitor* visitor) {
4231 IsDeadCheck(isolate, "v8::V8::VisitExternalResources");
4236 bool v8::V8::IdleNotification(int hint) {
4241 return i::V8::IdleNotification(hint);
4245 void v8::V8::LowMemoryNotification() {
4252 int v8::V8::ContextDisposedNotification() {
4259 const char* v8::V8::GetVersion() {
4276 Persistent<Context> v8::Context::New(
4277 v8::ExtensionConfiguration* extensions,
4278 v8::Handle<ObjectTemplate> global_template,
4279 v8::Handle<Value> global_object) {
4282 EnsureInitializedForIsolate(isolate, "v8::Context::New()");
4284 ON_BAILOUT(isolate, "v8::Context::New()", return Persistent<Context>());
4286 // Enter V8 via an ENTER_V8 scope.
4290 v8::Handle<ObjectTemplate> proxy_template = global_template;
4341 // Leave V8.
4350 void v8::Context::SetSecurityToken(Handle<Value> token) {
4352 if (IsDeadCheck(isolate, "v8::Context::SetSecurityToken()")) {
4362 void v8::Context::UseDefaultSecurityToken() {
4365 "v8::Context::UseDefaultSecurityToken()")) {
4374 Handle<Value> v8::Context::GetSecurityToken() {
4376 if (IsDeadCheck(isolate, "v8::Context::GetSecurityToken()")) {
4397 v8::Local<v8::Context> Context::GetEntered() {
4399 if (!EnsureInitializedForIsolate(isolate, "v8::Context::GetEntered()")) {
4410 v8::Local<v8::Context> Context::GetCurrent() {
4412 if (IsDeadCheck(isolate, "v8::Context::GetCurrent()")) {
4422 v8::Local<v8::Context> Context::GetCalling() {
4424 if (IsDeadCheck(isolate, "v8::Context::GetCalling()")) {
4435 v8::Local<v8::Object> Context::Global() {
4436 if (IsDeadCheck(i::Isolate::Current(), "v8::Context::Global()")) {
4437 return Local<v8::Object>();
4449 if (IsDeadCheck(isolate, "v8::Context::DetachGlobal()")) return;
4460 if (IsDeadCheck(isolate, "v8::Context::ReattachGlobal()")) return;
4473 if (IsDeadCheck(isolate, "v8::Context::AllowCodeGenerationFromStrings()")) {
4488 "v8::Context::IsCodeGenerationFromStringsAllowed()")) {
4499 void V8::SetWrapperClassId(i::Object** global_handle, uint16_t class_id) {
4504 Local<v8::Object> ObjectTemplate::NewInstance() {
4506 ON_BAILOUT(isolate, "v8::ObjectTemplate::NewInstance()",
4507 return Local<v8::Object>());
4514 EXCEPTION_BAILOUT_CHECK(isolate, Local<v8::Object>());
4519 Local<v8::Function> FunctionTemplate::GetFunction() {
4521 ON_BAILOUT(isolate, "v8::FunctionTemplate::GetFunction()",
4522 return Local<v8::Function>());
4529 EXCEPTION_BAILOUT_CHECK(isolate, Local<v8::Function>());
4534 bool FunctionTemplate::HasInstance(v8::Handle<v8::Value> value) {
4535 ON_BAILOUT(i::Isolate::Current(), "v8::FunctionTemplate::HasInstanceOf()",
4551 Local<Value> v8::External::Wrap(void* data) {
4554 EnsureInitializedForIsolate(isolate, "v8::External::Wrap()");
4558 v8::Local<v8::Value> result = CanBeEncodedAsSmi(data)
4560 : v8::Local<v8::Value>(ExternalNewImpl(data));
4567 void* v8::Object::SlowGetPointerFromInternalField(int index) {
4580 void* v8::External::FullUnwrap(v8::Handle<v8::Value> wrapper) {
4581 if (IsDeadCheck(i::Isolate::Current(), "v8::External::Unwrap()")) return 0;
4596 Local<External> v8::External::New(void* data) {
4599 EnsureInitializedForIsolate(isolate, "v8::External::New()");
4607 if (IsDeadCheck(i::Isolate::Current(), "v8::External::Value()")) return 0;
4613 Local<String> v8::String::Empty() {
4615 EnsureInitializedForIsolate(isolate, "v8::String::Empty()");
4621 Local<String> v8::String::New(const char* data, int length) {
4623 EnsureInitializedForIsolate(isolate, "v8::String::New()");
4635 Local<String> v8::String::Concat(Handle<String> left, Handle<String> right) {
4638 EnsureInitializedForIsolate(isolate, "v8::String::New()");
4648 Local<String> v8::String::NewUndetectable(const char* data, int length) {
4650 EnsureInitializedForIsolate(isolate, "v8::String::NewUndetectable()");
4669 Local<String> v8::String::New(const uint16_t* data, int length) {
4671 EnsureInitializedForIsolate(isolate, "v8::String::New()");
4683 Local<String> v8::String::NewUndetectable(const uint16_t* data, int length) {
4685 EnsureInitializedForIsolate(isolate, "v8::String::NewUndetectable()");
4698 v8::String::ExternalStringResource* resource) {
4706 v8::String::ExternalAsciiStringResource* resource) {
4713 Local<String> v8::String::NewExternal(
4714 v8::String::ExternalStringResource* resource) {
4716 EnsureInitializedForIsolate(isolate, "v8::String::NewExternal()");
4725 bool v8::String::MakeExternal(v8::String::ExternalStringResource* resource) {
4728 if (IsDeadCheck(isolate, "v8::String::MakeExternal()")) return false;
4747 Local<String> v8::String::NewExternal(
4748 v8::String::ExternalAsciiStringResource* resource) {
4750 EnsureInitializedForIsolate(isolate, "v8::String::NewExternal()");
4759 bool v8::String::MakeExternal(
4760 v8::String::ExternalAsciiStringResource* resource) {
4763 if (IsDeadCheck(isolate, "v8::String::MakeExternal()")) return false;
4782 bool v8::String::CanMakeExternal() {
4786 if (IsDeadCheck(isolate, "v8::String::CanMakeExternal()")) return false;
4795 Local<v8::Object> v8::Object::New() {
4797 EnsureInitializedForIsolate(isolate, "v8::Object::New()");
4806 Local<v8::Value> v8::NumberObject::New(double value) {
4808 EnsureInitializedForIsolate(isolate, "v8::NumberObject::New()");
4817 double v8::NumberObject::NumberValue() const {
4819 if (IsDeadCheck(isolate, "v8::NumberObject::NumberValue()")) return 0;
4827 Local<v8::Value> v8::BooleanObject::New(bool value) {
4829 EnsureInitializedForIsolate(isolate, "v8::BooleanObject::New()");
4839 bool v8::BooleanObject::BooleanValue() const {
4841 if (IsDeadCheck(isolate, "v8::BooleanObject::BooleanValue()")) return 0;
4849 Local<v8::Value> v8::StringObject::New(Handle<String> value) {
4851 EnsureInitializedForIsolate(isolate, "v8::StringObject::New()");
4860 Local<v8::String> v8::StringObject::StringValue() const {
4862 if (IsDeadCheck(isolate, "v8::StringObject::StringValue()")) {
4863 return Local<v8::String>();
4873 Local<v8::Value> v8::Date::New(double time) {
4875 EnsureInitializedForIsolate(isolate, "v8::Date::New()");
4885 EXCEPTION_BAILOUT_CHECK(isolate, Local<v8::Value>());
4890 double v8::Date::NumberValue() const {
4892 if (IsDeadCheck(isolate, "v8::Date::NumberValue()")) return 0;
4900 void v8::Date::DateTimeConfigurationChangeNotification() {
4902 ON_BAILOUT(isolate, "v8::Date::DateTimeConfigurationChangeNotification()",
4947 Local<v8::RegExp> v8::RegExp::New(Handle<String> pattern,
4950 EnsureInitializedForIsolate(isolate, "v8::RegExp::New()");
4958 EXCEPTION_BAILOUT_CHECK(isolate, Local<v8::RegExp>());
4963 Local<v8::String> v8::RegExp::GetSource() const {
4965 if (IsDeadCheck(isolate, "v8::RegExp::GetSource()")) {
4966 return Local<v8::String>();
4975 STATIC_ASSERT(static_cast<int>(v8::RegExp::api_flag) == \
4983 v8::RegExp::Flags v8::RegExp::GetFlags() const {
4984 if (IsDeadCheck(i::Isolate::Current(), "v8::RegExp::GetFlags()")) {
4985 return v8::RegExp::kNone;
4992 Local<v8::Array> v8::Array::New(int length) {
4994 EnsureInitializedForIsolate(isolate, "v8::Array::New()");
5006 uint32_t v8::Array::Length() const {
5008 if (IsDeadCheck(isolate, "v8::Array::Length()")) return 0;
5021 ON_BAILOUT(isolate, "v8::Array::CloneElementAt()", return Local<Object>());
5041 Local<String> v8::String::NewSymbol(const char* data, int length) {
5043 EnsureInitializedForIsolate(isolate, "v8::String::NewSymbol()");
5053 Local<Number> v8::Number::New(double value) {
5055 EnsureInitializedForIsolate(isolate, "v8::Number::New()");
5066 Local<Integer> v8::Integer::New(int32_t value) {
5068 EnsureInitializedForIsolate(isolate, "v8::Integer::New()");
5091 void V8::IgnoreOutOfMemoryException() {
5096 bool V8::AddMessageListener(MessageCallback that, Handle<Value> data) {
5098 EnsureInitializedForIsolate(isolate, "v8::V8::AddMessageListener()");
5099 ON_BAILOUT(isolate, "v8::V8::AddMessageListener()", return false);
5113 void V8::RemoveMessageListeners(MessageCallback that) {
5115 EnsureInitializedForIsolate(isolate, "v8::V8::RemoveMessageListener()");
5116 ON_BAILOUT(isolate, "v8::V8::RemoveMessageListeners()", return);
5132 void V8::SetCaptureStackTraceForUncaughtExceptions(
5143 void V8::SetCounterFunction(CounterLookupCallback callback) {
5145 if (IsDeadCheck(isolate, "v8::V8::SetCounterFunction()")) return;
5149 void V8::SetCreateHistogramFunction(CreateHistogramCallback callback) {
5151 if (IsDeadCheck(isolate, "v8::V8::SetCreateHistogramFunction()")) return;
5155 void V8::SetAddHistogramSampleFunction(AddHistogramSampleCallback callback) {
5157 if (IsDeadCheck(isolate, "v8::V8::SetAddHistogramSampleFunction()")) return;
5162 void V8::EnableSlidingStateWindow() {
5164 if (IsDeadCheck(isolate, "v8::V8::EnableSlidingStateWindow()")) return;
5169 void V8::SetFailedAccessCheckCallbackFunction(
5172 if (IsDeadCheck(isolate, "v8::V8::SetFailedAccessCheckCallbackFunction()")) {
5178 void V8::AddObjectGroup(Persistent<Value>* objects,
5182 if (IsDeadCheck(isolate, "v8::V8::AddObjectGroup()")) return;
5189 void V8::AddImplicitReferences(Persistent<Object> parent,
5193 if (IsDeadCheck(isolate, "v8::V8::AddImplicitReferences()")) return;
5201 int V8::AdjustAmountOfExternalAllocatedMemory(int change_in_bytes) {
5203 if (IsDeadCheck(isolate, "v8::V8::AdjustAmountOfExternalAllocatedMemory()")) {
5211 void V8::SetGlobalGCPrologueCallback(GCCallback callback) {
5213 if (IsDeadCheck(isolate, "v8::V8::SetGlobalGCPrologueCallback()")) return;
5218 void V8::SetGlobalGCEpilogueCallback(GCCallback callback) {
5220 if (IsDeadCheck(isolate, "v8::V8::SetGlobalGCEpilogueCallback()")) return;
5225 void V8::AddGCPrologueCallback(GCPrologueCallback callback, GCType gc_type) {
5227 if (IsDeadCheck(isolate, "v8::V8::AddGCPrologueCallback()")) return;
5232 void V8::RemoveGCPrologueCallback(GCPrologueCallback callback) {
5234 if (IsDeadCheck(isolate, "v8::V8::RemoveGCPrologueCallback()")) return;
5239 void V8::AddGCEpilogueCallback(GCEpilogueCallback callback, GCType gc_type) {
5241 if (IsDeadCheck(isolate, "v8::V8::AddGCEpilogueCallback()")) return;
5246 void V8::RemoveGCEpilogueCallback(GCEpilogueCallback callback) {
5248 if (IsDeadCheck(isolate, "v8V8::RemoveGCEpilogueCallback()")) return;
5253 void V8::AddMemoryAllocationCallback(MemoryAllocationCallback callback,
5257 if (IsDeadCheck(isolate, "v8::V8::AddMemoryAllocationCallback()")) return;
5263 void V8::RemoveMemoryAllocationCallback(MemoryAllocationCallback callback) {
5265 if (IsDeadCheck(isolate, "v8::V8::RemoveMemoryAllocationCallback()")) return;
5271 void V8::AddCallCompletedCallback(CallCompletedCallback callback) {
5275 if (IsDeadCheck(isolate, "v8::V8::AddLeaveScriptCallback()")) return;
5276 i::V8::AddCallCompletedCallback(callback);
5280 void V8::RemoveCallCompletedCallback(CallCompletedCallback callback) {
5283 if (IsDeadCheck(isolate, "v8::V8::RemoveLeaveScriptCallback()")) return;
5284 i::V8::RemoveCallCompletedCallback(callback);
5288 void V8::PauseProfiler() {
5294 void V8::ResumeProfiler() {
5300 bool V8::IsProfilerPaused() {
5306 int V8::GetCurrentThreadId() {
5308 EnsureInitializedForIsolate(isolate, "V8::GetCurrentThreadId()");
5313 void V8::TerminateExecution(int thread_id) {
5316 API_ENTRY_CHECK(isolate, "V8::TerminateExecution()");
5329 void V8::TerminateExecution(Isolate* isolate) {
5339 bool V8::IsExecutionTerminating(Isolate* isolate) {
5361 "v8::Isolate::Dispose()",
5392 String::Utf8Value::Utf8Value(v8::Handle<v8::Value> obj)
5395 if (IsDeadCheck(isolate, "v8::String::Utf8Value::Utf8Value()")) return;
5414 String::AsciiValue::AsciiValue(v8::Handle<v8::Value> obj)
5417 if (IsDeadCheck(isolate, "v8::String::AsciiValue::AsciiValue()")) return;
5435 String::Value::Value(v8::Handle<v8::Value> obj)
5438 if (IsDeadCheck(isolate, "v8::String::Value::Value()")) return;
5455 Local<Value> Exception::RangeError(v8::Handle<v8::String> raw_message) {
5458 ON_BAILOUT(isolate, "v8::Exception::RangeError()", return Local<Value>());
5471 Local<Value> Exception::ReferenceError(v8::Handle<v8::String> raw_message) {
5474 ON_BAILOUT(isolate, "v8::Exception::ReferenceError()", return Local<Value>());
5488 Local<Value> Exception::SyntaxError(v8::Handle<v8::String> raw_message) {
5491 ON_BAILOUT(isolate, "v8::Exception::SyntaxError()", return Local<Value>());
5504 Local<Value> Exception::TypeError(v8::Handle<v8::String> raw_message) {
5507 ON_BAILOUT(isolate, "v8::Exception::TypeError()", return Local<Value>());
5520 Local<Value> Exception::Error(v8::Handle<v8::String> raw_message) {
5523 ON_BAILOUT(isolate, "v8::Exception::Error()", return Local<Value>());
5541 static void EventCallbackWrapper(const v8::Debug::EventDetails& event_details) {
5554 EnsureInitializedForIsolate(isolate, "v8::Debug::SetDebugEventListener()");
5555 ON_BAILOUT(isolate, "v8::Debug::SetDebugEventListener()", return false);
5573 EnsureInitializedForIsolate(isolate, "v8::Debug::SetDebugEventListener2()");
5574 ON_BAILOUT(isolate, "v8::Debug::SetDebugEventListener2()", return false);
5586 bool Debug::SetDebugEventListener(v8::Handle<v8::Object> that,
5589 ON_BAILOUT(isolate, "v8::Debug::SetDebugEventListener()", return false);
5629 static void MessageHandlerWrapper(const v8::Debug::Message& message) {
5632 v8::String::Value json(message.GetJSON());
5638 void Debug::SetMessageHandler(v8::Debug::MessageHandler handler,
5641 EnsureInitializedForIsolate(isolate, "v8::Debug::SetMessageHandler");
5658 void Debug::SetMessageHandler2(v8::Debug::MessageHandler2 handler) {
5660 EnsureInitializedForIsolate(isolate, "v8::Debug::SetMessageHandler");
5684 EnsureInitializedForIsolate(isolate, "v8::Debug::SetHostDispatchHandler");
5694 "v8::Debug::SetDebugMessageDispatchHandler");
5701 Local<Value> Debug::Call(v8::Handle<v8::Function> fun,
5702 v8::Handle<v8::Value> data) {
5705 ON_BAILOUT(isolate, "v8::Debug::Call()", return Local<Value>());
5723 Local<Value> Debug::GetMirror(v8::Handle<v8::Value> obj) {
5726 ON_BAILOUT(isolate, "v8::Debug::GetMirror()", return Local<Value>());
5728 v8::HandleScope scope;
5736 v8::Handle<v8::Function> v8_fun = Utils::ToLocal(fun);
5738 v8::Handle<v8::Value> argv[kArgc] = { obj };
5740 v8::Handle<v8::Value> result = v8_fun->Call(Utils::ToLocal(debug),
5765 EnsureInitializedForIsolate(isolate, "v8::Debug::GetDebugContext()");
5775 IsDeadCheck(isolate, "v8::CpuProfileNode::GetFunctionName");
5791 IsDeadCheck(isolate, "v8::CpuProfileNode::GetScriptResourceName");
5800 IsDeadCheck(isolate, "v8::CpuProfileNode::GetLineNumber");
5807 IsDeadCheck(isolate, "v8::CpuProfileNode::GetTotalTime");
5814 IsDeadCheck(isolate, "v8::CpuProfileNode::GetSelfTime");
5821 IsDeadCheck(isolate, "v8::CpuProfileNode::GetTotalSamplesCount");
5828 IsDeadCheck(isolate, "v8::CpuProfileNode::GetSelfSamplesCount");
5835 IsDeadCheck(isolate, "v8::CpuProfileNode::GetCallUid");
5842 IsDeadCheck(isolate, "v8::CpuProfileNode::GetChildrenCount");
5849 IsDeadCheck(isolate, "v8::CpuProfileNode::GetChild");
5858 IsDeadCheck(isolate, "v8::CpuProfile::Delete");
5870 IsDeadCheck(isolate, "v8::CpuProfile::GetUid");
5877 IsDeadCheck(isolate, "v8::CpuProfile::GetTitle");
5886 IsDeadCheck(isolate, "v8::CpuProfile::GetBottomUpRoot");
5894 IsDeadCheck(isolate, "v8::CpuProfile::GetTopDownRoot");
5902 IsDeadCheck(isolate, "v8::CpuProfiler::GetProfilesCount");
5910 IsDeadCheck(isolate, "v8::CpuProfiler::GetProfile");
5921 IsDeadCheck(isolate, "v8::CpuProfiler::FindProfile");
5931 IsDeadCheck(isolate, "v8::CpuProfiler::StartProfiling");
5939 IsDeadCheck(isolate, "v8::CpuProfiler::StopProfiling");
5949 IsDeadCheck(isolate, "v8::CpuProfiler::DeleteAllProfiles");
5962 IsDeadCheck(isolate, "v8::HeapGraphEdge::GetType");
5969 IsDeadCheck(isolate, "v8::HeapGraphEdge::GetName");
5984 return v8::Undefined();
5990 IsDeadCheck(isolate, "v8::HeapGraphEdge::GetFromNode");
5998 IsDeadCheck(isolate, "v8::HeapGraphEdge::GetToNode");
6012 IsDeadCheck(isolate, "v8::HeapGraphNode::GetType");
6019 IsDeadCheck(isolate, "v8::HeapGraphNode::GetName");
6027 IsDeadCheck(isolate, "v8::HeapGraphNode::GetId");
6034 IsDeadCheck(isolate, "v8::HeapGraphNode::GetSelfSize");
6041 IsDeadCheck(isolate, "v8::HeapSnapshot::GetRetainedSize");
6048 IsDeadCheck(isolate, "v8::HeapSnapshot::GetChildrenCount");
6055 IsDeadCheck(isolate, "v8::HeapSnapshot::GetChild");
6063 IsDeadCheck(isolate, "v8::HeapSnapshot::GetRetainersCount");
6070 IsDeadCheck(isolate, "v8::HeapSnapshot::GetRetainer");
6078 IsDeadCheck(isolate, "v8::HeapSnapshot::GetDominatorNode");
6083 v8::Handle<v8::Value> HeapGraphNode::GetHeapValue() const {
6085 IsDeadCheck(isolate, "v8::HeapGraphNode::GetHeapValue");
6087 return v8::Handle<Value>(!object.is_null() ?
6101 IsDeadCheck(isolate, "v8::HeapSnapshot::Delete");
6113 IsDeadCheck(isolate, "v8::HeapSnapshot::GetType");
6120 IsDeadCheck(isolate, "v8::HeapSnapshot::GetUid");
6127 IsDeadCheck(isolate, "v8::HeapSnapshot::GetTitle");
6135 IsDeadCheck(isolate, "v8::HeapSnapshot::GetHead");
6142 IsDeadCheck(isolate, "v8::HeapSnapshot::GetNodeById");
6150 IsDeadCheck(isolate, "v8::HeapSnapshot::GetNodesCount");
6157 IsDeadCheck(isolate, "v8::HeapSnapshot::GetNode");
6166 IsDeadCheck(isolate, "v8::HeapSnapshot::Serialize");
6168 "v8::HeapSnapshot::Serialize",
6171 "v8::HeapSnapshot::Serialize",
6174 "v8::HeapSnapshot::Serialize",
6183 IsDeadCheck(isolate, "v8::HeapProfiler::GetSnapshotsCount");
6190 IsDeadCheck(isolate, "v8::HeapProfiler::GetSnapshot");
6198 IsDeadCheck(isolate, "v8::HeapProfiler::FindSnapshot");
6208 IsDeadCheck(isolate, "v8::HeapProfiler::TakeSnapshot");
6225 IsDeadCheck(isolate, "v8::HeapProfiler::DeleteAllSnapshots");
6243 v8::Testing::StressType internal::Testing::stress_type_ =
6244 v8::Testing::kStressTypeOpt;
6264 V8::SetFlagsFromString(flags, i::StrLength(flags));
6313 v8::ImplementationUtilities::HandleScopeData* current =
6357 v8::ImplementationUtilities::HandleScopeData* current =
6371 } } // namespace v8::internal