v8 70 include/v8-debug.h namespace v8 { v8 254 include/v8-debug.h static bool SetDebugEventListener(v8::Handle<v8::Object> that, v8 323 include/v8-debug.h static Local<Value> Call(v8::Handle<v8::Function> fun, v8 329 include/v8-debug.h static Local<Value> GetMirror(v8::Handle<v8::Value> obj); v8 67 include/v8-preparser.h namespace v8 { v8 65 include/v8-profiler.h namespace v8 { v8 65 include/v8-testing.h namespace v8 { v8 81 include/v8.h namespace v8 { v8 1089 include/v8.h V8EXPORT static v8::Local<v8::String> Empty(); v8 1090 include/v8.h inline static v8::Local<v8::String> Empty(Isolate* isolate); v8 1122 include/v8.h friend class v8::internal::Heap; v8 1194 include/v8.h static inline String* Cast(v8::Value* obj); v8 1284 include/v8.h explicit Utf8Value(Handle<v8::Value> obj); v8 1307 include/v8.h explicit AsciiValue(Handle<v8::Value> obj); v8 1329 include/v8.h explicit Value(Handle<v8::Value> obj); v8 1345 include/v8.h V8EXPORT static void CheckCast(v8::Value* obj); v8 1356 include/v8.h static inline Number* Cast(v8::Value* obj); v8 1359 include/v8.h V8EXPORT static void CheckCast(v8::Value* obj); v8 1371 include/v8.h static inline Integer* Cast(v8::Value* obj); v8 1374 include/v8.h V8EXPORT static void CheckCast(v8::Value* obj); v8 1798 include/v8.h static inline Date* Cast(v8::Value* obj); v8 1815 include/v8.h V8EXPORT static void CheckCast(v8::Value* obj); v8 1831 include/v8.h static inline NumberObject* Cast(v8::Value* obj); v8 1834 include/v8.h V8EXPORT static void CheckCast(v8::Value* obj); v8 1850 include/v8.h static inline BooleanObject* Cast(v8::Value* obj); v8 1853 include/v8.h V8EXPORT static void CheckCast(v8::Value* obj); v8 1869 include/v8.h static inline StringObject* Cast(v8::Value* obj); v8 1872 include/v8.h V8EXPORT static void CheckCast(v8::Value* obj); v8 1916 include/v8.h static inline RegExp* Cast(v8::Value* obj); v8 1919 include/v8.h V8EXPORT static void CheckCast(v8::Value* obj); v8 1944 include/v8.h V8EXPORT static void CheckCast(v8::Value* obj); v8 1945 include/v8.h static inline void* QuickUnwrap(Handle<v8::Value> obj); v8 1946 include/v8.h V8EXPORT static void* FullUnwrap(Handle<v8::Value> obj); v8 2545 include/v8.h virtual v8::Handle<v8::FunctionTemplate> v8 2546 include/v8.h GetNativeFunction(v8::Handle<v8::String> name) { v8 2547 include/v8.h return v8::Handle<v8::FunctionTemplate>(); v8 3454 include/v8.h Local<v8::Message> Message() const; v8 3485 include/v8.h v8::internal::Isolate* isolate_; v8 3494 include/v8.h friend class v8::internal::Isolate; v8 4023 include/v8.h static inline bool IsInitialized(v8::Isolate* isolate) { v8 4028 include/v8.h static inline void SetEmbedderData(v8::Isolate* isolate, void* data) { v8 4034 include/v8.h static inline void* GetEmbedderData(v8::Isolate* isolate) { v8 4040 include/v8.h static inline internal::Object** GetRoot(v8::Isolate* isolate, int index) { v8 4213 include/v8.h void Template::Set(const char* name, v8::Handle<Data> value) { v8 4214 include/v8.h Set(v8::String::New(name), value); v8 4245 include/v8.h void* External::Unwrap(Handle<v8::Value> obj) { v8 4254 include/v8.h void* External::QuickUnwrap(Handle<v8::Value> wrapper) { v8 4256 include/v8.h O* obj = *reinterpret_cast<O**>(const_cast<v8::Value*>(*wrapper)); v8 4280 include/v8.h String* String::Cast(v8::Value* value) { v8 4368 include/v8.h Number* Number::Cast(v8::Value* value) { v8 4376 include/v8.h Integer* Integer::Cast(v8::Value* value) { v8 4384 include/v8.h Date* Date::Cast(v8::Value* value) { v8 4392 include/v8.h StringObject* StringObject::Cast(v8::Value* value) { v8 4400 include/v8.h NumberObject* NumberObject::Cast(v8::Value* value) { v8 4408 include/v8.h BooleanObject* BooleanObject::Cast(v8::Value* value) { v8 4416 include/v8.h RegExp* RegExp::Cast(v8::Value* value) { v8 4424 include/v8.h Object* Object::Cast(v8::Value* value) { v8 4432 include/v8.h Array* Array::Cast(v8::Value* value) { v8 4440 include/v8.h Function* Function::Cast(v8::Value* value) { v8 4448 include/v8.h External* External::Cast(v8::Value* value) { v8 38 preparser/preparser-process.cc namespace i = v8::internal; v8 60 preparser/preparser-process.cc class AsciiInputStream : public v8::UnicodeInputStream { v8 358 preparser/preparser-process.cc v8::PreParserData data = v8::Preparse(&input_buffer, kMaxStackSize); v8 102 samples/lineprocessor.cc v8::Handle<v8::String> ReadFile(const char* name); v8 103 samples/lineprocessor.cc v8::Handle<v8::String> ReadLine(); v8 105 samples/lineprocessor.cc v8::Handle<v8::Value> Print(const v8::Arguments& args); v8 106 samples/lineprocessor.cc v8::Handle<v8::Value> ReadLine(const v8::Arguments& args); v8 112 samples/lineprocessor.cc v8::Persistent<v8::Context> debug_message_context; v8 126 samples/lineprocessor.cc v8::Context::Scope scope(debug_message_context); v8 128 samples/lineprocessor.cc v8::Debug::ProcessDebugMessages(); v8 134 samples/lineprocessor.cc v8::V8::SetFlagsFromCommandLine(&argc, argv, true); v8 135 samples/lineprocessor.cc v8::HandleScope handle_scope; v8 137 samples/lineprocessor.cc v8::Handle<v8::String> script_source(NULL); v8 138 samples/lineprocessor.cc v8::Handle<v8::Value> script_name(NULL); v8 171 samples/lineprocessor.cc script_source = v8::String::New(argv[i + 1]); v8 172 samples/lineprocessor.cc script_name = v8::String::New("unnamed"); v8 178 samples/lineprocessor.cc script_name = v8::String::New(str); v8 197 samples/lineprocessor.cc v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New(); v8 200 samples/lineprocessor.cc global->Set(v8::String::New("print"), v8::FunctionTemplate::New(Print)); v8 204 samples/lineprocessor.cc global->Set(v8::String::New("read_line"), v8 205 samples/lineprocessor.cc v8::FunctionTemplate::New(ReadLine)); v8 210 samples/lineprocessor.cc v8::Handle<v8::Context> context = v8::Context::New(NULL, global); v8 212 samples/lineprocessor.cc v8::Context::Scope context_scope(context); v8 215 samples/lineprocessor.cc debug_message_context = v8::Persistent<v8::Context>::New(context); v8 217 samples/lineprocessor.cc v8::Locker locker; v8 220 samples/lineprocessor.cc v8::Debug::SetDebugMessageDispatchHandler(DispatchDebugMessages, true); v8 224 samples/lineprocessor.cc v8::Debug::EnableAgent("lineprocessor", port_number, wait_for_connection); v8 230 samples/lineprocessor.cc v8::Handle<v8::Script> script; v8 233 samples/lineprocessor.cc v8::TryCatch try_catch; v8 234 samples/lineprocessor.cc script = v8::Script::Compile(script_source, script_name); v8 244 samples/lineprocessor.cc v8::TryCatch try_catch; v8 255 samples/lineprocessor.cc bool res = RunCppCycle(script, v8::Context::GetCurrent(), v8 268 samples/lineprocessor.cc v8::Locker lock; v8 271 samples/lineprocessor.cc v8::Handle<v8::String> fun_name = v8::String::New("ProcessLine"); v8 272 samples/lineprocessor.cc v8::Handle<v8::Value> process_val = v8 273 samples/lineprocessor.cc v8::Context::GetCurrent()->Global()->Get(fun_name); v8 283 samples/lineprocessor.cc v8::Handle<v8::Function> process_fun = v8 284 samples/lineprocessor.cc v8::Handle<v8::Function>::Cast(process_val); v8 288 samples/lineprocessor.cc v8::HandleScope handle_scope; v8 290 samples/lineprocessor.cc v8::Handle<v8::String> input_line = ReadLine(); v8 291 samples/lineprocessor.cc if (input_line == v8::Undefined()) { v8 296 samples/lineprocessor.cc v8::Handle<v8::Value> argv[argc] = { input_line }; v8 298 samples/lineprocessor.cc v8::Handle<v8::Value> result; v8 300 samples/lineprocessor.cc v8::TryCatch try_catch; v8 301 samples/lineprocessor.cc result = process_fun->Call(v8::Context::GetCurrent()->Global(), v8 309 samples/lineprocessor.cc v8::String::Utf8Value str(result); v8 319 samples/lineprocessor.cc v8::V8::Dispose(); v8 331 samples/lineprocessor.cc v8::Handle<v8::String> ReadFile(const char* name) { v8 333 samples/lineprocessor.cc if (file == NULL) return v8::Handle<v8::String>(); v8 346 samples/lineprocessor.cc v8::Handle<v8::String> result = v8::String::New(chars, size); v8 353 samples/lineprocessor.cc v8::HandleScope handle_scope; v8 354 samples/lineprocessor.cc v8::String::Utf8Value exception(try_catch->Exception()); v8 356 samples/lineprocessor.cc v8::Handle<v8::Message> message = try_catch->Message(); v8 363 samples/lineprocessor.cc v8::String::Utf8Value filename(message->GetScriptResourceName()); v8 368 samples/lineprocessor.cc v8::String::Utf8Value sourceline(message->GetSourceLine()); v8 388 samples/lineprocessor.cc v8::Handle<v8::Value> Print(const v8::Arguments& args) { v8 391 samples/lineprocessor.cc v8::HandleScope handle_scope; v8 397 samples/lineprocessor.cc v8::String::Utf8Value str(args[i]); v8 403 samples/lineprocessor.cc return v8::Undefined(); v8 409 samples/lineprocessor.cc v8::Handle<v8::Value> ReadLine(const v8::Arguments& args) { v8 411 samples/lineprocessor.cc return v8::ThrowException(v8::String::New("Unexpected arguments")); v8 416 samples/lineprocessor.cc v8::Handle<v8::String> ReadLine() { v8 423 samples/lineprocessor.cc v8::Unlocker unlocker; v8 428 samples/lineprocessor.cc v8::Handle<v8::Primitive> t = v8::Undefined(); v8 429 samples/lineprocessor.cc return v8::Handle<v8::String>(v8::String::Cast(*t)); v8 438 samples/lineprocessor.cc return v8::String::New(buffer); v8 137 samples/process.cc if (args.Length() < 1) return v8::Undefined(); v8 142 samples/process.cc return v8::Undefined(); v8 48 samples/shell.cc v8::Persistent<v8::Context> CreateShellContext(); v8 55 samples/shell.cc v8::Handle<v8::Value> Print(const v8::Arguments& args); v8 56 samples/shell.cc v8::Handle<v8::Value> Read(const v8::Arguments& args); v8 57 samples/shell.cc v8::Handle<v8::Value> Load(const v8::Arguments& args); v8 58 samples/shell.cc v8::Handle<v8::Value> Quit(const v8::Arguments& args); v8 59 samples/shell.cc v8::Handle<v8::Value> Version(const v8::Arguments& args); v8 60 samples/shell.cc v8::Handle<v8::String> ReadFile(const char* name); v8 68 samples/shell.cc v8::V8::SetFlagsFromCommandLine(&argc, argv, true); v8 72 samples/shell.cc v8::HandleScope handle_scope; v8 73 samples/shell.cc v8::Persistent<v8::Context> context = CreateShellContext(); v8 84 samples/shell.cc v8::V8::Dispose(); v8 97 samples/shell.cc v8::Persistent<v8::Context> CreateShellContext() { v8 99 samples/shell.cc v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New(); v8 101 samples/shell.cc global->Set(v8::String::New("print"), v8::FunctionTemplate::New(Print)); v8 103 samples/shell.cc global->Set(v8::String::New("read"), v8::FunctionTemplate::New(Read)); v8 105 samples/shell.cc global->Set(v8::String::New("load"), v8::FunctionTemplate::New(Load)); v8 107 samples/shell.cc global->Set(v8::String::New("quit"), v8::FunctionTemplate::New(Quit)); v8 109 samples/shell.cc global->Set(v8::String::New("version"), v8::FunctionTemplate::New(Version)); v8 111 samples/shell.cc return v8::Context::New(NULL, global); v8 118 samples/shell.cc v8::Handle<v8::Value> Print(const v8::Arguments& args) { v8 121 samples/shell.cc v8::HandleScope handle_scope; v8 127 samples/shell.cc v8::String::Utf8Value str(args[i]); v8 133 samples/shell.cc return v8::Undefined(); v8 140 samples/shell.cc v8::Handle<v8::Value> Read(const v8::Arguments& args) { v8 142 samples/shell.cc return v8::ThrowException(v8::String::New("Bad parameters")); v8 144 samples/shell.cc v8::String::Utf8Value file(args[0]); v8 146 samples/shell.cc return v8::ThrowException(v8::String::New("Error loading file")); v8 148 samples/shell.cc v8::Handle<v8::String> source = ReadFile(*file); v8 150 samples/shell.cc return v8::ThrowException(v8::String::New("Error loading file")); v8 159 samples/shell.cc v8::Handle<v8::Value> Load(const v8::Arguments& args) { v8 161 samples/shell.cc v8::HandleScope handle_scope; v8 162 samples/shell.cc v8::String::Utf8Value file(args[i]); v8 164 samples/shell.cc return v8::ThrowException(v8::String::New("Error loading file")); v8 166 samples/shell.cc v8::Handle<v8::String> source = ReadFile(*file); v8 168 samples/shell.cc return v8::ThrowException(v8::String::New("Error loading file")); v8 170 samples/shell.cc if (!ExecuteString(source, v8::String::New(*file), false, false)) { v8 171 samples/shell.cc return v8::ThrowException(v8::String::New("Error executing file")); v8 174 samples/shell.cc return v8::Undefined(); v8 180 samples/shell.cc v8::Handle<v8::Value> Quit(const v8::Arguments& args) { v8 187 samples/shell.cc return v8::Undefined(); v8 191 samples/shell.cc v8::Handle<v8::Value> Version(const v8::Arguments& args) { v8 192 samples/shell.cc return v8::String::New(v8::V8::GetVersion()); v8 197 samples/shell.cc v8::Handle<v8::String> ReadFile(const char* name) { v8 199 samples/shell.cc if (file == NULL) return v8::Handle<v8::String>(); v8 212 samples/shell.cc v8::Handle<v8::String> result = v8::String::New(chars, size); v8 232 samples/shell.cc v8::Handle<v8::String> file_name = v8::String::New("unnamed"); v8 233 samples/shell.cc v8::Handle<v8::String> source = v8::String::New(argv[++i]); v8 237 samples/shell.cc v8::Handle<v8::String> file_name = v8::String::New(str); v8 238 samples/shell.cc v8::Handle<v8::String> source = ReadFile(str); v8 252 samples/shell.cc printf("V8 version %s [sample shell]\n", v8::V8::GetVersion()); v8 255 samples/shell.cc v8::Context::Scope context_scope(context); v8 256 samples/shell.cc v8::Local<v8::String> name(v8::String::New("(shell)")); v8 262 samples/shell.cc v8::HandleScope handle_scope; v8 263 samples/shell.cc ExecuteString(v8::String::New(str), name, true, true); v8 274 samples/shell.cc v8::HandleScope handle_scope; v8 275 samples/shell.cc v8::TryCatch try_catch; v8 276 samples/shell.cc v8::Handle<v8::Script> script = v8::Script::Compile(source, name); v8 283 samples/shell.cc v8::Handle<v8::Value> result = script->Run(); v8 295 samples/shell.cc v8::String::Utf8Value str(result); v8 306 samples/shell.cc v8::HandleScope handle_scope; v8 307 samples/shell.cc v8::String::Utf8Value exception(try_catch->Exception()); v8 309 samples/shell.cc v8::Handle<v8::Message> message = try_catch->Message(); v8 316 samples/shell.cc v8::String::Utf8Value filename(message->GetScriptResourceName()); v8 321 samples/shell.cc v8::String::Utf8Value sourceline(message->GetSourceLine()); v8 334 samples/shell.cc v8::String::Utf8Value stack_trace(try_catch->StackTrace()); v8 810 src/accessors.cc static v8::Handle<v8::Value> ModuleGetExport( v8 813 src/accessors.cc JSModule* instance = JSModule::cast(*v8::Utils::OpenHandle(*info.Holder())); v8 819 src/accessors.cc Handle<String> name = v8::Utils::OpenHandle(*property); v8 824 src/accessors.cc return v8::Handle<v8::Value>(); v8 826 src/accessors.cc return v8::Utils::ToLocal(Handle<Object>(value)); v8 834 src/accessors.cc JSModule* instance = JSModule::cast(*v8::Utils::OpenHandle(*info.Holder())); v8 840 src/accessors.cc Handle<String> name = v8::Utils::OpenHandle(*property); v8 847 src/accessors.cc context->set(slot, *v8::Utils::OpenHandle(*value)); v8 862 src/accessors.cc Handle<Object> getter = v8::FromCData(&ModuleGetExport); v8 863 src/accessors.cc Handle<Object> setter = v8::FromCData(&ModuleSetExport); v8 34 src/accessors.h namespace v8 { v8 33 src/allocation-inl.h namespace v8 { v8 41 src/allocation.cc v8::internal::FatalProcessOutOfMemory("Malloced operator new"); v8 53 src/allocation.cc v8::internal::FatalProcessOutOfMemory("Out of memory"); v8 33 src/allocation.h namespace v8 { v8 118 src/api.cc if (v8::Locker::IsActive()) { \ v8 486 src/api.cc v8::Handle<Value> ThrowException(v8::Handle<v8::Value> value) { v8 489 src/api.cc return v8::Handle<Value>(); v8 499 src/api.cc return v8::Undefined(); v8 547 src/api.cc v8::Handle<Primitive> Undefined() { v8 550 src/api.cc return v8::Handle<v8::Primitive>(); v8 552 src/api.cc return v8::Handle<Primitive>(ToApi<Primitive>( v8 557 src/api.cc v8::Handle<Primitive> Null() { v8 560 src/api.cc return v8::Handle<v8::Primitive>(); v8 562 src/api.cc return v8::Handle<Primitive>( v8 567 src/api.cc v8::Handle<Boolean> True() { v8 570 src/api.cc return v8::Handle<Boolean>(); v8 572 src/api.cc return v8::Handle<Boolean>( v8 577 src/api.cc v8::Handle<Boolean> False() { v8 580 src/api.cc return v8::Handle<Boolean>(); v8 582 src/api.cc return v8::Handle<Boolean>( v8 678 src/api.cc v8::ImplementationUtilities::HandleScopeData* current = v8 697 src/api.cc v8::ImplementationUtilities::HandleScopeData* current = v8 778 src/api.cc v8::Local<v8::Value> Context::GetData() { v8 782 src/api.cc return v8::Local<Value>(); v8 796 src/api.cc i::Object** v8::HandleScope::RawClose(i::Object** value) { v8 909 src/api.cc array.add(Utils::OpenHandle(*v8::Integer::New(attribute))); v8 959 src/api.cc if (data.IsEmpty()) data = v8::Undefined(); v8 1055 src/api.cc if (data.IsEmpty()) data = v8::Undefined(); v8 1073 src/api.cc if (data.IsEmpty()) data = v8::Undefined(); v8 1124 src/api.cc ObjectTemplate::New(v8::Handle<FunctionTemplate>(this)); v8 1186 src/api.cc if (data.IsEmpty()) data = v8::Undefined(); v8 1217 src/api.cc if (data.IsEmpty()) data = v8::Undefined(); v8 1238 src/api.cc if (data.IsEmpty()) data = v8::Undefined(); v8 1369 src/api.cc if (data.IsEmpty()) data = v8::Undefined(); v8 1670 src/api.cc v8::TryCatch::TryCatch() v8 1683 src/api.cc v8::TryCatch::~TryCatch() { v8 1686 src/api.cc v8::HandleScope scope; v8 1687 src/api.cc v8::Local<v8::Value> exc = v8::Local<v8::Value>::New(Exception()); v8 1689 src/api.cc v8::ThrowException(exc); v8 1696 src/api.cc bool v8::TryCatch::HasCaught() const { v8 1701 src/api.cc bool v8::TryCatch::CanContinue() const { v8 1706 src/api.cc v8::Handle<v8::Value> v8::TryCatch::ReThrow() { v8 1707 src/api.cc if (!HasCaught()) return v8::Local<v8::Value>(); v8 1709 src/api.cc return v8::Undefined(); v8 1713 src/api.cc v8::Local<Value> v8::TryCatch::Exception() const { v8 1718 src/api.cc return v8::Utils::ToLocal(i::Handle<i::Object>(exception, isolate_)); v8 1720 src/api.cc return v8::Local<Value>(); v8 1725 src/api.cc v8::Local<Value> v8::TryCatch::StackTrace() const { v8 1729 src/api.cc if (!raw_obj->IsJSObject()) return v8::Local<Value>(); v8 1733 src/api.cc if (!obj->HasProperty(*name)) return v8::Local<Value>(); v8 1735 src/api.cc if (value.is_null()) return v8::Local<Value>(); v8 1736 src/api.cc return v8::Utils::ToLocal(scope.CloseAndEscape(value)); v8 1738 src/api.cc return v8::Local<Value>(); v8 1743 src/api.cc v8::Local<v8::Message> v8::TryCatch::Message() const { v8 1747 src/api.cc return v8::Utils::MessageToLocal(i::Handle<i::Object>(message, isolate_)); v8 1749 src/api.cc return v8::Local<v8::Message>(); v8 1754 src/api.cc void v8::TryCatch::Reset() { v8 1761 src/api.cc void v8::TryCatch::SetVerbose(bool value) { v8 1766 src/api.cc void v8::TryCatch::SetCaptureMessage(bool value) { v8 1786 src/api.cc v8::Handle<Value> Message::GetScriptResourceName() const { v8 1803 src/api.cc v8::Handle<Value> Message::GetScriptData() const { v8 1820 src/api.cc v8::Handle<v8::StackTrace> Message::GetStackTrace() const { v8 1823 src/api.cc return Local<v8::StackTrace>(); v8 1830 src/api.cc if (!stackFramesObj->IsJSArray()) return v8::Handle<v8::StackTrace>(); v8 1950 src/api.cc EXCEPTION_BAILOUT_CHECK(isolate, Local<v8::String>()); v8 2346 src/api.cc Local<v8::Object> Value::ToObject() const { v8 2354 src/api.cc return Local<v8::Object>(); v8 2360 src/api.cc EXCEPTION_BAILOUT_CHECK(isolate, Local<v8::Object>()); v8 2362 src/api.cc return Local<v8::Object>(ToApi<Object>(val)); v8 2430 src/api.cc void v8::Object::CheckCast(Value* that) { v8 2439 src/api.cc void v8::Function::CheckCast(Value* that) { v8 2448 src/api.cc void v8::String::CheckCast(v8::Value* that) { v8 2457 src/api.cc void v8::Number::CheckCast(v8::Value* that) { v8 2466 src/api.cc void v8::Integer::CheckCast(v8::Value* that) { v8 2475 src/api.cc void v8::Array::CheckCast(Value* that) { v8 2484 src/api.cc void v8::Date::CheckCast(v8::Value* that) { v8 2494 src/api.cc void v8::StringObject::CheckCast(v8::Value* that) { v8 2504 src/api.cc void v8::NumberObject::CheckCast(v8::Value* that) { v8 2514 src/api.cc void v8::BooleanObject::CheckCast(v8::Value* that) { v8 2524 src/api.cc void v8::RegExp::CheckCast(v8::Value* that) { v8 2758 src/api.cc bool v8::Object::Set(v8::Handle<Value> key, v8::Handle<Value> value, v8 2780 src/api.cc bool v8::Object::Set(uint32_t index, v8::Handle<Value> value) { v8 2800 src/api.cc bool v8::Object::ForceSet(v8::Handle<Value> key, v8 2822 src/api.cc bool v8::Object::ForceDelete(v8::Handle<Value> key) { v8 2846 src/api.cc Local<Value> v8::Object::Get(v8::Handle<Value> key) { v8 2848 src/api.cc ON_BAILOUT(isolate, "v8::Object::Get()", return Local<v8::Value>()); v8 2860 src/api.cc Local<Value> v8::Object::Get(uint32_t index) { v8 2862 src/api.cc ON_BAILOUT(isolate, "v8::Object::Get()", return Local<v8::Value>()); v8 2873 src/api.cc PropertyAttribute v8::Object::GetPropertyAttributes(v8::Handle<Value> key) { v8 2893 src/api.cc Local<Value> v8::Object::GetPrototype() { v8 2896 src/api.cc return Local<v8::Value>()); v8 2904 src/api.cc bool v8::Object::SetPrototype(Handle<Value> value) { v8 2921 src/api.cc Local<Object> v8::Object::FindInstanceInPrototypeChain( v8 2926 src/api.cc return Local<v8::Object>()); v8 2939 src/api.cc Local<Array> v8::Object::GetPropertyNames() { v8 2942 src/api.cc return Local<v8::Array>()); v8 2949 src/api.cc if (threw) return Local<v8::Array>(); v8 2960 src/api.cc Local<Array> v8::Object::GetOwnPropertyNames() { v8 2963 src/api.cc return Local<v8::Array>()); v8 2970 src/api.cc if (threw) return Local<v8::Array>(); v8 2981 src/api.cc Local<String> v8::Object::ObjectProtoToString() { v8 2984 src/api.cc return Local<v8::String>()); v8 2996 src/api.cc return v8::String::New("[object ]"); v8 3001 src/api.cc return v8::String::New("[object Object]"); v8 3017 src/api.cc memcpy(ptr, prefix, prefix_len * v8::internal::kCharSize); v8 3025 src/api.cc memcpy(ptr, postfix, postfix_len * v8::internal::kCharSize); v8 3028 src/api.cc Local<String> result = v8::String::New(buf.start(), buf_len); v8 3035 src/api.cc Local<Value> v8::Object::GetConstructor() { v8 3038 src/api.cc return Local<v8::Function>()); v8 3046 src/api.cc Local<String> v8::Object::GetConstructorName() { v8 3049 src/api.cc return Local<v8::String>()); v8 3057 src/api.cc bool v8::Object::Delete(v8::Handle<String> key) { v8 3068 src/api.cc bool v8::Object::Has(v8::Handle<String> key) { v8 3078 src/api.cc bool v8::Object::Delete(uint32_t index) { v8 3089 src/api.cc bool v8::Object::Has(uint32_t index) { v8 3107 src/api.cc v8::Handle<AccessorSignature> signature; v8 3119 src/api.cc bool v8::Object::HasOwnProperty(Handle<String> key) { v8 3128 src/api.cc bool v8::Object::HasRealNamedProperty(Handle<String> key) { v8 3137 src/api.cc bool v8::Object::HasRealIndexedProperty(uint32_t index) { v8 3145 src/api.cc bool v8::Object::HasRealNamedCallbackProperty(Handle<String> key) { v8 3156 src/api.cc bool v8::Object::HasNamedLookupInterceptor() { v8 3164 src/api.cc bool v8::Object::HasIndexedLookupInterceptor() { v8 3195 src/api.cc Local<Value> v8::Object::GetRealNamedPropertyInPrototypeChain( v8 3210 src/api.cc Local<Value> v8::Object::GetRealNamedProperty(Handle<String> key) { v8 3226 src/api.cc void v8::Object::TurnOnAccessCheck() { v8 3244 src/api.cc bool v8::Object::IsDirty() { v8 3249 src/api.cc Local<v8::Object> v8::Object::Clone() { v8 3277 src/api.cc Local<v8::Context> v8::Object::CreationContext() { v8 3280 src/api.cc "v8::Object::CreationContext()", return Local<v8::Context>()); v8 3288 src/api.cc int v8::Object::GetIdentityHash() { v8 3298 src/api.cc bool v8::Object::SetHiddenValue(v8::Handle<v8::String> key, v8 3313 src/api.cc v8::Local<v8::Value> v8::Object::GetHiddenValue(v8::Handle<v8::String> key) { v8 3316 src/api.cc return Local<v8::Value>()); v8 3321 src/api.cc if (result->IsUndefined()) return v8::Local<v8::Value>(); v8 3326 src/api.cc bool v8::Object::DeleteHiddenValue(v8::Handle<v8::String> key) { v8 3396 src/api.cc void v8::Object::SetIndexedPropertiesToPixelData(uint8_t* data, int length) { v8 3416 src/api.cc bool v8::Object::HasIndexedPropertiesInPixelData() { v8 3424 src/api.cc uint8_t* v8::Object::GetIndexedPropertiesPixelData() { v8 3437 src/api.cc int v8::Object::GetIndexedPropertiesPixelDataLength() { v8 3449 src/api.cc void v8::Object::SetIndexedPropertiesToExternalArrayData( v8 3472 src/api.cc bool v8::Object::HasIndexedPropertiesInExternalArrayData() { v8 3481 src/api.cc void* v8::Object::GetIndexedPropertiesExternalArrayData() { v8 3494 src/api.cc ExternalArrayType v8::Object::GetIndexedPropertiesExternalArrayDataType() { v8 3524 src/api.cc int v8::Object::GetIndexedPropertiesExternalArrayDataLength() { v8 3537 src/api.cc bool v8::Object::IsCallable() { v8 3548 src/api.cc Local<v8::Value> Object::CallAsFunction(v8::Handle<v8::Object> recv, v8 3553 src/api.cc return Local<v8::Value>()); v8 3559 src/api.cc STATIC_ASSERT(sizeof(v8::Handle<v8::Value>) == sizeof(i::Object**)); v8 3580 src/api.cc Local<v8::Value> Object::CallAsConstructor(int argc, v8 3584 src/api.cc return Local<v8::Object>()); v8 3589 src/api.cc STATIC_ASSERT(sizeof(v8::Handle<v8::Value>) == sizeof(i::Object**)); v8 3596 src/api.cc EXCEPTION_BAILOUT_CHECK_DO_CALLBACK(isolate, Local<v8::Object>()); v8 3603 src/api.cc EXCEPTION_BAILOUT_CHECK(isolate, Local<v8::Object>()); v8 3609 src/api.cc EXCEPTION_BAILOUT_CHECK_DO_CALLBACK(isolate, Local<v8::Object>()); v8 3613 src/api.cc return Local<v8::Object>(); v8 3617 src/api.cc Local<v8::Object> Function::NewInstance() const { v8 3622 src/api.cc Local<v8::Object> Function::NewInstance(int argc, v8 3626 src/api.cc return Local<v8::Object>()); v8 3631 src/api.cc STATIC_ASSERT(sizeof(v8::Handle<v8::Value>) == sizeof(i::Object**)); v8 3636 src/api.cc EXCEPTION_BAILOUT_CHECK_DO_CALLBACK(isolate, Local<v8::Object>()); v8 3641 src/api.cc Local<v8::Value> Function::Call(v8::Handle<v8::Object> recv, int argc, v8 3644 src/api.cc ON_BAILOUT(isolate, "v8::Function::Call()", return Local<v8::Value>()); v8 3652 src/api.cc STATIC_ASSERT(sizeof(v8::Handle<v8::Value>) == sizeof(i::Object**)); v8 3690 src/api.cc v8::ScriptOrigin origin( v8 3692 src/api.cc v8::Integer::New(script->line_offset()->value()), v8 3693 src/api.cc v8::Integer::New(script->column_offset()->value())); v8 3696 src/api.cc return v8::ScriptOrigin(Handle<Value>()); v8 3725 src/api.cc return v8::Undefined(); v8 4035 src/api.cc bool v8::String::IsExternal() const { v8 4045 src/api.cc bool v8::String::IsExternalAscii() const { v8 4054 src/api.cc void v8::String::VerifyExternalStringResource( v8 4057 src/api.cc const v8::String::ExternalStringResource* expected; v8 4069 src/api.cc const v8::String::ExternalAsciiStringResource* v8 4070 src/api.cc v8::String::GetExternalAsciiStringResource() const { v8 4133 src/api.cc int v8::Object::InternalFieldCount() { v8 4142 src/api.cc Local<Value> v8::Object::CheckedGetInternalField(int index) { v8 4162 src/api.cc void v8::Object::SetInternalField(int index, v8::Handle<Value> value) { v8 4196 src/api.cc void v8::Object::SetPointerInInternalField(int index, void* value) { v8 4216 src/api.cc bool v8::V8::Initialize() { v8 4225 src/api.cc void v8::V8::SetEntropySource(EntropySource source) { v8 4230 src/api.cc void v8::V8::SetReturnAddressLocationResolver( v8 4236 src/api.cc bool v8::V8::SetFunctionEntryHook(FunctionEntryHook entry_hook) { v8 4241 src/api.cc bool v8::V8::Dispose() { v8 4259 src/api.cc void v8::V8::GetHeapStatistics(HeapStatistics* heap_statistics) { v8 4278 src/api.cc void v8::V8::VisitExternalResources(ExternalResourceVisitor* visitor) { v8 4285 src/api.cc bool v8::V8::IdleNotification(int hint) { v8 4294 src/api.cc void v8::V8::LowMemoryNotification() { v8 4301 src/api.cc int v8::V8::ContextDisposedNotification() { v8 4308 src/api.cc const char* v8::V8::GetVersion() { v8 4325 src/api.cc Persistent<Context> v8::Context::New( v8 4339 src/api.cc v8::Handle<ObjectTemplate> proxy_template = global_template; v8 4399 src/api.cc void v8::Context::SetSecurityToken(Handle<Value> token) { v8 4411 src/api.cc void v8::Context::UseDefaultSecurityToken() { v8 4423 src/api.cc Handle<Value> v8::Context::GetSecurityToken() { v8 4446 src/api.cc v8::Local<v8::Context> Context::GetEntered() { v8 4459 src/api.cc v8::Local<v8::Context> Context::GetCurrent() { v8 4471 src/api.cc v8::Local<v8::Context> Context::GetCalling() { v8 4484 src/api.cc v8::Local<v8::Object> Context::Global() { v8 4486 src/api.cc return Local<v8::Object>(); v8 4553 src/api.cc Local<v8::Object> ObjectTemplate::NewInstance() { v8 4556 src/api.cc return Local<v8::Object>()); v8 4563 src/api.cc EXCEPTION_BAILOUT_CHECK(isolate, Local<v8::Object>()); v8 4568 src/api.cc Local<v8::Function> FunctionTemplate::GetFunction() { v8 4571 src/api.cc return Local<v8::Function>()); v8 4578 src/api.cc EXCEPTION_BAILOUT_CHECK(isolate, Local<v8::Function>()); v8 4600 src/api.cc Local<Value> v8::External::Wrap(void* data) { v8 4607 src/api.cc v8::Local<v8::Value> result = CanBeEncodedAsSmi(data) v8 4609 src/api.cc : v8::Local<v8::Value>(ExternalNewImpl(data)); v8 4616 src/api.cc void* v8::Object::SlowGetPointerFromInternalField(int index) { v8 4629 src/api.cc void* v8::External::FullUnwrap(v8::Handle<v8::Value> wrapper) { v8 4645 src/api.cc Local<External> v8::External::New(void* data) { v8 4662 src/api.cc Local<String> v8::String::Empty() { v8 4665 src/api.cc return v8::Local<String>(); v8 4672 src/api.cc Local<String> v8::String::New(const char* data, int length) { v8 4686 src/api.cc Local<String> v8::String::Concat(Handle<String> left, Handle<String> right) { v8 4699 src/api.cc Local<String> v8::String::NewUndetectable(const char* data, int length) { v8 4720 src/api.cc Local<String> v8::String::New(const uint16_t* data, int length) { v8 4734 src/api.cc Local<String> v8::String::NewUndetectable(const uint16_t* data, int length) { v8 4764 src/api.cc Local<String> v8::String::NewExternal( v8 4776 src/api.cc bool v8::String::MakeExternal(v8::String::ExternalStringResource* resource) { v8 4798 src/api.cc Local<String> v8::String::NewExternal( v8 4810 src/api.cc bool v8::String::MakeExternal( v8 4833 src/api.cc bool v8::String::CanMakeExternal() { v8 4846 src/api.cc Local<v8::Object> v8::Object::New() { v8 4857 src/api.cc Local<v8::Value> v8::NumberObject::New(double value) { v8 4868 src/api.cc double v8::NumberObject::NumberValue() const { v8 4878 src/api.cc Local<v8::Value> v8::BooleanObject::New(bool value) { v8 4890 src/api.cc bool v8::BooleanObject::BooleanValue() const { v8 4900 src/api.cc Local<v8::Value> v8::StringObject::New(Handle<String> value) { v8 4911 src/api.cc Local<v8::String> v8::StringObject::StringValue() const { v8 4914 src/api.cc return Local<v8::String>(); v8 4924 src/api.cc Local<v8::Value> v8::Date::New(double time) { v8 4936 src/api.cc EXCEPTION_BAILOUT_CHECK(isolate, Local<v8::Value>()); v8 4941 src/api.cc double v8::Date::NumberValue() const { v8 4951 src/api.cc void v8::Date::DateTimeConfigurationChangeNotification() { v8 4998 src/api.cc Local<v8::RegExp> v8::RegExp::New(Handle<String> pattern, v8 5009 src/api.cc EXCEPTION_BAILOUT_CHECK(isolate, Local<v8::RegExp>()); v8 5014 src/api.cc Local<v8::String> v8::RegExp::GetSource() const { v8 5017 src/api.cc return Local<v8::String>(); v8 5026 src/api.cc STATIC_ASSERT(static_cast<int>(v8::RegExp::api_flag) == \ v8 5034 src/api.cc v8::RegExp::Flags v8::RegExp::GetFlags() const { v8 5036 src/api.cc return v8::RegExp::kNone; v8 5043 src/api.cc Local<v8::Array> v8::Array::New(int length) { v8 5057 src/api.cc uint32_t v8::Array::Length() const { v8 5092 src/api.cc Local<String> v8::String::NewSymbol(const char* data, int length) { v8 5104 src/api.cc Local<Number> v8::Number::New(double value) { v8 5117 src/api.cc Local<Integer> v8::Integer::New(int32_t value) { v8 5672 src/api.cc v8::String::Value json(message.GetJSON()); v8 5768 src/api.cc v8::HandleScope scope; v8 5776 src/api.cc v8::Handle<v8::Function> v8_fun = Utils::ToLocal(fun); v8 5778 src/api.cc v8::Handle<v8::Value> argv[kArgc] = { obj }; v8 5780 src/api.cc v8::Handle<v8::Value> result = v8_fun->Call(Utils::ToLocal(debug), v8 6024 src/api.cc return v8::Undefined(); v8 6094 src/api.cc v8::Handle<v8::Value> HeapGraphNode::GetHeapValue() const { v8 6098 src/api.cc return v8::Handle<Value>(!object.is_null() ? v8 6295 src/api.cc v8::Testing::StressType internal::Testing::stress_type_ = v8 6296 src/api.cc v8::Testing::kStressTypeOpt; v8 6369 src/api.cc v8::ImplementationUtilities::HandleScopeData* current = v8 6435 src/api.cc v8::ImplementationUtilities::HandleScopeData* current = v8 40 src/api.h namespace v8 { v8 60 src/api.h explicit inline NeanderObject(v8::internal::Handle<v8::internal::Object> obj); v8 61 src/api.h explicit inline NeanderObject(v8::internal::Object* obj); v8 62 src/api.h inline v8::internal::Object* get(int index); v8 63 src/api.h inline void set(int index, v8::internal::Object* value); v8 64 src/api.h inline v8::internal::Handle<v8::internal::JSObject> value() { return value_; } v8 67 src/api.h v8::internal::Handle<v8::internal::JSObject> value_; v8 76 src/api.h explicit inline NeanderArray(v8::internal::Handle<v8::internal::Object> obj); v8 77 src/api.h inline v8::internal::Handle<v8::internal::JSObject> value() { v8 81 src/api.h void add(v8::internal::Handle<v8::internal::Object> value); v8 85 src/api.h v8::internal::Object* get(int index); v8 88 src/api.h void set(int index, v8::internal::Object* value); v8 94 src/api.h NeanderObject::NeanderObject(v8::internal::Handle<v8::internal::Object> obj) v8 95 src/api.h : value_(v8::internal::Handle<v8::internal::JSObject>::cast(obj)) { } v8 98 src/api.h NeanderObject::NeanderObject(v8::internal::Object* obj) v8 99 src/api.h : value_(v8::internal::Handle<v8::internal::JSObject>( v8 100 src/api.h v8::internal::JSObject::cast(obj))) { } v8 103 src/api.h NeanderArray::NeanderArray(v8::internal::Handle<v8::internal::Object> obj) v8 107 src/api.h v8::internal::Object* NeanderObject::get(int offset) { v8 109 src/api.h return v8::internal::FixedArray::cast(value()->elements())->get(offset); v8 113 src/api.h void NeanderObject::set(int offset, v8::internal::Object* value) { v8 115 src/api.h v8::internal::FixedArray::cast(value_->elements())->set(offset, value); v8 119 src/api.h template <typename T> inline T ToCData(v8::internal::Object* obj) { v8 120 src/api.h STATIC_ASSERT(sizeof(T) == sizeof(v8::internal::Address)); v8 123 src/api.h v8::internal::Foreign::cast(obj)->foreign_address())); v8 128 src/api.h inline v8::internal::Handle<v8::internal::Object> FromCData(T obj) { v8 129 src/api.h STATIC_ASSERT(sizeof(T) == sizeof(v8::internal::Address)); v8 131 src/api.h reinterpret_cast<v8::internal::Address>(reinterpret_cast<intptr_t>(obj))); v8 137 src/api.h explicit ApiFunction(v8::internal::Address addr) : addr_(addr) { } v8 138 src/api.h v8::internal::Address address() { return addr_; } v8 140 src/api.h v8::internal::Address addr_; v8 170 src/api.h v8::internal::Handle<v8::internal::Context> obj); v8 172 src/api.h v8::internal::Handle<v8::internal::Object> obj); v8 174 src/api.h v8::internal::Handle<v8::internal::JSFunction> obj); v8 176 src/api.h v8::internal::Handle<v8::internal::String> obj); v8 178 src/api.h v8::internal::Handle<v8::internal::JSRegExp> obj); v8 180 src/api.h v8::internal::Handle<v8::internal::JSObject> obj); v8 182 src/api.h v8::internal::Handle<v8::internal::JSArray> obj); v8 184 src/api.h v8::internal::Handle<v8::internal::Foreign> obj); v8 186 src/api.h v8::internal::Handle<v8::internal::Object> obj); v8 188 src/api.h v8::internal::Handle<v8::internal::JSArray> obj); v8 190 src/api.h v8::internal::Handle<v8::internal::JSObject> obj); v8 192 src/api.h v8::internal::Handle<v8::internal::Object> obj); v8 194 src/api.h v8::internal::Handle<v8::internal::Object> obj); v8 196 src/api.h v8::internal::Handle<v8::internal::Object> obj); v8 198 src/api.h v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); v8 200 src/api.h v8::internal::Handle<v8::internal::ObjectTemplateInfo> obj); v8 202 src/api.h v8::internal::Handle<v8::internal::SignatureInfo> obj); v8 204 src/api.h v8::internal::Handle<v8::internal::FunctionTemplateInfo> obj); v8 206 src/api.h v8::internal::Handle<v8::internal::TypeSwitchInfo> obj); v8 208 src/api.h static inline v8::internal::Handle<v8::internal::TemplateInfo> v8 210 src/api.h static inline v8::internal::Handle<v8::internal::FunctionTemplateInfo> v8 212 src/api.h static inline v8::internal::Handle<v8::internal::ObjectTemplateInfo> v8 214 src/api.h static inline v8::internal::Handle<v8::internal::Object> v8 216 src/api.h static inline v8::internal::Handle<v8::internal::JSRegExp> v8 218 src/api.h static inline v8::internal::Handle<v8::internal::JSObject> v8 219 src/api.h OpenHandle(const v8::Object* data); v8 220 src/api.h static inline v8::internal::Handle<v8::internal::JSArray> v8 221 src/api.h OpenHandle(const v8::Array* data); v8 222 src/api.h static inline v8::internal::Handle<v8::internal::String> v8 224 src/api.h static inline v8::internal::Handle<v8::internal::Object> v8 226 src/api.h static inline v8::internal::Handle<v8::internal::JSFunction> v8 228 src/api.h static inline v8::internal::Handle<v8::internal::JSObject> v8 230 src/api.h static inline v8::internal::Handle<v8::internal::JSArray> v8 232 src/api.h static inline v8::internal::Handle<v8::internal::JSObject> v8 234 src/api.h static inline v8::internal::Handle<v8::internal::Context> v8 235 src/api.h OpenHandle(const v8::Context* context); v8 236 src/api.h static inline v8::internal::Handle<v8::internal::SignatureInfo> v8 237 src/api.h OpenHandle(const v8::Signature* sig); v8 238 src/api.h static inline v8::internal::Handle<v8::internal::FunctionTemplateInfo> v8 239 src/api.h OpenHandle(const v8::AccessorSignature* sig); v8 240 src/api.h static inline v8::internal::Handle<v8::internal::TypeSwitchInfo> v8 241 src/api.h OpenHandle(const v8::TypeSwitch* that); v8 242 src/api.h static inline v8::internal::Handle<v8::internal::Foreign> v8 243 src/api.h OpenHandle(const v8::External* that); v8 248 src/api.h inline T* ToApi(v8::internal::Handle<v8::internal::Object> obj) { v8 254 src/api.h v8::internal::Handle<T> v8::internal::Handle<T>::EscapeFrom( v8 255 src/api.h v8::HandleScope* scope) { v8 256 src/api.h v8::internal::Handle<T> handle; v8 267 src/api.h Local<v8::To> Utils::Name(v8::internal::Handle<v8::internal::From> obj) { \ v8 298 src/api.h v8::internal::Handle<v8::internal::To> Utils::OpenHandle(\ v8 299 src/api.h const v8::From* that) { \ v8 300 src/api.h return v8::internal::Handle<v8::internal::To>( \ v8 301 src/api.h reinterpret_cast<v8::internal::To**>(const_cast<v8::From*>(that))); \ v8 453 src/api.h void Iterate(v8::internal::ObjectVisitor* v); v8 454 src/api.h static char* Iterate(v8::internal::ObjectVisitor* v, char* data); v8 519 src/api.h v8::ImplementationUtilities::HandleScopeData handle_scope_data_; v8 532 src/api.h const int kHandleBlockSize = v8::internal::KB - 2; // fit in one page v8 591 src/api.h v8::ImplementationUtilities::ZapHandleRange(block_start, block_limit); v8 605 src/api.h static v8::Testing::StressType stress_type() { return stress_type_; } v8 606 src/api.h static void set_stress_type(v8::Testing::StressType stress_type) { v8 611 src/api.h static v8::Testing::StressType stress_type_; v8 31 src/apiutils.h namespace v8 { v8 49 src/apiutils.h implicit_args[v8::Arguments::kDataIndex] = data; v8 50 src/apiutils.h implicit_args[v8::Arguments::kCalleeIndex] = callee; v8 51 src/apiutils.h implicit_args[v8::Arguments::kHolderIndex] = holder; v8 52 src/apiutils.h implicit_args[v8::Arguments::kIsolateIndex] = v8 56 src/apiutils.h static v8::Arguments NewArguments(internal::Object** implicit_args, v8 59 src/apiutils.h ASSERT(implicit_args[v8::Arguments::kCalleeIndex]->IsJSFunction()); v8 60 src/apiutils.h ASSERT(implicit_args[v8::Arguments::kHolderIndex]->IsHeapObject()); v8 62 src/apiutils.h ASSERT(implicit_args[v8::Arguments::kIsolateIndex]->IsSmi()); v8 64 src/apiutils.h return v8::Arguments(implicit_args, argv, argc, is_construct_call); v8 69 src/apiutils.h typedef v8::HandleScope::Data HandleScopeData; v8 33 src/arguments.h namespace v8 { v8 46 src/arm/assembler-arm-inl.h namespace v8 { v8 47 src/arm/assembler-arm.h namespace v8 { v8 33 src/arm/code-stubs-arm.h namespace v8 { v8 34 src/arm/codegen-arm.h namespace v8 { v8 86 src/arm/constants-arm.h namespace v8 { v8 62 src/arm/debug-arm.cc patcher.masm()->ldr(v8::internal::ip, MemOperand(v8::internal::pc, 0)); v8 63 src/arm/debug-arm.cc patcher.masm()->blx(v8::internal::ip); v8 65 src/arm/debug-arm.cc patcher.masm()->mov(v8::internal::lr, v8::internal::pc); v8 66 src/arm/debug-arm.cc patcher.masm()->ldr(v8::internal::pc, MemOperand(v8::internal::pc, -4)); v8 112 src/arm/debug-arm.cc patcher.masm()->ldr(v8::internal::ip, MemOperand(v8::internal::pc, 0)); v8 113 src/arm/debug-arm.cc patcher.masm()->blx(v8::internal::ip); v8 115 src/arm/debug-arm.cc patcher.masm()->mov(v8::internal::lr, v8::internal::pc); v8 116 src/arm/debug-arm.cc patcher.masm()->ldr(v8::internal::pc, MemOperand(v8::internal::pc, -4)); v8 1445 src/arm/disasm-arm.cc v8::internal::OS::SNPrintF(tmp_buffer_, "%p", addr); v8 1456 src/arm/disasm-arm.cc return v8::internal::Registers::Name(reg); v8 1490 src/arm/disasm-arm.cc v8::internal::Decoder d(converter_, buffer); v8 1496 src/arm/disasm-arm.cc return v8::internal::Decoder::ConstantPoolSizeAt(instruction); v8 1504 src/arm/disasm-arm.cc v8::internal::EmbeddedVector<char, 128> buffer; v8 31 src/arm/frames-arm.h namespace v8 { v8 37 src/arm/lithium-arm.h namespace v8 { v8 37 src/arm/lithium-codegen-arm.h namespace v8 { v8 35 src/arm/lithium-gap-resolver-arm.h namespace v8 { v8 35 src/arm/macro-assembler-arm.h namespace v8 { v8 34 src/arm/regexp-macro-assembler-arm.h namespace v8 { v8 284 src/arm/simulator-arm.cc v8::internal::EmbeddedVector<char, 256> buffer; v8 413 src/arm/simulator-arm.cc Heap* current_heap = v8::internal::Isolate::Current()->heap(); v8 430 src/arm/simulator-arm.cc v8::internal::EmbeddedVector<char, 256> buffer; v8 475 src/arm/simulator-arm.cc v8::internal::OS::DebugBreak(); v8 558 src/arm/simulator-arm.cc ::v8::internal::FLAG_trace_sim = !::v8::internal::FLAG_trace_sim; v8 560 src/arm/simulator-arm.cc ::v8::internal::FLAG_trace_sim ? "on" : "off"); v8 679 src/arm/simulator-arm.cc v8::internal::HashMap::Entry* entry = i_cache->Lookup(page, v8 732 src/arm/simulator-arm.cc ::v8::internal::ExternalReference::set_redirector(isolate, v8 740 src/arm/simulator-arm.cc i_cache_ = new v8::internal::HashMap(&ICacheMatch); v8 860 src/arm/simulator-arm.cc v8::internal::Isolate::PerIsolateThreadData* isolate_data = v8 1719 src/arm/simulator-arm.cc typedef v8::Handle<v8::Value> (*SimulatorRuntimeDirectApiCall)(int32_t arg0); v8 1722 src/arm/simulator-arm.cc typedef v8::Handle<v8::Value> (*SimulatorRuntimeDirectGetterCall)(int32_t arg0, v8 1735 src/arm/simulator-arm.cc & (::v8::internal::FLAG_sim_stack_alignment - 1)) == 0; v8 1781 src/arm/simulator-arm.cc if (::v8::internal::FLAG_trace_sim || !stack_aligned) { v8 1824 src/arm/simulator-arm.cc if (::v8::internal::FLAG_trace_sim) { v8 1833 src/arm/simulator-arm.cc if (::v8::internal::FLAG_trace_sim || !stack_aligned) { v8 1842 src/arm/simulator-arm.cc v8::Handle<v8::Value> result = target(arg0); v8 1843 src/arm/simulator-arm.cc if (::v8::internal::FLAG_trace_sim) { v8 1850 src/arm/simulator-arm.cc if (::v8::internal::FLAG_trace_sim || !stack_aligned) { v8 1859 src/arm/simulator-arm.cc v8::Handle<v8::Value> result = target(arg0, arg1); v8 1860 src/arm/simulator-arm.cc if (::v8::internal::FLAG_trace_sim) { v8 1869 src/arm/simulator-arm.cc if (::v8::internal::FLAG_trace_sim || !stack_aligned) { v8 1889 src/arm/simulator-arm.cc if (::v8::internal::FLAG_trace_sim) { v8 3229 src/arm/simulator-arm.cc if (v8::internal::FLAG_check_icache) { v8 3233 src/arm/simulator-arm.cc if (::v8::internal::FLAG_trace_sim) { v8 3237 src/arm/simulator-arm.cc v8::internal::EmbeddedVector<char, 256> buffer; v8 3297 src/arm/simulator-arm.cc if (::v8::internal::FLAG_stop_sim_at == 0) { v8 3312 src/arm/simulator-arm.cc if (icount_ == ::v8::internal::FLAG_stop_sim_at) { v8 44 src/arm/simulator-arm.h namespace v8 { v8 69 src/arm/simulator-arm.h class SimulatorStack : public v8::internal::AllStatic { v8 71 src/arm/simulator-arm.h static inline uintptr_t JsLimitFromCLimit(v8::internal::Isolate* isolate, v8 93 src/arm/simulator-arm.h namespace v8 { v8 153 src/arm/simulator-arm.h static Simulator* current(v8::internal::Isolate* isolate); v8 202 src/arm/simulator-arm.h static void FlushICache(v8::internal::HashMap* i_cache, void* start, v8 318 src/arm/simulator-arm.h static void CheckICache(v8::internal::HashMap* i_cache, Instruction* instr); v8 319 src/arm/simulator-arm.h static void FlushOnePage(v8::internal::HashMap* i_cache, intptr_t start, v8 321 src/arm/simulator-arm.h static CachePage* GetCachePage(v8::internal::HashMap* i_cache, void* page); v8 326 src/arm/simulator-arm.h v8::internal::ExternalReference::Type type); v8 371 src/arm/simulator-arm.h v8::internal::HashMap* i_cache_; v8 377 src/arm/simulator-arm.h v8::internal::Isolate* isolate_; v8 418 src/arm/simulator-arm.h class SimulatorStack : public v8::internal::AllStatic { v8 420 src/arm/simulator-arm.h static inline uintptr_t JsLimitFromCLimit(v8::internal::Isolate* isolate, v8 735 src/arm/stub-cache-arm.cc Address function_address = v8::ToCData<Address>(api_call_info->callback()); v8 1275 src/arm/stub-cache-arm.cc Address getter_address = v8::ToCData<Address>(callback->getter()); v8 47 src/assembler.h namespace v8 { v8 47 src/ast.h namespace v8 { v8 54 src/atomicops.h namespace v8 { v8 35 src/atomicops_internals_arm_gcc.h namespace v8 { v8 35 src/atomicops_internals_mips_gcc.h namespace v8 { v8 33 src/atomicops_internals_x86_gcc.h namespace v8 { v8 35 src/atomicops_internals_x86_macosx.h namespace v8 { v8 254 src/atomicops_internals_x86_macosx.h return v8::internal::Acquire_CompareAndSwap( v8 262 src/atomicops_internals_x86_macosx.h return v8::internal::Release_CompareAndSwap( v8 273 src/atomicops_internals_x86_macosx.h return v8::internal::Acquire_Store( v8 278 src/atomicops_internals_x86_macosx.h return v8::internal::Release_Store( v8 288 src/atomicops_internals_x86_macosx.h return v8::internal::Acquire_Load( v8 293 src/atomicops_internals_x86_macosx.h return v8::internal::Release_Load( v8 36 src/atomicops_internals_x86_msvc.h namespace v8 { v8 31 src/bignum-dtoa.h namespace v8 { v8 31 src/bignum.h namespace v8 { v8 689 src/bootstrapper.cc v8::NeanderArray listeners; v8 717 src/bootstrapper.cc v8::Utils::OpenHandle(*global_template); v8 770 src/bootstrapper.cc v8::Utils::OpenHandle(*global_template); v8 1954 src/bootstrapper.cc return v8::internal::ComputePointerHash(extension); v8 1989 src/bootstrapper.cc v8::RegisteredExtension* current = v8::RegisteredExtension::first_extension(); v8 2003 src/bootstrapper.cc int count = v8::ImplementationUtilities::GetNameCount(extensions); v8 2004 src/bootstrapper.cc const char** names = v8::ImplementationUtilities::GetNames(extensions); v8 2018 src/bootstrapper.cc v8::RegisteredExtension* current = v8::RegisteredExtension::first_extension(); v8 2026 src/bootstrapper.cc v8::Utils::ReportApiFailure( v8 2042 src/bootstrapper.cc v8::Utils::ReportApiFailure( v8 2048 src/bootstrapper.cc v8::Extension* extension = current->extension(); v8 2108 src/bootstrapper.cc v8::Utils::OpenHandle(*global_proxy_template); v8 34 src/bootstrapper.h namespace v8 { v8 100 src/bootstrapper.h v8::Handle<v8::ObjectTemplate> global_template, v8 101 src/bootstrapper.h v8::ExtensionConfiguration* extensions); v8 130 src/bootstrapper.h v8::ExtensionConfiguration* extensions); v8 169 src/bootstrapper.h : public v8::String::ExternalAsciiStringResource { v8 1121 src/builtins.cc v8::InvocationCallback callback = v8 1122 src/builtins.cc v8::ToCData<v8::InvocationCallback>(callback_obj); v8 1130 src/builtins.cc v8::ImplementationUtilities::PrepareArgumentsData(custom.end(), v8 1133 src/builtins.cc v8::Arguments new_args = v8::ImplementationUtilities::NewArguments( v8 1139 src/builtins.cc v8::Handle<v8::Value> value; v8 1144 src/builtins.cc v8::ToCData<Address>(callback_obj)); v8 1198 src/builtins.cc v8::InvocationCallback callback = v8 1199 src/builtins.cc v8::ToCData<v8::InvocationCallback>(callback_obj); v8 1208 src/builtins.cc v8::ImplementationUtilities::PrepareArgumentsData(custom.end(), v8 1210 src/builtins.cc v8::Arguments new_args = v8::ImplementationUtilities::NewArguments( v8 1215 src/builtins.cc v8::Handle<v8::Value> value; v8 1220 src/builtins.cc v8::ToCData<Address>(callback_obj)); v8 1637 src/builtins.cc v8::internal::V8::FatalProcessOutOfMemory("CreateCode"); v8 31 src/builtins.h namespace v8 { v8 32 src/bytecodes-irregexp.h namespace v8 { v8 33 src/cached-powers.h namespace v8 { v8 33 src/char-predicates-inl.h namespace v8 { v8 33 src/char-predicates.h namespace v8 { v8 69 src/checks.cc v8::String::Utf8Value value_str(value); v8 70 src/checks.cc v8::String::Utf8Value expected_str(expected); v8 85 src/checks.cc v8::String::Utf8Value value_str(value); v8 33 src/circular-queue-inl.h namespace v8 { v8 31 src/circular-queue.h namespace v8 { v8 35 src/code-stubs.h namespace v8 { v8 260 src/code-stubs.h namespace v8 { v8 33 src/code.h namespace v8 { v8 84 src/codegen.h namespace v8 { v8 31 src/compilation-cache.h namespace v8 { v8 31 src/compiler-intrinsics.h namespace v8 { v8 35 src/compiler.h namespace v8 { v8 73 src/compiler.h v8::Extension* extension() const { return extension_; } v8 115 src/compiler.h void SetExtension(v8::Extension* extension) { v8 254 src/compiler.h v8::Extension* extension_; v8 419 src/compiler.h v8::Extension* extension, v8 34 src/contexts.h namespace v8 { v8 46 src/conversions-inl.h namespace v8 { v8 33 src/conversions.h namespace v8 { v8 34 src/counters.h namespace v8 { v8 38 src/cpu-profiler-inl.h namespace v8 { v8 365 src/cpu-profiler.cc v8::CpuProfileNode::kNoLineNumberInfo, v8 381 src/cpu-profiler.cc v8::CpuProfileNode::kNoLineNumberInfo, v8 36 src/cpu-profiler.h namespace v8 { v8 193 src/cpu-profiler.h if (v8::internal::CpuProfiler::is_profiling(isolate)) { \ v8 194 src/cpu-profiler.h v8::internal::CpuProfiler::Call; \ v8 199 src/cpu-profiler.h namespace v8 { v8 41 src/cpu.h namespace v8 { v8 36 src/d8-debug.h namespace v8 { v8 455 src/d8-posix.cc if (!GetTimeouts(args, &read_timeout, &total_timeout)) return v8::Undefined(); v8 477 src/d8-posix.cc return v8::Undefined(); v8 502 src/d8-posix.cc if (!ChildLaunchedOK(exec_error_fds)) return v8::Undefined(); v8 518 src/d8-posix.cc return v8::Undefined(); v8 538 src/d8-posix.cc return v8::Undefined(); v8 620 src/d8-posix.cc return v8::Undefined(); v8 635 src/d8-posix.cc return v8::Undefined(); v8 657 src/d8-posix.cc return v8::Undefined(); v8 673 src/d8-posix.cc return v8::Undefined(); v8 178 src/d8.cc v8::String::Utf8Value str(result); v8 203 src/d8.cc v8::String::Utf8Value str(args[i]); v8 353 src/d8.cc data, v8::kExternalByteArray, length); v8 784 src/d8.cc return CreateExternalArray(args, v8::kExternalByteArray, sizeof(int8_t)); v8 832 src/d8.cc v8::Unlocker unlocker; v8 858 src/d8.cc v8::String::Utf8Value exception(try_catch->Exception()); v8 867 src/d8.cc v8::String::Utf8Value filename(message->GetScriptResourceName()); v8 872 src/d8.cc v8::String::Utf8Value sourceline(message->GetSourceLine()); v8 885 src/d8.cc v8::String::Utf8Value stack_trace(try_catch->StackTrace()); v8 935 src/d8.cc v8::Context::Scope scope(Shell::evaluation_context_); v8 936 src/d8.cc v8::Debug::ProcessDebugMessages(); v8 1087 src/d8.cc v8::Debug::SetDebugEventListener(HandleDebugEvent); v8 1095 src/d8.cc class BZip2Decompressor : public v8::StartupDataDecompressor { v8 1104 src/d8.cc ASSERT_EQ(v8::StartupData::kBZip2, v8 1105 src/d8.cc v8::V8::GetCompressedStartupDataAlgorithm()); v8 1231 src/d8.cc v8::Debug::EnableAgent("d8 shell", i::FLAG_debugger_port, true); v8 1232 src/d8.cc v8::Debug::SetDebugMessageDispatchHandler(DispatchDebugMessages, true); v8 1353 src/d8.cc v8::Unlocker unlocker(Isolate::GetCurrent()); v8 1727 src/d8.cc v8::V8::SetFlagsFromCommandLine(&argc, argv, true); v8 1900 src/d8.cc return v8::Shell::Main(argc, argv); v8 40 src/d8.h namespace v8 { v8 144 src/d8.h next_semaphore_(v8::internal::OS::CreateSemaphore(0)), v8 145 src/d8.h done_semaphore_(v8::internal::OS::CreateSemaphore(0)), v8 198 src/d8.h class BinaryResource : public v8::String::ExternalAsciiStringResource { v8 271 src/d8.h static const char* ToCString(const v8::String::Utf8Value& value); v8 38 src/data-flow.h namespace v8 { v8 36 src/date.h namespace v8 { v8 33 src/dateparser-inl.h namespace v8 { v8 34 src/dateparser.h namespace v8 { v8 143 src/debug-agent.cc v8::String::Value val(message.GetJSON()); v8 208 src/debug-agent.cc v8::Debug::SendCommand(reinterpret_cast<const uint16_t *>(temp.start()), v8 211 src/debug-agent.cc reinterpret_cast<v8::Isolate*>(agent_->isolate())); v8 338 src/debug-agent.cc "V8-Version: %s\r\n", v8::V8::GetVersion()); v8 435 src/debug-agent.cc v8::String::Utf8Value utf8_request(request); v8 35 src/debug-agent.h namespace v8 { v8 70 src/debug-agent.h void DebuggerMessage(const v8::Debug::Message& message); v8 85 src/debug-agent.h friend void DebuggerAgentMessageHandler(const v8::Debug::Message& message); v8 124 src/debug-agent.h const v8::Handle<v8::String> message); v8 78 src/debug.cc v8::Local<v8::String> s = value->ToString(); v8 95 src/debug.cc static v8::Handle<v8::Context> GetDebugEventContext(Isolate* isolate) { v8 99 src/debug.cc if (context.is_null()) return v8::Local<v8::Context>(); v8 101 src/debug.cc return v8::Utils::ToLocal(global_context); v8 820 src/debug.cc v8::Handle<ObjectTemplate>(), v8 2545 src/debug.cc if (!Debugger::EventActive(v8::Exception)) return; v8 2577 src/debug.cc ProcessDebugEvent(v8::Exception, Handle<JSObject>::cast(event_data), false); v8 2590 src/debug.cc if (!Debugger::EventActive(v8::Break)) return; v8 2609 src/debug.cc ProcessDebugEvent(v8::Break, v8 2621 src/debug.cc if (!EventActive(v8::BeforeCompile)) return; v8 2636 src/debug.cc ProcessDebugEvent(v8::BeforeCompile, v8 2695 src/debug.cc if (!Debugger::EventActive(v8::AfterCompile)) return; v8 2706 src/debug.cc ProcessDebugEvent(v8::AfterCompile, v8 2717 src/debug.cc if (!Debugger::EventActive(v8::ScriptCollected)) return; v8 2733 src/debug.cc ProcessDebugEvent(v8::ScriptCollected, v8 2765 src/debug.cc if ((event != v8::Break || !auto_continue) && !event_listener_.is_null()) { v8 2769 src/debug.cc if (event == v8::Break) { v8 2773 src/debug.cc CallEventCallback(v8::BreakForCommand, v8 2801 src/debug.cc v8::Debug::EventCallback2 callback = v8 2802 src/debug.cc FUNCTION_CAST<v8::Debug::EventCallback2>( v8 2869 src/debug.cc case v8::Break: v8 2870 src/debug.cc case v8::BreakForCommand: v8 2873 src/debug.cc case v8::Exception: v8 2876 src/debug.cc case v8::BeforeCompile: v8 2878 src/debug.cc case v8::AfterCompile: v8 2881 src/debug.cc case v8::ScriptCollected: v8 2884 src/debug.cc case v8::NewFunction: v8 2911 src/debug.cc if ((auto_continue && !HasCommands()) || event == v8::ScriptCollected) { v8 2915 src/debug.cc v8::TryCatch try_catch; v8 2918 src/debug.cc v8::Local<v8::Object> cmd_processor; v8 2920 src/debug.cc v8::Local<v8::Object> api_exec_state = v8 2921 src/debug.cc v8::Utils::ToLocal(Handle<JSObject>::cast(exec_state)); v8 2922 src/debug.cc v8::Local<v8::String> fun_name = v8 2923 src/debug.cc v8::String::New("debugCommandProcessor"); v8 2924 src/debug.cc v8::Local<v8::Function> fun = v8 2925 src/debug.cc v8::Function::Cast(*api_exec_state->Get(fun_name)); v8 2927 src/debug.cc v8::Handle<v8::Boolean> running = v8 2928 src/debug.cc auto_continue ? v8::True() : v8::False(); v8 2930 src/debug.cc v8::Handle<Value> argv[kArgc] = { running }; v8 2931 src/debug.cc cmd_processor = v8::Object::Cast(*fun->Call(api_exec_state, kArgc, argv)); v8 2966 src/debug.cc v8::Local<v8::String> fun_name; v8 2967 src/debug.cc v8::Local<v8::Function> fun; v8 2968 src/debug.cc v8::Local<v8::Value> request; v8 2969 src/debug.cc v8::TryCatch try_catch; v8 2970 src/debug.cc fun_name = v8::String::New("processDebugRequest"); v8 2971 src/debug.cc fun = v8::Function::Cast(*cmd_processor->Get(fun_name)); v8 2973 src/debug.cc request = v8::String::New(command.text().start(), v8 2976 src/debug.cc v8::Handle<Value> argv[kArgc] = { request }; v8 2977 src/debug.cc v8::Local<v8::Value> response_val = fun->Call(cmd_processor, kArgc, argv); v8 2980 src/debug.cc v8::Local<v8::String> response; v8 2984 src/debug.cc response = v8::String::Cast(*response_val); v8 2986 src/debug.cc response = v8::String::New(""); v8 2996 src/debug.cc fun_name = v8::String::New("isRunning"); v8 2997 src/debug.cc fun = v8::Function::Cast(*cmd_processor->Get(fun_name)); v8 2999 src/debug.cc v8::Handle<Value> argv[kArgc] = { response }; v8 3000 src/debug.cc v8::Local<v8::Value> running_val = fun->Call(cmd_processor, kArgc, argv); v8 3228 src/debug.cc v8::Debug::DebugBreak(); v8 3262 src/debug.cc v8::Debug::DebugMessageDispatchHandler handler; v8 3419 src/debug.cc v8::Handle<v8::Object> MessageImpl::GetExecutionState() const { v8 3420 src/debug.cc return v8::Utils::ToLocal(exec_state_); v8 3424 src/debug.cc v8::Handle<v8::Object> MessageImpl::GetEventData() const { v8 3425 src/debug.cc return v8::Utils::ToLocal(event_data_); v8 3429 src/debug.cc v8::Handle<v8::String> MessageImpl::GetJSON() const { v8 3430 src/debug.cc v8::HandleScope scope; v8 3436 src/debug.cc return v8::Handle<v8::String>(); v8 3443 src/debug.cc return v8::Handle<v8::String>(); v8 3445 src/debug.cc return scope.Close(v8::Utils::ToLocal(Handle<String>::cast(json))); v8 3447 src/debug.cc return v8::Utils::ToLocal(response_json_); v8 3452 src/debug.cc v8::Handle<v8::Context> MessageImpl::GetEventContext() const { v8 3454 src/debug.cc v8::Handle<v8::Context> context = GetDebugEventContext(isolate); v8 3456 src/debug.cc ASSERT(!context.IsEmpty() || event_ == v8::ScriptCollected); v8 3461 src/debug.cc v8::Debug::ClientData* MessageImpl::GetClientData() const { v8 3483 src/debug.cc v8::Handle<v8::Object> EventDetailsImpl::GetExecutionState() const { v8 3484 src/debug.cc return v8::Utils::ToLocal(exec_state_); v8 3488 src/debug.cc v8::Handle<v8::Object> EventDetailsImpl::GetEventData() const { v8 3489 src/debug.cc return v8::Utils::ToLocal(event_data_); v8 3493 src/debug.cc v8::Handle<v8::Context> EventDetailsImpl::GetEventContext() const { v8 3498 src/debug.cc v8::Handle<v8::Value> EventDetailsImpl::GetCallbackData() const { v8 3499 src/debug.cc return v8::Utils::ToLocal(callback_data_); v8 3503 src/debug.cc v8::Debug::ClientData* EventDetailsImpl::GetClientData() const { v8 47 src/debug.h namespace v8 { v8 182 src/debug.h return ComputeIntegerHash(key, v8::internal::kZeroHashSeed); v8 192 src/debug.h static void HandleWeakScript(v8::Persistent<v8::Value> obj, void* data); v8 384 src/debug.h static void HandleWeakDebugInfo(v8::Persistent<v8::Value> obj, void* data); v8 621 src/debug.h class MessageImpl: public v8::Debug::Message { v8 635 src/debug.h v8::Debug::ClientData* client_data); v8 642 src/debug.h virtual v8::Handle<v8::Object> GetExecutionState() const; v8 643 src/debug.h virtual v8::Handle<v8::Object> GetEventData() const; v8 644 src/debug.h virtual v8::Handle<v8::String> GetJSON() const; v8 645 src/debug.h virtual v8::Handle<v8::Context> GetEventContext() const; v8 646 src/debug.h virtual v8::Debug::ClientData* GetClientData() const; v8 655 src/debug.h v8::Debug::ClientData* client_data); v8 663 src/debug.h v8::Debug::ClientData* client_data_; // Client data passed with the request. v8 668 src/debug.h class EventDetailsImpl : public v8::Debug::EventDetails { v8 674 src/debug.h v8::Debug::ClientData* client_data); v8 676 src/debug.h virtual v8::Handle<v8::Object> GetExecutionState() const; v8 677 src/debug.h virtual v8::Handle<v8::Object> GetEventData() const; v8 678 src/debug.h virtual v8::Handle<v8::Context> GetEventContext() const; v8 679 src/debug.h virtual v8::Handle<v8::Value> GetCallbackData() const; v8 680 src/debug.h virtual v8::Debug::ClientData* GetClientData() const; v8 687 src/debug.h v8::Debug::ClientData* client_data_; // Data passed to DebugBreakForCommand. v8 698 src/debug.h v8::Debug::ClientData* data); v8 705 src/debug.h v8::Debug::ClientData* client_data() const { return client_data_; } v8 708 src/debug.h v8::Debug::ClientData* data); v8 711 src/debug.h v8::Debug::ClientData* client_data_; v8 795 src/debug.h void ProcessDebugEvent(v8::DebugEvent event, v8 798 src/debug.h void NotifyMessageHandler(v8::DebugEvent event, v8 803 src/debug.h void SetMessageHandler(v8::Debug::MessageHandler2 handler); v8 804 src/debug.h void SetHostDispatchHandler(v8::Debug::HostDispatchHandler handler, v8 807 src/debug.h v8::Debug::DebugMessageDispatchHandler handler, v8 815 src/debug.h v8::Debug::ClientData* client_data = NULL); v8 821 src/debug.h void EnqueueDebugCommand(v8::Debug::ClientData* client_data = NULL); v8 846 src/debug.h inline bool EventActive(v8::DebugEvent event) { v8 856 src/debug.h if (((event == v8::BeforeCompile) || (event == v8::AfterCompile)) && v8 860 src/debug.h } else if ((event == v8::ScriptCollected) && v8 885 src/debug.h void CallEventCallback(v8::DebugEvent event, v8 888 src/debug.h v8::Debug::ClientData* client_data); v8 889 src/debug.h void CallCEventCallback(v8::DebugEvent event, v8 892 src/debug.h v8::Debug::ClientData* client_data); v8 893 src/debug.h void CallJSEventCallback(v8::DebugEvent event, v8 905 src/debug.h v8::Debug::MessageHandler2 message_handler_; v8 907 src/debug.h v8::Debug::HostDispatchHandler host_dispatch_handler_; v8 909 src/debug.h v8::Debug::DebugMessageDispatchHandler debug_message_dispatch_handler_; v8 38 src/deoptimizer.h namespace v8 { v8 313 src/deoptimizer.h v8::Persistent<v8::Value> obj, void* data); v8 49 src/disasm.h v8::internal::EmbeddedVector<char, 128> tmp_buffer_; v8 63 src/disasm.h int InstructionDecode(v8::internal::Vector<char> buffer, byte* instruction); v8 123 src/disassembler.cc v8::internal::EmbeddedVector<char, 128> decode_buffer; v8 124 src/disassembler.cc v8::internal::EmbeddedVector<char, kOutBufferSize> out_buffer; v8 33 src/disassembler.h namespace v8 { v8 31 src/diy-fp.h namespace v8 { v8 33 src/double.h namespace v8 { v8 31 src/dtoa.h namespace v8 { v8 33 src/elements-kind.h namespace v8 { v8 36 src/elements.h namespace v8 { v8 201 src/execution.cc v8::TryCatch catcher; v8 218 src/execution.cc result = v8::Utils::OpenHandle(*catcher.Exception()); v8 806 src/execution.cc v8::Unlocker unlocker(reinterpret_cast<v8::Isolate*>(isolate)); v8 812 src/execution.cc v8::Unlocker unlocker(reinterpret_cast<v8::Isolate*>(isolate)); v8 33 src/execution.h namespace v8 { v8 64 src/extensions/externalize-string-extension.cc v8::Handle<v8::FunctionTemplate> ExternalizeStringExtension::GetNativeFunction( v8 66 src/extensions/externalize-string-extension.cc if (strcmp(*v8::String::AsciiValue(str), "externalizeString") == 0) { v8 67 src/extensions/externalize-string-extension.cc return v8::FunctionTemplate::New(ExternalizeStringExtension::Externalize); v8 69 src/extensions/externalize-string-extension.cc ASSERT(strcmp(*v8::String::AsciiValue(str), "isAsciiString") == 0); v8 70 src/extensions/externalize-string-extension.cc return v8::FunctionTemplate::New(ExternalizeStringExtension::IsAscii); v8 75 src/extensions/externalize-string-extension.cc v8::Handle<v8::Value> ExternalizeStringExtension::Externalize( v8 78 src/extensions/externalize-string-extension.cc return v8::ThrowException(v8::String::New( v8 86 src/extensions/externalize-string-extension.cc return v8::ThrowException(v8::String::New( v8 91 src/extensions/externalize-string-extension.cc Handle<String> string = Utils::OpenHandle(*args[0].As<v8::String>()); v8 93 src/extensions/externalize-string-extension.cc return v8::ThrowException(v8::String::New( v8 118 src/extensions/externalize-string-extension.cc return v8::ThrowException(v8::String::New("externalizeString() failed.")); v8 120 src/extensions/externalize-string-extension.cc return v8::Undefined(); v8 124 src/extensions/externalize-string-extension.cc v8::Handle<v8::Value> ExternalizeStringExtension::IsAscii( v8 127 src/extensions/externalize-string-extension.cc return v8::ThrowException(v8::String::New( v8 130 src/extensions/externalize-string-extension.cc return Utils::OpenHandle(*args[0].As<v8::String>())->IsAsciiRepresentation() ? v8 131 src/extensions/externalize-string-extension.cc v8::True() : v8::False(); v8 137 src/extensions/externalize-string-extension.cc static v8::DeclareExtension declaration(&externalize_extension); v8 33 src/extensions/externalize-string-extension.h namespace v8 { v8 36 src/extensions/externalize-string-extension.h class ExternalizeStringExtension : public v8::Extension { v8 38 src/extensions/externalize-string-extension.h ExternalizeStringExtension() : v8::Extension("v8/externalize", kSource) {} v8 39 src/extensions/externalize-string-extension.h virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction( v8 40 src/extensions/externalize-string-extension.h v8::Handle<v8::String> name); v8 41 src/extensions/externalize-string-extension.h static v8::Handle<v8::Value> Externalize(const v8::Arguments& args); v8 42 src/extensions/externalize-string-extension.h static v8::Handle<v8::Value> IsAscii(const v8::Arguments& args); v8 36 src/extensions/gc-extension.cc v8::Handle<v8::FunctionTemplate> GCExtension::GetNativeFunction( v8 38 src/extensions/gc-extension.cc return v8::FunctionTemplate::New(GCExtension::GC); v8 42 src/extensions/gc-extension.cc v8::Handle<v8::Value> GCExtension::GC(const v8::Arguments& args) { v8 44 src/extensions/gc-extension.cc return v8::Undefined(); v8 50 src/extensions/gc-extension.cc static v8::DeclareExtension declaration(&gc_extension); v8 33 src/extensions/gc-extension.h namespace v8 { v8 36 src/extensions/gc-extension.h class GCExtension : public v8::Extension { v8 38 src/extensions/gc-extension.h GCExtension() : v8::Extension("v8/gc", kSource) {} v8 39 src/extensions/gc-extension.h virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction( v8 40 src/extensions/gc-extension.h v8::Handle<v8::String> name); v8 41 src/extensions/gc-extension.h static v8::Handle<v8::Value> GC(const v8::Arguments& args); v8 666 src/factory.cc v8::HandleScope scope; // Instantiate a closeable HandleScope for EscapeFrom. v8 921 src/factory.cc v8::NeanderArray callbacks(descriptors); v8 35 src/factory.h namespace v8 { v8 31 src/fast-dtoa.h namespace v8 { v8 31 src/fixed-dtoa.h namespace v8 { v8 30 src/flags.h namespace v8 { v8 47 src/frames-inl.h namespace v8 { v8 778 src/frames.cc v8::internal::Isolate::Current()->heap()->FindCodeObject(pc)); v8 1362 src/frames.cc v8::internal::kZeroHashSeed); v8 35 src/frames.h namespace v8 { v8 39 src/full-codegen.h namespace v8 { v8 31 src/func-name-inferrer.h namespace v8 { v8 43 src/gdb-jit.h namespace v8 { v8 69 src/global-handles.cc class_id_ = v8::HeapProfiler::kPersistentHandleNoClassId; v8 90 src/global-handles.cc class_id_ = v8::HeapProfiler::kPersistentHandleNoClassId; v8 119 src/global-handles.cc return class_id_ != v8::HeapProfiler::kPersistentHandleNoClassId; v8 223 src/global-handles.cc v8::Persistent<v8::Object> object = ToApi<v8::Object>(handle()); v8 35 src/global-handles.h namespace v8 { v8 51 src/global-handles.h v8::RetainedObjectInfo* info) { v8 67 src/global-handles.h v8::RetainedObjectInfo* info_; v8 207 src/global-handles.h v8::RetainedObjectInfo* info); v8 62 src/globals.h namespace v8 { v8 308 src/globals.h (reinterpret_cast<v8::internal::Address>(reinterpret_cast<intptr_t>(f))) v8 37 src/handles-inl.h namespace v8 { v8 72 src/handles-inl.h v8::ImplementationUtilities::HandleScopeData* current = v8 83 src/handles-inl.h v8::ImplementationUtilities::HandleScopeData* current = v8 98 src/handles-inl.h v8::ImplementationUtilities::HandleScopeData* current = v8 117 src/handles-inl.h v8::ImplementationUtilities::HandleScopeData* current = v8 134 src/handles-inl.h v8::ImplementationUtilities::HandleScopeData* current = v8 152 src/handles-inl.h v8::ImplementationUtilities::HandleScopeData* current = v8 167 src/handles-inl.h v8::ImplementationUtilities::HandleScopeData* data = v8 60 src/handles.cc v8::ImplementationUtilities::HandleScopeData* current = v8 101 src/handles.cc v8::ImplementationUtilities::HandleScopeData* current = v8 110 src/handles.cc *reinterpret_cast<Address*>(p) = v8::internal::kHandleZapValue; v8 547 src/handles.cc v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSReceiver> receiver, v8 552 src/handles.cc v8::AccessorInfo info(args.end()); v8 553 src/handles.cc v8::Handle<v8::Array> result; v8 555 src/handles.cc v8::NamedPropertyEnumerator enum_fun = v8 556 src/handles.cc v8::ToCData<v8::NamedPropertyEnumerator>(interceptor->enumerator()); v8 569 src/handles.cc v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSReceiver> receiver, v8 574 src/handles.cc v8::AccessorInfo info(args.end()); v8 575 src/handles.cc v8::Handle<v8::Array> result; v8 577 src/handles.cc v8::IndexedPropertyEnumerator enum_fun = v8 578 src/handles.cc v8::ToCData<v8::IndexedPropertyEnumerator>(interceptor->enumerator()); v8 633 src/handles.cc v8::ACCESS_KEYS)) { v8 634 src/handles.cc isolate->ReportFailedAccessCheck(*current, v8::ACCESS_KEYS); v8 647 src/handles.cc v8::Handle<v8::Array> result = v8 650 src/handles.cc content = AddKeysFromJSArray(content, v8::Utils::OpenHandle(*result)); v8 677 src/handles.cc v8::Handle<v8::Array> result = v8 680 src/handles.cc content = AddKeysFromJSArray(content, v8::Utils::OpenHandle(*result)); v8 966 src/handles.cc v8::ImplementationUtilities::HandleScopeData* data = v8 993 src/handles.cc v8::ImplementationUtilities::HandleScopeData* data = v8 34 src/handles.h namespace v8 { v8 91 src/handles.h inline Handle<T> EscapeFrom(v8::HandleScope* scope); v8 162 src/handles.h friend class v8::HandleScope; v8 163 src/handles.h friend class v8::internal::HandleScopeImplementer; v8 164 src/handles.h friend class v8::ImplementationUtilities; v8 263 src/handles.h v8::Handle<v8::Array> GetKeysForNamedInterceptor(Handle<JSReceiver> receiver, v8 265 src/handles.h v8::Handle<v8::Array> GetKeysForIndexedInterceptor(Handle<JSReceiver> receiver, v8 35 src/hashmap.h namespace v8 { v8 281 src/hashmap.h v8::internal::FatalProcessOutOfMemory("HashMap::Initialize"); v8 40 src/heap-inl.h namespace v8 { v8 249 src/heap-inl.h v8::String::ExternalStringResourceBase** resource_addr = v8 250 src/heap-inl.h reinterpret_cast<v8::String::ExternalStringResourceBase**>( v8 521 src/heap-inl.h v8::internal::V8::FatalProcessOutOfMemory("CALL_AND_RETRY_0", true);\ v8 530 src/heap-inl.h v8::internal::V8::FatalProcessOutOfMemory("CALL_AND_RETRY_1", true);\ v8 543 src/heap-inl.h v8::internal::V8::FatalProcessOutOfMemory("CALL_AND_RETRY_2", true);\ v8 108 src/heap-profiler.cc ASSERT(class_id != v8::HeapProfiler::kPersistentHandleNoClassId); v8 117 src/heap-profiler.cc v8::RetainedObjectInfo* HeapProfiler::ExecuteWrapperClassCallback( v8 202 src/heap-profiler.cc return v8::HeapProfiler::kUnknownObjectId; v8 33 src/heap-profiler.h namespace v8 { v8 41 src/heap-profiler.h v8::internal::HeapProfiler* profiler = heap->isolate()->heap_profiler(); \ v8 56 src/heap-profiler.h v8::ActivityControl* control); v8 59 src/heap-profiler.h v8::ActivityControl* control); v8 73 src/heap-profiler.h uint16_t class_id, v8::HeapProfiler::WrapperInfoCallback callback); v8 75 src/heap-profiler.h v8::RetainedObjectInfo* ExecuteWrapperClassCallback(uint16_t class_id, v8 86 src/heap-profiler.h v8::ActivityControl* control); v8 89 src/heap-profiler.h v8::ActivityControl* control); v8 98 src/heap-profiler.h List<v8::HeapProfiler::WrapperInfoCallback> wrapper_callbacks_; v8 1532 src/heap.cc v8::ExternalResourceVisitor* visitor_; v8 45 src/heap.h namespace v8 { v8 1468 src/heap.h void VisitExternalResources(v8::ExternalResourceVisitor* visitor); v8 42 src/hydrogen-instructions.h namespace v8 { v8 40 src/hydrogen.h namespace v8 { v8 45 src/ia32/assembler-ia32-inl.h namespace v8 { v8 43 src/ia32/assembler-ia32.h namespace v8 { v8 35 src/ia32/code-stubs-ia32.h namespace v8 { v8 34 src/ia32/codegen-ia32.h namespace v8 { v8 287 src/ia32/disasm-ia32.cc v8::internal::EmbeddedVector<char, 128> tmp_buffer_; v8 380 src/ia32/disasm-ia32.cc v8::internal::Vector<char> buf = tmp_buffer_ + tmp_buffer_pos_; v8 383 src/ia32/disasm-ia32.cc int result = v8::internal::OS::VSNPrintF(buf, format, args); v8 1586 src/ia32/disasm-ia32.cc outp += v8::internal::OS::SNPrintF(out_buffer + outp, v8 1591 src/ia32/disasm-ia32.cc outp += v8::internal::OS::SNPrintF(out_buffer + outp, v8 1595 src/ia32/disasm-ia32.cc outp += v8::internal::OS::SNPrintF(out_buffer + outp, v8 1621 src/ia32/disasm-ia32.cc v8::internal::OS::SNPrintF(tmp_buffer_, "%p", addr); v8 1680 src/ia32/disasm-ia32.cc v8::internal::EmbeddedVector<char, 128> buffer; v8 31 src/ia32/frames-ia32.h namespace v8 { v8 39 src/ia32/lithium-codegen-ia32.h namespace v8 { v8 35 src/ia32/lithium-gap-resolver-ia32.h namespace v8 { v8 37 src/ia32/lithium-ia32.h namespace v8 { v8 35 src/ia32/macro-assembler-ia32.h namespace v8 { v8 34 src/ia32/regexp-macro-assembler-ia32.h namespace v8 { v8 33 src/ia32/simulator-ia32.h namespace v8 { v8 57 src/ia32/simulator-ia32.h class SimulatorStack : public v8::internal::AllStatic { v8 524 src/ia32/stub-cache-ia32.cc Address function_address = v8::ToCData<Address>(api_call_info->callback()); v8 1112 src/ia32/stub-cache-ia32.cc Address getter_address = v8::ToCData<Address>(callback->getter()); v8 37 src/ic-inl.h namespace v8 { v8 991 src/ic.cc if (v8::ToCData<Address>(info->getter()) == 0) return; v8 1268 src/ic.cc if (v8::ToCData<Address>(callback->getter()) == 0) return; v8 1491 src/ic.cc if (v8::ToCData<Address>(info->setter()) == 0) return; v8 2257 src/ic.cc return ::v8::internal::UNINITIALIZED; v8 2265 src/ic.cc return ::v8::internal::UNINITIALIZED; v8 2269 src/ic.cc ::v8::internal::TypeInfo operand_type = v8 2270 src/ic.cc ::v8::internal::TypeInfo::TypeFromValue(operand); v8 2326 src/ic.cc return ::v8::internal::UNINITIALIZED; v8 2338 src/ic.cc return ::v8::internal::UNINITIALIZED; v8 2359 src/ic.cc ::v8::internal::TypeInfo left_type = v8 2360 src/ic.cc ::v8::internal::TypeInfo::TypeFromValue(left); v8 2361 src/ic.cc ::v8::internal::TypeInfo right_type = v8 2362 src/ic.cc ::v8::internal::TypeInfo::TypeFromValue(right); v8 34 src/ic.h namespace v8 { v8 33 src/incremental-marking-inl.h namespace v8 { v8 36 src/incremental-marking.h namespace v8 { v8 39 src/inspector.h namespace v8 { v8 33 src/interface.h namespace v8 { v8 33 src/interpreter-irregexp.h namespace v8 { v8 35 src/isolate-inl.h namespace v8 { v8 127 src/isolate.cc v8::TryCatch* ThreadLocalTop::TryCatchHandler() { v8 458 src/isolate.cc for (v8::TryCatch* block = thread->TryCatchHandler(); v8 765 src/isolate.cc v8::Utils::ToLocal(receiver_handle), v8 767 src/isolate.cc v8::Utils::ToLocal(data)); v8 828 src/isolate.cc v8::NamedSecurityCallback callback = v8 829 src/isolate.cc v8::ToCData<v8::NamedSecurityCallback>(fun_obj); v8 842 src/isolate.cc result = callback(v8::Utils::ToLocal(receiver_handle), v8 843 src/isolate.cc v8::Utils::ToLocal(key_handle), v8 845 src/isolate.cc v8::Utils::ToLocal(data)); v8 871 src/isolate.cc v8::IndexedSecurityCallback callback = v8 872 src/isolate.cc v8::ToCData<v8::IndexedSecurityCallback>(fun_obj); v8 884 src/isolate.cc result = callback(v8::Utils::ToLocal(receiver_handle), v8 887 src/isolate.cc v8::Utils::ToLocal(data)); v8 1576 src/isolate.cc v8::Locker locker; v8 1577 src/isolate.cc v8::Locker::StopPreemption(); v8 1862 src/isolate.cc v8::Locker locker; v8 1863 src/isolate.cc v8::Locker::StartPreemption(100); v8 49 src/isolate.h namespace v8 { v8 207 src/isolate.h v8::TryCatch* TryCatchHandler(); v8 251 src/isolate.h v8::TryCatch* catcher_; v8 271 src/isolate.h v8::FailedAccessCheckCallback failed_access_check_callback_; v8 289 src/isolate.h V(v8::Debug::EventCallback, debug_event_callback, NULL) \ v8 329 src/isolate.h V(v8::Debug::MessageHandler, message_handler, NULL) \ v8 568 src/isolate.h v8::TryCatch* try_catch_handler() { v8 577 src/isolate.h v8::TryCatch* catcher() { v8 580 src/isolate.h void set_catcher(v8::TryCatch* catcher) { v8 686 src/isolate.h v8::TryCatch* catcher_; v8 720 src/isolate.h v8::AccessType type); v8 723 src/isolate.h v8::AccessType type); v8 725 src/isolate.h void SetFailedAccessCheckCallback(v8::FailedAccessCheckCallback callback); v8 726 src/isolate.h void ReportFailedAccessCheck(JSObject* receiver, v8::AccessType type); v8 773 src/isolate.h void RegisterTryCatchHandler(v8::TryCatch* that); v8 774 src/isolate.h void UnregisterTryCatchHandler(v8::TryCatch* that); v8 855 src/isolate.h v8::ImplementationUtilities::HandleScopeData* handle_scope_data() { v8 1205 src/isolate.h v8::ImplementationUtilities::HandleScopeData handle_scope_data_; v8 1288 src/isolate.h friend class v8::Isolate; v8 1289 src/isolate.h friend class v8::Locker; v8 1290 src/isolate.h friend class v8::Unlocker; v8 1417 src/isolate.h #define HEAP (v8::internal::Isolate::Current()->heap()) v8 1418 src/isolate.h #define FACTORY (v8::internal::Isolate::Current()->factory()) v8 1419 src/isolate.h #define ISOLATE (v8::internal::Isolate::Current()) v8 1420 src/isolate.h #define LOGGER (v8::internal::Isolate::Current()->logger()) v8 39 src/json-parser.h namespace v8 { v8 35 src/jsregexp.h namespace v8 { v8 96 src/lazy-instance.h namespace v8 { v8 33 src/list-inl.h namespace v8 { v8 33 src/list.h namespace v8 { v8 45 src/lithium-allocator-inl.h namespace v8 { v8 37 src/lithium-allocator.h namespace v8 { v8 35 src/lithium.h namespace v8 { v8 55 src/liveedit.h namespace v8 { v8 35 src/liveobjectlist-inl.h namespace v8 { v8 38 src/liveobjectlist.h namespace v8 { v8 34 src/log-inl.h namespace v8 { v8 219 src/log-utils.cc int result = v8::internal::OS::VSNPrintF(buf, format, args); v8 33 src/log-utils.h namespace v8 { v8 1571 src/log.cc Address entry_point = v8::ToCData<Address>(callback_obj); v8 1612 src/log.cc Address getter_entry = v8::ToCData<Address>(ai->getter()); v8 1616 src/log.cc Address setter_entry = v8::ToCData<Address>(ai->setter()); v8 36 src/log.h namespace v8 { v8 83 src/log.h v8::internal::Logger* logger = \ v8 72 src/macro-assembler.h namespace v8 { v8 36 src/mark-compact-inl.h namespace v8 { v8 34 src/mark-compact.h namespace v8 { v8 113 src/messages.cc v8::Local<v8::Message> api_message_obj = v8::Utils::MessageToLocal(message); v8 115 src/messages.cc v8::NeanderArray global_listeners(FACTORY->message_listeners()); v8 126 src/messages.cc v8::NeanderObject listener(JSObject::cast(global_listeners.get(i))); v8 128 src/messages.cc v8::MessageCallback callback = v8 129 src/messages.cc FUNCTION_CAST<v8::MessageCallback>(callback_obj->foreign_address()); v8 133 src/messages.cc v8::TryCatch try_catch; v8 134 src/messages.cc callback(api_message_obj, v8::Utils::ToLocal(callback_data)); v8 39 src/messages.h namespace v8 { v8 48 src/messages.h v8::internal::Handle<v8::internal::JSArray> args, v8 49 src/messages.h const v8::internal::MessageLocation* loc) : v8 52 src/messages.h v8::internal::Handle<v8::internal::JSArray> args() const { return args_; } v8 53 src/messages.h const v8::internal::MessageLocation* loc() const { return loc_; } v8 56 src/messages.h v8::internal::Handle<v8::internal::JSArray> const args_; v8 57 src/messages.h const v8::internal::MessageLocation* loc_; v8 61 src/messages.h namespace v8 { v8 45 src/mips/assembler-mips-inl.h namespace v8 { v8 44 src/mips/assembler-mips.h namespace v8 { v8 74 src/mips/assembler-mips.h static const int kNumRegisters = v8::internal::kNumRegisters; v8 189 src/mips/assembler-mips.h static const int kNumRegisters = v8::internal::kNumFPURegisters; v8 34 src/mips/code-stubs-mips.h namespace v8 { v8 36 src/mips/codegen-mips.h namespace v8 { v8 34 src/mips/constants-mips.h v8::internal::PrintF("%s, \tline %d: \tfunction %s not implemented. \n", \ v8 40 src/mips/constants-mips.h #define UNSUPPORTED_MIPS() v8::internal::PrintF("Unsupported instruction.\n") v8 79 src/mips/constants-mips.h namespace v8 { v8 61 src/mips/debug-mips.cc patcher.masm()->li(v8::internal::t9, v8 64 src/mips/debug-mips.cc patcher.masm()->Call(v8::internal::t9); v8 107 src/mips/debug-mips.cc patcher.masm()->li(v8::internal::t9, Operand(reinterpret_cast<int32_t>( v8 109 src/mips/debug-mips.cc patcher.masm()->Call(v8::internal::t9); v8 133 src/mips/disasm-mips.cc v8::internal::Vector<char> out_buffer_; v8 978 src/mips/disasm-mips.cc v8::internal::OS::SNPrintF(tmp_buffer_, "%p", addr); v8 989 src/mips/disasm-mips.cc return v8::internal::Registers::Name(reg); v8 994 src/mips/disasm-mips.cc return v8::internal::FPURegisters::Name(reg); v8 1022 src/mips/disasm-mips.cc v8::internal::Decoder d(converter_, buffer); v8 1037 src/mips/disasm-mips.cc v8::internal::EmbeddedVector<char, 128> buffer; v8 33 src/mips/frames-mips.h namespace v8 { v8 37 src/mips/lithium-codegen-mips.h namespace v8 { v8 35 src/mips/lithium-gap-resolver-mips.h namespace v8 { v8 37 src/mips/lithium-mips.h namespace v8 { v8 35 src/mips/macro-assembler-mips.h namespace v8 { v8 38 src/mips/regexp-macro-assembler-mips.h namespace v8 { v8 380 src/mips/simulator-mips.cc v8::internal::EmbeddedVector<char, 256> buffer; v8 528 src/mips/simulator-mips.cc Heap* current_heap = v8::internal::Isolate::Current()->heap(); v8 548 src/mips/simulator-mips.cc v8::internal::EmbeddedVector<char, 256> buffer; v8 592 src/mips/simulator-mips.cc v8::internal::OS::DebugBreak(); v8 682 src/mips/simulator-mips.cc v8::internal::EmbeddedVector<char, 256> buffer; v8 826 src/mips/simulator-mips.cc v8::internal::HashMap::Entry* entry = i_cache->Lookup(page, v8 879 src/mips/simulator-mips.cc ::v8::internal::ExternalReference::set_redirector(isolate, v8 887 src/mips/simulator-mips.cc i_cache_ = new v8::internal::HashMap(&ICacheMatch); v8 991 src/mips/simulator-mips.cc v8::internal::Isolate::PerIsolateThreadData* isolate_data = v8 1405 src/mips/simulator-mips.cc typedef v8::Handle<v8::Value> (*SimulatorRuntimeDirectApiCall)(int32_t arg0); v8 1408 src/mips/simulator-mips.cc typedef v8::Handle<v8::Value> (*SimulatorRuntimeDirectGetterCall)(int32_t arg0, v8 1480 src/mips/simulator-mips.cc if (::v8::internal::FLAG_trace_sim) { v8 1523 src/mips/simulator-mips.cc if (::v8::internal::FLAG_trace_sim) { v8 1527 src/mips/simulator-mips.cc v8::Handle<v8::Value> result = target(arg1); v8 1534 src/mips/simulator-mips.cc if (::v8::internal::FLAG_trace_sim) { v8 1538 src/mips/simulator-mips.cc v8::Handle<v8::Value> result = target(arg1, arg2); v8 1544 src/mips/simulator-mips.cc if (::v8::internal::FLAG_trace_sim) { v8 1560 src/mips/simulator-mips.cc if (::v8::internal::FLAG_trace_sim) { v8 2650 src/mips/simulator-mips.cc if (v8::internal::FLAG_check_icache) { v8 2654 src/mips/simulator-mips.cc if (::v8::internal::FLAG_trace_sim) { v8 2658 src/mips/simulator-mips.cc v8::internal::EmbeddedVector<char, 256> buffer; v8 2689 src/mips/simulator-mips.cc if (::v8::internal::FLAG_stop_sim_at == 0) { v8 2704 src/mips/simulator-mips.cc if (icount_ == ::v8::internal::FLAG_stop_sim_at) { v8 45 src/mips/simulator-mips.h namespace v8 { v8 70 src/mips/simulator-mips.h class SimulatorStack : public v8::internal::AllStatic { v8 102 src/mips/simulator-mips.h namespace v8 { v8 181 src/mips/simulator-mips.h static Simulator* current(v8::internal::Isolate* isolate); v8 229 src/mips/simulator-mips.h static void FlushICache(v8::internal::HashMap* i_cache, void* start, v8 329 src/mips/simulator-mips.h static void CheckICache(v8::internal::HashMap* i_cache, Instruction* instr); v8 330 src/mips/simulator-mips.h static void FlushOnePage(v8::internal::HashMap* i_cache, intptr_t start, v8 332 src/mips/simulator-mips.h static CachePage* GetCachePage(v8::internal::HashMap* i_cache, void* page); v8 377 src/mips/simulator-mips.h v8::internal::HashMap* i_cache_; v8 379 src/mips/simulator-mips.h v8::internal::Isolate* isolate_; v8 420 src/mips/simulator-mips.h class SimulatorStack : public v8::internal::AllStatic { v8 728 src/mips/stub-cache-mips.cc Address function_address = v8::ToCData<Address>(api_call_info->callback()); v8 1290 src/mips/stub-cache-mips.cc Address getter_address = v8::ToCData<Address>(callback->getter()); v8 34 src/misc-intrinsics.h namespace v8 { v8 44 src/mksnapshot.cc using namespace v8; v8 308 src/mksnapshot.cc Persistent<Context> context = v8::Context::New(); v8 379 src/mksnapshot.cc i::Object* raw_context = *(v8::Utils::OpenHandle(*context)); v8 31 src/natives.h namespace v8 { v8 52 src/objects-inl.h namespace v8 { v8 5254 src/objects-inl.h typedef v8::String::ExternalAsciiStringResource Resource; v8 5262 src/objects-inl.h typedef v8::String::ExternalAsciiStringResource Resource; v8 5269 src/objects-inl.h typedef v8::String::ExternalStringResource Resource; v8 5277 src/objects-inl.h typedef v8::String::ExternalStringResource Resource; v8 32 src/objects-visiting-inl.h namespace v8 { v8 42 src/objects-visiting.h namespace v8 { v8 192 src/objects.cc v8::AccessorGetter call_fun = v8::ToCData<v8::AccessorGetter>(fun_obj); v8 198 src/objects.cc v8::AccessorInfo info(args.end()); v8 199 src/objects.cc v8::Handle<v8::Value> result; v8 203 src/objects.cc result = call_fun(v8::Utils::ToLocal(key), info); v8 209 src/objects.cc return *v8::Utils::OpenHandle(*result); v8 360 src/objects.cc heap->isolate()->ReportFailedAccessCheck(this, v8::ACCESS_GET); v8 423 src/objects.cc GetIsolate()->ReportFailedAccessCheck(this, v8::ACCESS_HAS); v8 600 src/objects.cc if (!heap->isolate()->MayNamedAccess(checked, name, v8::ACCESS_GET)) { v8 688 src/objects.cc if (!isolate->MayIndexedAccess(js_object, index, v8::ACCESS_GET)) { v8 689 src/objects.cc isolate->ReportFailedAccessCheck(js_object, v8::ACCESS_GET); v8 1825 src/objects.cc v8::AccessorInfo info(args.end()); v8 1826 src/objects.cc v8::NamedPropertySetter setter = v8 1827 src/objects.cc v8::ToCData<v8::NamedPropertySetter>(interceptor->setter()); v8 1828 src/objects.cc v8::Handle<v8::Value> result; v8 1836 src/objects.cc result = setter(v8::Utils::ToLocal(name_handle), v8 1837 src/objects.cc v8::Utils::ToLocal(value_unhole), v8 1919 src/objects.cc v8::AccessorSetter call_fun = v8::ToCData<v8::AccessorSetter>(call_obj); v8 1924 src/objects.cc v8::AccessorInfo info(args.end()); v8 1928 src/objects.cc call_fun(v8::Utils::ToLocal(key), v8 1929 src/objects.cc v8::Utils::ToLocal(value_handle), v8 2383 src/objects.cc isolate->ReportFailedAccessCheck(this, v8::ACCESS_SET); v8 2476 src/objects.cc v8::internal::GetProperty(desc, configurable_name)); v8 2492 src/objects.cc Handle<Object> hasWritable(v8::internal::GetProperty(desc, hasWritable_name)); v8 2498 src/objects.cc Handle<Object> writable(v8::internal::GetProperty(desc, writable_name)); v8 2512 src/objects.cc Handle<Object> setter(v8::internal::GetProperty(desc, set_name)); v8 2589 src/objects.cc Handle<Object> enumerable(v8::internal::GetProperty(desc, enum_n)); v8 2592 src/objects.cc Handle<Object> configurable(v8::internal::GetProperty(desc, conf_n)); v8 2595 src/objects.cc Handle<Object> writable(v8::internal::GetProperty(desc, writ_n)); v8 2659 src/objects.cc Handle<Object> trap(v8::internal::GetProperty(handler, trap_name)); v8 2703 src/objects.cc if (!heap->isolate()->MayNamedAccess(this, name_raw, v8::ACCESS_SET)) { v8 2850 src/objects.cc if (!isolate->MayNamedAccess(this, name, v8::ACCESS_SET)) { v8 2966 src/objects.cc v8::AccessorInfo info(args.end()); v8 2968 src/objects.cc v8::NamedPropertyQuery query = v8 2969 src/objects.cc v8::ToCData<v8::NamedPropertyQuery>(interceptor->query()); v8 2972 src/objects.cc v8::Handle<v8::Integer> result; v8 2976 src/objects.cc result = query(v8::Utils::ToLocal(name_handle), info); v8 2983 src/objects.cc v8::NamedPropertyGetter getter = v8 2984 src/objects.cc v8::ToCData<v8::NamedPropertyGetter>(interceptor->getter()); v8 2987 src/objects.cc v8::Handle<v8::Value> result; v8 2991 src/objects.cc result = getter(v8::Utils::ToLocal(name_handle), info); v8 3024 src/objects.cc if (!heap->isolate()->MayNamedAccess(this_obj, name, v8::ACCESS_HAS)) { v8 3634 src/objects.cc v8::NamedPropertyDeleter deleter = v8 3635 src/objects.cc v8::ToCData<v8::NamedPropertyDeleter>(interceptor->deleter()); v8 3639 src/objects.cc v8::AccessorInfo info(args.end()); v8 3640 src/objects.cc v8::Handle<v8::Boolean> result; v8 3644 src/objects.cc result = deleter(v8::Utils::ToLocal(name_handle), info); v8 3649 src/objects.cc return *v8::Utils::OpenHandle(*result); v8 3668 src/objects.cc v8::IndexedPropertyDeleter deleter = v8 3669 src/objects.cc v8::ToCData<v8::IndexedPropertyDeleter>(interceptor->deleter()); v8 3674 src/objects.cc v8::AccessorInfo info(args.end()); v8 3675 src/objects.cc v8::Handle<v8::Boolean> result; v8 3684 src/objects.cc return *v8::Utils::OpenHandle(*result); v8 3707 src/objects.cc !isolate->MayIndexedAccess(this, index, v8::ACCESS_DELETE)) { v8 3708 src/objects.cc isolate->ReportFailedAccessCheck(this, v8::ACCESS_DELETE); v8 3746 src/objects.cc !isolate->MayNamedAccess(this, name, v8::ACCESS_DELETE)) { v8 3747 src/objects.cc isolate->ReportFailedAccessCheck(this, v8::ACCESS_DELETE); v8 3953 src/objects.cc v8::ACCESS_KEYS)) { v8 3954 src/objects.cc isolate->ReportFailedAccessCheck(this, v8::ACCESS_KEYS); v8 4289 src/objects.cc GetIsolate()->MayNamedAccess(this, name, v8::ACCESS_SET)); v8 4396 src/objects.cc !isolate->MayNamedAccess(this, name, v8::ACCESS_SET)) { v8 4397 src/objects.cc isolate->ReportFailedAccessCheck(this, v8::ACCESS_SET); v8 4521 src/objects.cc !isolate->MayNamedAccess(this, name, v8::ACCESS_SET)) { v8 4522 src/objects.cc isolate->ReportFailedAccessCheck(this, v8::ACCESS_SET); v8 4607 src/objects.cc !heap->isolate()->MayNamedAccess(this, name, v8::ACCESS_HAS)) { v8 4608 src/objects.cc heap->isolate()->ReportFailedAccessCheck(this, v8::ACCESS_HAS); v8 8800 src/objects.cc v8::AccessorInfo info(args.end()); v8 8802 src/objects.cc v8::IndexedPropertyQuery query = v8 8803 src/objects.cc v8::ToCData<v8::IndexedPropertyQuery>(interceptor->query()); v8 8806 src/objects.cc v8::Handle<v8::Integer> result; v8 8817 src/objects.cc v8::IndexedPropertyGetter getter = v8 8818 src/objects.cc v8::ToCData<v8::IndexedPropertyGetter>(interceptor->getter()); v8 8821 src/objects.cc v8::Handle<v8::Value> result; v8 8851 src/objects.cc if (!heap->isolate()->MayIndexedAccess(this, index, v8::ACCESS_HAS)) { v8 8852 src/objects.cc heap->isolate()->ReportFailedAccessCheck(this, v8::ACCESS_HAS); v8 8960 src/objects.cc if (!heap->isolate()->MayIndexedAccess(this, index, v8::ACCESS_HAS)) { v8 8961 src/objects.cc heap->isolate()->ReportFailedAccessCheck(this, v8::ACCESS_HAS); v8 9005 src/objects.cc v8::IndexedPropertySetter setter = v8 9006 src/objects.cc v8::ToCData<v8::IndexedPropertySetter>(interceptor->setter()); v8 9010 src/objects.cc v8::AccessorInfo info(args.end()); v8 9011 src/objects.cc v8::Handle<v8::Value> result; v8 9015 src/objects.cc result = setter(index, v8::Utils::ToLocal(value_handle), info); v8 9043 src/objects.cc v8::AccessorGetter call_fun = v8::ToCData<v8::AccessorGetter>(fun_obj); v8 9051 src/objects.cc v8::AccessorInfo info(args.end()); v8 9052 src/objects.cc v8::Handle<v8::Value> result; v8 9056 src/objects.cc result = call_fun(v8::Utils::ToLocal(key), info); v8 9060 src/objects.cc return *v8::Utils::OpenHandle(*result); v8 9103 src/objects.cc v8::AccessorSetter call_fun = v8::ToCData<v8::AccessorSetter>(call_obj); v8 9109 src/objects.cc v8::AccessorInfo info(args.end()); v8 9113 src/objects.cc call_fun(v8::Utils::ToLocal(key), v8 9114 src/objects.cc v8::Utils::ToLocal(value_handle), v8 9591 src/objects.cc if (!heap->isolate()->MayIndexedAccess(this, index, v8::ACCESS_SET)) { v8 9594 src/objects.cc heap->isolate()->ReportFailedAccessCheck(this, v8::ACCESS_SET); v8 9864 src/objects.cc v8::IndexedPropertyGetter getter = v8 9865 src/objects.cc v8::ToCData<v8::IndexedPropertyGetter>(interceptor->getter()); v8 9869 src/objects.cc v8::AccessorInfo info(args.end()); v8 9870 src/objects.cc v8::Handle<v8::Value> result; v8 9877 src/objects.cc if (!result.IsEmpty()) return *v8::Utils::OpenHandle(*result); v8 10164 src/objects.cc v8::NamedPropertyGetter getter = v8 10165 src/objects.cc v8::ToCData<v8::NamedPropertyGetter>(interceptor->getter()); v8 10169 src/objects.cc v8::AccessorInfo info(args.end()); v8 10170 src/objects.cc v8::Handle<v8::Value> result; v8 10174 src/objects.cc result = getter(v8::Utils::ToLocal(name_handle), info); v8 10179 src/objects.cc return *v8::Utils::OpenHandle(*result); v8 10196 src/objects.cc if (!isolate->MayNamedAccess(this, key, v8::ACCESS_HAS)) { v8 10197 src/objects.cc isolate->ReportFailedAccessCheck(this, v8::ACCESS_HAS); v8 10212 src/objects.cc if (!heap->isolate()->MayIndexedAccess(this, index, v8::ACCESS_HAS)) { v8 10213 src/objects.cc heap->isolate()->ReportFailedAccessCheck(this, v8::ACCESS_HAS); v8 10276 src/objects.cc if (!isolate->MayNamedAccess(this, key, v8::ACCESS_HAS)) { v8 10277 src/objects.cc isolate->ReportFailedAccessCheck(this, v8::ACCESS_HAS); v8 133 src/objects.h namespace v8 { v8 7204 src/objects.h bool MakeExternal(v8::String::ExternalStringResource* resource); v8 7205 src/objects.h bool MakeExternal(v8::String::ExternalAsciiStringResource* resource); v8 7672 src/objects.h typedef v8::String::ExternalAsciiStringResource Resource; v8 7717 src/objects.h typedef v8::String::ExternalStringResource Resource; v8 8831 src/objects.h v8::String::ExternalAsciiStringResource** resource) {} v8 8833 src/objects.h v8::String::ExternalStringResource** resource) {} v8 80 src/once.h namespace v8 { v8 87 src/once.h #define V8_DECLARE_ONCE(NAME) ::v8::internal::OnceType NAME v8 1934 src/parser.cc v8::Handle<v8::FunctionTemplate> fun_template = v8 1935 src/parser.cc extension_->GetNativeFunction(v8::Utils::ToLocal(name)); v8 38 src/parser.h namespace v8 { v8 176 src/parser.h v8::Extension* extension, v8 433 src/parser.h v8::Extension* extension, v8 820 src/parser.h v8::Extension* extension_; v8 673 src/platform-freebsd.cc if (v8::Locker::IsActive() && v8 1002 src/platform-linux.cc if (v8::Locker::IsActive() && v8 729 src/platform-openbsd.cc if (v8::Locker::IsActive() && v8 31 src/platform-posix.h namespace v8 { v8 664 src/platform-solaris.cc if (v8::Locker::IsActive() && v8 33 src/platform-tls-mac.h namespace v8 { v8 35 src/platform-tls-win32.h namespace v8 { v8 87 src/platform.h namespace v8 { v8 31 src/preparse-data-format.h namespace v8 { v8 35 src/preparse-data.h namespace v8 { v8 156 src/preparser-api.cc v8::UnicodeInputStream* const stream_; v8 35 src/preparser.h namespace v8 { v8 58 src/preparser.h namespace i = v8::internal; v8 34 src/prettyprinter.h namespace v8 { v8 33 src/profile-generator-inl.h namespace v8 { v8 194 src/profile-generator.cc uint32_t hash = ComputeIntegerHash(tag_, v8::internal::kZeroHashSeed); v8 197 src/profile-generator.cc v8::internal::kZeroHashSeed); v8 201 src/profile-generator.cc v8::internal::kZeroHashSeed); v8 204 src/profile-generator.cc v8::internal::kZeroHashSeed); v8 207 src/profile-generator.cc v8::internal::kZeroHashSeed); v8 208 src/profile-generator.cc hash ^= ComputeIntegerHash(line_number_, v8::internal::kZeroHashSeed); v8 803 src/profile-generator.cc v8::CpuProfileNode::kNoLineNumberInfo, v8 817 src/profile-generator.cc v8::CpuProfileNode::kNoLineNumberInfo, v8 830 src/profile-generator.cc v8::CpuProfileNode::kNoLineNumberInfo, v8 1380 src/profile-generator.cc List<v8::HeapStatsUpdate> stats_buffer; v8 1399 src/profile-generator.cc stats_buffer.Add(v8::HeapStatsUpdate( v8 1460 src/profile-generator.cc v8::internal::kZeroHashSeed); v8 2758 src/profile-generator.cc v8::RetainedObjectInfo* info = reinterpret_cast<v8::RetainedObjectInfo*>(ptr); v8 2793 src/profile-generator.cc v8::RetainedObjectInfo* info = v8 2794 src/profile-generator.cc reinterpret_cast<v8::RetainedObjectInfo*>(p->key); v8 2803 src/profile-generator.cc v8::RetainedObjectInfo* info = v8 2804 src/profile-generator.cc reinterpret_cast<v8::RetainedObjectInfo*>(p->value); v8 2889 src/profile-generator.cc v8::RetainedObjectInfo* info = v8 2890 src/profile-generator.cc reinterpret_cast<v8::RetainedObjectInfo*>(p->key); v8 2905 src/profile-generator.cc class NativeGroupRetainedObjectInfo : public v8::RetainedObjectInfo { v8 3000 src/profile-generator.cc v8::RetainedObjectInfo* info = v8 3133 src/profile-generator.cc v8::ActivityControl::kContinue; v8 3241 src/profile-generator.cc v8::OutputStream::kAbort) aborted_ = true; v8 3245 src/profile-generator.cc v8::OutputStream* stream_; v8 35 src/profile-generator.h namespace v8 { v8 48 src/profile-generator.h static void TokenRemovedCallback(v8::Persistent<v8::Value> handle, v8 656 src/profile-generator.h static SnapshotObjectId GenerateId(v8::RetainedObjectInfo* info); v8 694 src/profile-generator.h v8::internal::kZeroHashSeed); v8 785 src/profile-generator.h v8::internal::kZeroHashSeed); v8 981 src/profile-generator.h List<HeapObject*>* GetListMaybeDisposeInfo(v8::RetainedObjectInfo* info); v8 982 src/profile-generator.h void SetNativeRootReference(v8::RetainedObjectInfo* info); v8 985 src/profile-generator.h v8::RetainedObjectInfo* info); v8 988 src/profile-generator.h static uint32_t InfoHash(v8::RetainedObjectInfo* info) { v8 990 src/profile-generator.h v8::internal::kZeroHashSeed); v8 994 src/profile-generator.h (reinterpret_cast<v8::RetainedObjectInfo*>(key1))->IsEquivalent( v8 995 src/profile-generator.h reinterpret_cast<v8::RetainedObjectInfo*>(key2)); v8 1028 src/profile-generator.h v8::ActivityControl* control); v8 1038 src/profile-generator.h v8::ActivityControl* control_; v8 1061 src/profile-generator.h void Serialize(v8::OutputStream* stream); v8 1071 src/profile-generator.h v8::internal::kZeroHashSeed); v8 48 src/property-details.h namespace v8 { v8 34 src/property.h namespace v8 { v8 38 src/regexp-macro-assembler-irregexp-inl.h namespace v8 { v8 31 src/regexp-macro-assembler-irregexp.h namespace v8 { v8 31 src/regexp-macro-assembler-tracer.h namespace v8 { v8 33 src/regexp-macro-assembler.h namespace v8 { v8 31 src/regexp-stack.h namespace v8 { v8 31 src/rewriter.h namespace v8 { v8 34 src/runtime-profiler.h namespace v8 { v8 924 src/runtime.cc v8::ACCESS_GET)) { v8 925 src/runtime.cc isolate->ReportFailedAccessCheck(JSObject::cast(obj), v8::ACCESS_GET); v8 973 src/runtime.cc (access_type == v8::ACCESS_HAS && v8 975 src/runtime.cc (access_type == v8::ACCESS_GET && info->all_can_read()) || v8 976 src/runtime.cc (access_type == v8::ACCESS_SET && info->all_can_write()); v8 1131 src/runtime.cc if (CheckElementAccess(*obj, index, v8::ACCESS_GET)) { v8 1134 src/runtime.cc if (CheckElementAccess(*obj, index, v8::ACCESS_SET)) { v8 1166 src/runtime.cc if (!CheckAccess(*obj, *name, &result, v8::ACCESS_HAS)) { v8 1182 src/runtime.cc if (!getter->IsMap() && CheckAccess(*obj, *name, &result, v8::ACCESS_GET)) { v8 1186 src/runtime.cc if (!setter->IsMap() && CheckAccess(*obj, *name, &result, v8::ACCESS_SET)) { v8 5147 src/runtime.cc v8::ACCESS_KEYS)) { v8 5148 src/runtime.cc isolate->ReportFailedAccessCheck(*obj, v8::ACCESS_KEYS); v8 5166 src/runtime.cc v8::ACCESS_KEYS)) { v8 5167 src/runtime.cc isolate->ReportFailedAccessCheck(*jsproto, v8::ACCESS_KEYS); v8 5260 src/runtime.cc v8::Handle<v8::Array> result = GetKeysForNamedInterceptor(obj, obj); v8 5261 src/runtime.cc if (!result.IsEmpty()) return *v8::Utils::OpenHandle(*result); v8 5275 src/runtime.cc v8::Handle<v8::Array> result = GetKeysForIndexedInterceptor(obj, obj); v8 5276 src/runtime.cc if (!result.IsEmpty()) return *v8::Utils::OpenHandle(*result); v8 5292 src/runtime.cc v8::ACCESS_KEYS)) { v8 5293 src/runtime.cc isolate->ReportFailedAccessCheck(*object, v8::ACCESS_KEYS); v8 9396 src/runtime.cc return callback(v8::Utils::ToLocal(context)); v8 13202 src/runtime.cc v8::V8::ResumeProfiler(); v8 13209 src/runtime.cc v8::V8::PauseProfiler(); v8 13376 src/runtime.cc const char* version_string = v8::V8::GetVersion(); v8 34 src/runtime.h namespace v8 { v8 36 src/safepoint-table.h namespace v8 { v8 33 src/scanner-character-streams.h namespace v8 { v8 41 src/scanner.h namespace v8 { v8 35 src/scopeinfo.h namespace v8 { v8 34 src/scopes.h namespace v8 { v8 1571 src/serialize.cc typedef v8::String::ExternalAsciiStringResource Resource; v8 33 src/serialize.h namespace v8 { v8 518 src/serialize.h v8::String::ExternalAsciiStringResource** resource); v8 521 src/serialize.h v8::String::ExternalStringResource** resource) { v8 35 src/small-pointer-list.h namespace v8 { v8 31 src/smart-array-pointer.h namespace v8 { v8 33 src/snapshot.h namespace v8 { v8 35 src/spaces-inl.h namespace v8 { v8 36 src/spaces.h namespace v8 { v8 33 src/splay-tree-inl.h namespace v8 { v8 33 src/splay-tree.h namespace v8 { v8 33 src/store-buffer-inl.h namespace v8 { v8 37 src/store-buffer.h namespace v8 { v8 31 src/string-search.h namespace v8 { v8 31 src/string-stream.h namespace v8 { v8 31 src/strtod.h namespace v8 { v8 159 src/stub-cache.cc ASSERT(v8::ToCData<Address>(callback->getter()) != 0); v8 509 src/stub-cache.cc ASSERT(v8::ToCData<Address>(callback->setter()) != 0); v8 991 src/stub-cache.cc Address getter_address = v8::ToCData<Address>(callback->getter()); v8 992 src/stub-cache.cc v8::AccessorGetter fun = FUNCTION_CAST<v8::AccessorGetter>(getter_address); v8 995 src/stub-cache.cc v8::AccessorInfo info(&args[0]); v8 997 src/stub-cache.cc v8::Handle<v8::Value> result; v8 1002 src/stub-cache.cc result = fun(v8::Utils::ToLocal(args.at<String>(5)), info); v8 1006 src/stub-cache.cc return *v8::Utils::OpenHandle(*result); v8 1013 src/stub-cache.cc Address setter_address = v8::ToCData<Address>(callback->setter()); v8 1014 src/stub-cache.cc v8::AccessorSetter fun = FUNCTION_CAST<v8::AccessorSetter>(setter_address); v8 1022 src/stub-cache.cc v8::AccessorInfo info(custom_args.end()); v8 1027 src/stub-cache.cc fun(v8::Utils::ToLocal(name), v8::Utils::ToLocal(value), info); v8 1053 src/stub-cache.cc Address getter_address = v8::ToCData<Address>(interceptor_info->getter()); v8 1054 src/stub-cache.cc v8::NamedPropertyGetter getter = v8 1055 src/stub-cache.cc FUNCTION_CAST<v8::NamedPropertyGetter>(getter_address); v8 1060 src/stub-cache.cc v8::AccessorInfo info(args.arguments() - v8 1063 src/stub-cache.cc v8::Handle<v8::Value> r; v8 1067 src/stub-cache.cc r = getter(v8::Utils::ToLocal(name_handle), info); v8 1071 src/stub-cache.cc return *v8::Utils::OpenHandle(*r); v8 1108 src/stub-cache.cc Address getter_address = v8::ToCData<Address>(interceptor_info->getter()); v8 1109 src/stub-cache.cc v8::NamedPropertyGetter getter = v8 1110 src/stub-cache.cc FUNCTION_CAST<v8::NamedPropertyGetter>(getter_address); v8 1115 src/stub-cache.cc v8::AccessorInfo info(args->arguments() - v8 1118 src/stub-cache.cc v8::Handle<v8::Value> r; v8 1122 src/stub-cache.cc r = getter(v8::Utils::ToLocal(name_handle), info); v8 1127 src/stub-cache.cc return *v8::Utils::OpenHandle(*r); v8 38 src/stub-cache.h namespace v8 { v8 33 src/token.h namespace v8 { v8 34 src/transitions-inl.h namespace v8 { v8 37 src/transitions.h namespace v8 { v8 36 src/type-info.h namespace v8 { v8 33 src/unbound-queue-inl.h namespace v8 { v8 33 src/unbound-queue.h namespace v8 { v8 33 src/utils-inl.h namespace v8 { v8 39 src/utils.h namespace v8 { v8 313 src/utils.h v8::internal::kZeroHashSeed); v8 36 src/v8-counters.h namespace v8 { v8 70 src/v8.h namespace v8 { v8 150 src/v8.h namespace i = v8::internal; v8 35 src/v8checks.h namespace v8 { v8 33 src/v8conversions.h namespace v8 { v8 34 src/v8globals.h namespace v8 { v8 31 src/v8memory.h namespace v8 { v8 143 src/v8threads.cc v8::internal::ContextSwitcher::StartPreemption(every_n_ms); v8 148 src/v8threads.cc v8::internal::ContextSwitcher::StopPreemption(); v8 439 src/v8threads.cc ASSERT(Locker::IsLocked(reinterpret_cast<v8::Isolate*>(isolate))); v8 456 src/v8threads.cc ASSERT(Locker::IsLocked(reinterpret_cast<v8::Isolate*>(isolate))); v8 31 src/v8threads.h namespace v8 { v8 34 src/v8utils.h namespace v8 { v8 117 src/v8utils.h inline Vector< Handle<Object> > HandleVector(v8::internal::Handle<T>* elms, v8 120 src/v8utils.h reinterpret_cast<v8::internal::Handle<Object>*>(elms), length); v8 181 src/v8utils.h class AsciiStringAdapter: public v8::String::ExternalAsciiStringResource { v8 238 src/v8utils.h v8::String::ExternalAsciiStringResource { v8 34 src/variables.h namespace v8 { v8 31 src/version.h namespace v8 { v8 34 src/vm-state-inl.h namespace v8 { v8 34 src/vm-state.h namespace v8 { v8 48 src/win32-math.h namespace v8 { v8 37 src/x64/assembler-x64-inl.h namespace v8 { v8 42 src/x64/assembler-x64.h namespace v8 { v8 34 src/x64/code-stubs-x64.h namespace v8 { v8 34 src/x64/codegen-x64.h namespace v8 { v8 273 src/x64/disasm-x64.cc static v8::internal::LazyInstance<InstructionTable>::type instruction_table = v8 339 src/x64/disasm-x64.cc v8::internal::EmbeddedVector<char, 128> tmp_buffer_; v8 450 src/x64/disasm-x64.cc v8::internal::Vector<char> buf = tmp_buffer_ + tmp_buffer_pos_; v8 453 src/x64/disasm-x64.cc int result = v8::internal::OS::VSNPrintF(buf, format, args); v8 1743 src/x64/disasm-x64.cc outp += v8::internal::OS::SNPrintF(out_buffer + outp, "%02x", *bp); v8 1746 src/x64/disasm-x64.cc outp += v8::internal::OS::SNPrintF(out_buffer + outp, " "); v8 1749 src/x64/disasm-x64.cc outp += v8::internal::OS::SNPrintF(out_buffer + outp, " %s", v8 1776 src/x64/disasm-x64.cc v8::internal::OS::SNPrintF(tmp_buffer_, "%p", addr); v8 1838 src/x64/disasm-x64.cc v8::internal::EmbeddedVector<char, 128> buffer; v8 31 src/x64/frames-x64.h namespace v8 { v8 39 src/x64/lithium-codegen-x64.h namespace v8 { v8 35 src/x64/lithium-gap-resolver-x64.h namespace v8 { v8 37 src/x64/lithium-x64.h namespace v8 { v8 35 src/x64/macro-assembler-x64.h namespace v8 { v8 37 src/x64/regexp-macro-assembler-x64.h namespace v8 { v8 33 src/x64/simulator-x64.h namespace v8 { v8 56 src/x64/simulator-x64.h class SimulatorStack : public v8::internal::AllStatic { v8 510 src/x64/stub-cache-x64.cc Address function_address = v8::ToCData<Address>(api_call_info->callback()); v8 1098 src/x64/stub-cache-x64.cc Address getter_address = v8::ToCData<Address>(callback->getter()); v8 38 src/zone-inl.h namespace v8 { v8 38 src/zone.h namespace v8 { v8 45 test/cctest/cctest.cc basename = v8::internal::StrDup(file); v8 47 test/cctest/cctest.cc basename = v8::internal::StrDup(basename + 1); v8 73 test/cctest/cctest.cc v8::internal::FlagList::SetFlagsFromCommandLine(&argc, argv, true); v8 83 test/cctest/cctest.cc char* arg_copy = v8::internal::StrDup(arg); v8 116 test/cctest/cctest.cc v8::internal::DeleteArray<char>(arg_copy); v8 121 test/cctest/cctest.cc v8::V8::Dispose(); v8 87 test/cctest/cctest.h class ApiTestFuzzer: public v8::internal::Thread { v8 93 test/cctest/cctest.h gate_(v8::internal::OS::CreateSemaphore(0)), v8 121 test/cctest/cctest.h v8::internal::Semaphore* gate_; v8 125 test/cctest/cctest.h static v8::internal::Semaphore* all_tests_done_; v8 170 test/cctest/cctest.h LocalContext(v8::ExtensionConfiguration* extensions = 0, v8 171 test/cctest/cctest.h v8::Handle<v8::ObjectTemplate> global_template = v8 172 test/cctest/cctest.h v8::Handle<v8::ObjectTemplate>(), v8 173 test/cctest/cctest.h v8::Handle<v8::Value> global_object = v8::Handle<v8::Value>()) v8 174 test/cctest/cctest.h : context_(v8::Context::New(extensions, global_template, global_object)) { v8 183 test/cctest/cctest.h v8::Context* operator->() { return *context_; } v8 184 test/cctest/cctest.h v8::Context* operator*() { return *context_; } v8 187 test/cctest/cctest.h v8::Local<v8::Context> local() { v8 188 test/cctest/cctest.h return v8::Local<v8::Context>::New(context_); v8 192 test/cctest/cctest.h v8::Persistent<v8::Context> context_; v8 196 test/cctest/cctest.h static inline v8::Local<v8::Value> v8_num(double x) { v8 197 test/cctest/cctest.h return v8::Number::New(x); v8 201 test/cctest/cctest.h static inline v8::Local<v8::String> v8_str(const char* x) { v8 202 test/cctest/cctest.h return v8::String::New(x); v8 206 test/cctest/cctest.h static inline v8::Local<v8::Script> v8_compile(const char* x) { v8 207 test/cctest/cctest.h return v8::Script::Compile(v8_str(x)); v8 212 test/cctest/cctest.h static inline v8::Local<v8::Value> CompileRun(const char* source) { v8 213 test/cctest/cctest.h return v8::Script::Compile(v8::String::New(source))->Run(); v8 31 test/cctest/gay-fixed.h namespace v8 { v8 31 test/cctest/gay-precision.h namespace v8 { v8 31 test/cctest/gay-shortest.h namespace v8 { v8 47 test/cctest/test-accessors.cc static v8::Handle<Value> handle_property(Local<String> name, v8 55 test/cctest/test-accessors.cc v8::HandleScope scope; v8 56 test/cctest/test-accessors.cc Local<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(); v8 68 test/cctest/test-accessors.cc static v8::Handle<Value> GetIntValue(Local<String> property, v8 72 test/cctest/test-accessors.cc static_cast<int*>(v8::Handle<v8::External>::Cast(info.Data())->Value()); v8 81 test/cctest/test-accessors.cc static_cast<int*>(v8::Handle<v8::External>::Cast(info.Data())->Value()); v8 91 test/cctest/test-accessors.cc v8::HandleScope scope; v8 92 test/cctest/test-accessors.cc v8::Handle<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(); v8 96 test/cctest/test-accessors.cc v8::External::New(&foo)); v8 100 test/cctest/test-accessors.cc v8::External::New(&bar)); v8 104 test/cctest/test-accessors.cc v8::External::New(&baz)); v8 113 test/cctest/test-accessors.cc static v8::Handle<v8::Object> x_receiver; v8 114 test/cctest/test-accessors.cc static v8::Handle<v8::Object> x_holder; v8 117 test/cctest/test-accessors.cc static v8::Handle<Value> XGetter(Local<String> name, const AccessorInfo& info) { v8 119 test/cctest/test-accessors.cc v8::Isolate* isolate = v8::Isolate::GetCurrent(); v8 130 test/cctest/test-accessors.cc v8::Isolate* isolate = v8::Isolate::GetCurrent(); v8 139 test/cctest/test-accessors.cc v8::HandleScope scope; v8 140 test/cctest/test-accessors.cc v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); v8 145 test/cctest/test-accessors.cc x_receiver = v8::Object::New(); v8 147 test/cctest/test-accessors.cc v8::Handle<v8::Array> array = v8::Handle<v8::Array>::Cast(CompileRun( v8 157 test/cctest/test-accessors.cc v8::Handle<Value> entry = array->Get(v8::Integer::New(i)); v8 158 test/cctest/test-accessors.cc CHECK_EQ(v8::Integer::New(i), entry); v8 163 test/cctest/test-accessors.cc static v8::Handle<Value> AccessorProhibitsOverwritingGetter( v8 167 test/cctest/test-accessors.cc return v8::True(); v8 172 test/cctest/test-accessors.cc v8::HandleScope scope; v8 178 test/cctest/test-accessors.cc v8::Handle<Value>(), v8 179 test/cctest/test-accessors.cc v8::PROHIBITS_OVERWRITING, v8 180 test/cctest/test-accessors.cc v8::ReadOnly); v8 181 test/cctest/test-accessors.cc Local<v8::Object> instance = templ->NewInstance(); v8 211 test/cctest/test-accessors.cc static v8::Handle<Value> HandleAllocatingGetter(Local<String> name, v8 215 test/cctest/test-accessors.cc v8::String::New("foo"); v8 216 test/cctest/test-accessors.cc return v8::String::New("foo"); v8 221 test/cctest/test-accessors.cc v8::HandleScope scope; v8 222 test/cctest/test-accessors.cc v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); v8 226 test/cctest/test-accessors.cc v8::Handle<v8::Object> inst = obj->NewInstance(); v8 227 test/cctest/test-accessors.cc context->Global()->Set(v8::String::New("obj"), inst); v8 230 test/cctest/test-accessors.cc v8::HandleScope scope; v8 241 test/cctest/test-accessors.cc static v8::Handle<Value> CheckAccessorArgsCorrect(Local<String> name, v8 243 test/cctest/test-accessors.cc CHECK(info.GetIsolate() == v8::Isolate::GetCurrent()); v8 245 test/cctest/test-accessors.cc CHECK(info.Data()->Equals(v8::String::New("data"))); v8 247 test/cctest/test-accessors.cc CHECK(info.GetIsolate() == v8::Isolate::GetCurrent()); v8 249 test/cctest/test-accessors.cc CHECK(info.Data()->Equals(v8::String::New("data"))); v8 251 test/cctest/test-accessors.cc CHECK(info.GetIsolate() == v8::Isolate::GetCurrent()); v8 253 test/cctest/test-accessors.cc CHECK(info.Data()->Equals(v8::String::New("data"))); v8 254 test/cctest/test-accessors.cc return v8::Integer::New(17); v8 258 test/cctest/test-accessors.cc v8::HandleScope scope; v8 259 test/cctest/test-accessors.cc v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); v8 263 test/cctest/test-accessors.cc v8::String::New("data")); v8 265 test/cctest/test-accessors.cc v8::Handle<v8::Object> inst = obj->NewInstance(); v8 266 test/cctest/test-accessors.cc context->Global()->Set(v8::String::New("obj"), inst); v8 267 test/cctest/test-accessors.cc Local<Script> scr = v8::Script::Compile(v8::String::New("obj.xxx")); v8 275 test/cctest/test-accessors.cc static v8::Handle<Value> EmptyGetter(Local<String> name, v8 280 test/cctest/test-accessors.cc return v8::Handle<v8::Value>(); v8 284 test/cctest/test-accessors.cc v8::HandleScope scope; v8 285 test/cctest/test-accessors.cc v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); v8 286 test/cctest/test-accessors.cc obj->SetAccessor(v8_str("xxx"), EmptyGetter, NULL, v8::String::New("data")); v8 288 test/cctest/test-accessors.cc v8::Handle<v8::Object> inst = obj->NewInstance(); v8 289 test/cctest/test-accessors.cc context->Global()->Set(v8::String::New("obj"), inst); v8 290 test/cctest/test-accessors.cc Local<Script> scr = v8::Script::Compile(v8::String::New("obj.xxx")); v8 293 test/cctest/test-accessors.cc CHECK(result == v8::Undefined()); v8 301 test/cctest/test-accessors.cc v8::HandleScope scope; v8 303 test/cctest/test-accessors.cc v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); v8 304 test/cctest/test-accessors.cc obj->SetAccessor(v8_str("xxx"), EmptyGetter, NULL, v8::String::New("data")); v8 306 test/cctest/test-accessors.cc v8::Handle<v8::Object> inst = obj->NewInstance(); v8 307 test/cctest/test-accessors.cc context->Global()->Set(v8::String::New("obj"), inst); v8 308 test/cctest/test-accessors.cc Local<Script> scr = v8::Script::Compile(v8::String::New("obj.xxx")); v8 311 test/cctest/test-accessors.cc CHECK(result == v8::Undefined()); v8 315 test/cctest/test-accessors.cc v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); v8 319 test/cctest/test-accessors.cc v8::String::New("data")); v8 321 test/cctest/test-accessors.cc v8::Handle<v8::Object> inst = obj->NewInstance(); v8 322 test/cctest/test-accessors.cc context->Global()->Set(v8::String::New("obj"), inst); v8 323 test/cctest/test-accessors.cc Local<Script> scr = v8::Script::Compile(v8::String::New("obj.xxx")); v8 332 test/cctest/test-accessors.cc static v8::Handle<Value> ThrowingGetAccessor(Local<String> name, v8 335 test/cctest/test-accessors.cc return v8::ThrowException(v8_str("g")); v8 342 test/cctest/test-accessors.cc v8::ThrowException(value); v8 347 test/cctest/test-accessors.cc v8::HandleScope scope; v8 348 test/cctest/test-accessors.cc v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); v8 359 test/cctest/test-accessors.cc v8::Handle<Value> result; v8 376 test/cctest/test-accessors.cc static v8::Handle<Value> AllocGetter(Local<String> name, v8 379 test/cctest/test-accessors.cc return v8::Array::New(1000); v8 384 test/cctest/test-accessors.cc v8::HandleScope scope; v8 385 test/cctest/test-accessors.cc v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); v8 399 test/cctest/test-accessors.cc static v8::Handle<Value> StackCheck(Local<String> name, v8 411 test/cctest/test-accessors.cc return v8::Undefined(); v8 416 test/cctest/test-accessors.cc v8::HandleScope scope; v8 417 test/cctest/test-accessors.cc v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); v8 432 test/cctest/test-accessors.cc static v8::Handle<Value> AllocateHandles(Local<String> name, v8 435 test/cctest/test-accessors.cc v8::Local<v8::Value>::New(name); v8 437 test/cctest/test-accessors.cc return v8::Integer::New(100); v8 444 test/cctest/test-accessors.cc v8::HandleScope scope; v8 445 test/cctest/test-accessors.cc v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); v8 449 test/cctest/test-accessors.cc v8::Handle<v8::Value> result = Script::Compile(String::New( v8 34 test/cctest/test-alloc.cc using namespace v8::internal; v8 118 test/cctest/test-alloc.cc v8::Persistent<v8::Context> env = v8::Context::New(); v8 119 test/cctest/test-alloc.cc v8::HandleScope scope; v8 140 test/cctest/test-alloc.cc v8::Persistent<v8::Context> env = v8::Context::New(); v8 141 test/cctest/test-alloc.cc v8::HandleScope scope; v8 161 test/cctest/test-alloc.cc env->Global()->Set(v8::String::New("Foo"), v8::Utils::ToLocal(function)); v8 163 test/cctest/test-alloc.cc v8::Handle<v8::Value> result = v8 164 test/cctest/test-alloc.cc v8::Script::Compile(v8::String::New("(new Foo).get"))->Run(); v8 120 test/cctest/test-api.cc static v8::Handle<Value> IncrementingSignatureCallback( v8 124 test/cctest/test-api.cc v8::Handle<v8::Array> result = v8::Array::New(args.Length()); v8 126 test/cctest/test-api.cc result->Set(v8::Integer::New(i), args[i]); v8 131 test/cctest/test-api.cc static v8::Handle<Value> SignatureCallback(const v8::Arguments& args) { v8 133 test/cctest/test-api.cc v8::Handle<v8::Array> result = v8::Array::New(args.Length()); v8 135 test/cctest/test-api.cc result->Set(v8::Integer::New(i), args[i]); v8 142 test/cctest/test-api.cc v8::HandleScope scope; v8 153 test/cctest/test-api.cc v8::Handle<v8::Primitive> undef = v8::Undefined(); v8 167 test/cctest/test-api.cc v8::HandleScope scope; v8 169 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> fun = v8::FunctionTemplate::New(); v8 170 test/cctest/test-api.cc v8::Handle<v8::Signature> sig = v8::Signature::New(fun); v8 173 test/cctest/test-api.cc v8::FunctionTemplate::New(IncrementingSignatureCallback, v8 174 test/cctest/test-api.cc v8::Handle<Value>(), v8 182 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> sub_fun = v8::FunctionTemplate::New(); v8 190 test/cctest/test-api.cc v8::TryCatch try_catch; v8 198 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> unrel_fun = v8::FunctionTemplate::New(); v8 211 test/cctest/test-api.cc v8::HandleScope scope; v8 213 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> cons = v8::FunctionTemplate::New(); v8 215 test/cctest/test-api.cc v8::Handle<v8::Signature> sig = v8 216 test/cctest/test-api.cc v8::Signature::New(v8::Handle<v8::FunctionTemplate>(), 1, &cons); v8 217 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> fun = v8 218 test/cctest/test-api.cc v8::FunctionTemplate::New(SignatureCallback, v8::Handle<Value>(), sig); v8 222 test/cctest/test-api.cc v8::Handle<Value> value1 = CompileRun("Fun1(4) == '';"); v8 225 test/cctest/test-api.cc v8::Handle<Value> value2 = CompileRun("Fun1(new Cons()) == '[object Cons]';"); v8 228 test/cctest/test-api.cc v8::Handle<Value> value3 = CompileRun("Fun1() == '';"); v8 231 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> cons1 = v8::FunctionTemplate::New(); v8 233 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> cons2 = v8::FunctionTemplate::New(); v8 235 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> cons3 = v8::FunctionTemplate::New(); v8 238 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> args[3] = { cons1, cons2, cons3 }; v8 239 test/cctest/test-api.cc v8::Handle<v8::Signature> wsig = v8 240 test/cctest/test-api.cc v8::Signature::New(v8::Handle<v8::FunctionTemplate>(), 3, args); v8 241 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> fun2 = v8 242 test/cctest/test-api.cc v8::FunctionTemplate::New(SignatureCallback, v8::Handle<Value>(), wsig); v8 248 test/cctest/test-api.cc v8::Handle<Value> value4 = CompileRun( v8 253 test/cctest/test-api.cc v8::Handle<Value> value5 = CompileRun( v8 257 test/cctest/test-api.cc v8::Handle<Value> value6 = CompileRun( v8 261 test/cctest/test-api.cc v8::Handle<Value> value7 = CompileRun( v8 266 test/cctest/test-api.cc v8::Handle<Value> value8 = CompileRun( v8 273 test/cctest/test-api.cc v8::HandleScope scope; v8 275 test/cctest/test-api.cc v8::Handle<v8::Primitive> undef = v8::Undefined(); v8 285 test/cctest/test-api.cc v8::HandleScope scope; v8 287 test/cctest/test-api.cc Local<v8::Object> obj = v8::Object::New(); v8 300 test/cctest/test-api.cc v8::HandleScope scope; v8 302 test/cctest/test-api.cc Local<v8::Object> obj = v8::Object::New(); v8 312 test/cctest/test-api.cc Local<v8::Array> value = CompileRun("[\"a\", \"b\"]").As<v8::Array>(); v8 319 test/cctest/test-api.cc v8::HandleScope scope; v8 391 test/cctest/test-api.cc v8::HandleScope scope; v8 405 test/cctest/test-api.cc v8::internal::Isolate::Current()->compilation_cache()->Clear(); v8 415 test/cctest/test-api.cc v8::HandleScope scope; v8 437 test/cctest/test-api.cc v8::HandleScope scope; v8 463 test/cctest/test-api.cc v8::HandleScope scope; v8 486 test/cctest/test-api.cc v8::HandleScope scope; v8 532 test/cctest/test-api.cc v8::HandleScope scope; v8 570 test/cctest/test-api.cc v8::HandleScope scope; v8 574 test/cctest/test-api.cc i::Handle<i::String> istring = v8::Utils::OpenHandle(*string); v8 588 test/cctest/test-api.cc v8::HandleScope scope; v8 592 test/cctest/test-api.cc i::Handle<i::String> istring = v8::Utils::OpenHandle(*string); v8 608 test/cctest/test-api.cc v8::HandleScope scope; v8 613 test/cctest/test-api.cc i::Handle<i::String> istring = v8::Utils::OpenHandle(*string); v8 628 test/cctest/test-api.cc v8::HandleScope scope; v8 632 test/cctest/test-api.cc i::Handle<i::String> istring = v8::Utils::OpenHandle(*string); v8 674 test/cctest/test-api.cc v8::HandleScope scope; v8 695 test/cctest/test-api.cc v8::HandleScope scope; v8 714 test/cctest/test-api.cc v8::HandleScope scope; v8 759 test/cctest/test-api.cc v8::HandleScope scope; v8 761 test/cctest/test-api.cc v8::Handle<v8::Object> global = env->Global(); v8 768 test/cctest/test-api.cc static v8::Handle<Value> handle_call(const v8::Arguments& args) { v8 774 test/cctest/test-api.cc static v8::Handle<Value> construct_call(const v8::Arguments& args) { v8 781 test/cctest/test-api.cc static v8::Handle<Value> Return239(Local<String> name, const AccessorInfo&) { v8 788 test/cctest/test-api.cc v8::HandleScope scope; v8 791 test/cctest/test-api.cc Local<v8::FunctionTemplate> fun_templ = v8 792 test/cctest/test-api.cc v8::FunctionTemplate::New(handle_call); v8 801 test/cctest/test-api.cc Local<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(); v8 810 test/cctest/test-api.cc Local<v8::FunctionTemplate> fun_templ = v8 811 test/cctest/test-api.cc v8::FunctionTemplate::New(construct_call); v8 829 test/cctest/test-api.cc static v8::Handle<v8::Value> callback(const v8::Arguments& args) { v8 830 test/cctest/test-api.cc void* ptr = v8::External::Unwrap(args.Data()); v8 832 test/cctest/test-api.cc return v8::True(); v8 837 test/cctest/test-api.cc v8::HandleScope scope; v8 840 test/cctest/test-api.cc v8::Handle<v8::Value> data = v8::External::Wrap(expected_ptr); v8 842 test/cctest/test-api.cc v8::Handle<v8::Object> obj = v8::Object::New(); v8 844 test/cctest/test-api.cc v8::FunctionTemplate::New(callback, data)->GetFunction()); v8 902 test/cctest/test-api.cc v8::HandleScope scope; v8 905 test/cctest/test-api.cc Local<v8::FunctionTemplate> base = v8::FunctionTemplate::New(); v8 906 test/cctest/test-api.cc Local<v8::FunctionTemplate> derived = v8::FunctionTemplate::New(); v8 907 test/cctest/test-api.cc Local<v8::FunctionTemplate> other = v8::FunctionTemplate::New(); v8 910 test/cctest/test-api.cc Local<v8::Function> base_function = base->GetFunction(); v8 911 test/cctest/test-api.cc Local<v8::Function> derived_function = derived->GetFunction(); v8 912 test/cctest/test-api.cc Local<v8::Function> other_function = other->GetFunction(); v8 914 test/cctest/test-api.cc Local<v8::Object> base_instance = base_function->NewInstance(); v8 915 test/cctest/test-api.cc Local<v8::Object> derived_instance = derived_function->NewInstance(); v8 916 test/cctest/test-api.cc Local<v8::Object> derived_instance2 = derived_function->NewInstance(); v8 917 test/cctest/test-api.cc Local<v8::Object> other_instance = other_function->NewInstance(); v8 949 test/cctest/test-api.cc v8::HandleScope scope; v8 952 test/cctest/test-api.cc Local<v8::Integer> value_obj = v8::Integer::New(value); v8 958 test/cctest/test-api.cc v8::HandleScope scope; v8 965 test/cctest/test-api.cc Local<v8::Integer> value_obj = v8::Integer::New(value); v8 972 test/cctest/test-api.cc v8::HandleScope scope; v8 982 test/cctest/test-api.cc Local<v8::Integer> value_obj = v8::Integer::New(value); v8 989 test/cctest/test-api.cc v8::HandleScope scope; v8 992 test/cctest/test-api.cc Local<v8::Integer> value_obj = v8::Integer::NewFromUnsigned(value); v8 998 test/cctest/test-api.cc v8::HandleScope scope; v8 1003 test/cctest/test-api.cc Local<v8::Integer> value_obj = v8::Integer::NewFromUnsigned(value); v8 1009 test/cctest/test-api.cc v8::HandleScope scope; v8 1014 test/cctest/test-api.cc Local<v8::Integer> value_obj = v8::Integer::NewFromUnsigned(value); v8 1020 test/cctest/test-api.cc v8::HandleScope scope; v8 1025 test/cctest/test-api.cc Local<v8::Integer> value_obj = v8::Integer::NewFromUnsigned(value); v8 1031 test/cctest/test-api.cc v8::HandleScope scope; v8 1033 test/cctest/test-api.cc v8::Handle<Value> syntax_error = CompileRun( v8 1036 test/cctest/test-api.cc v8::Handle<Value> not_error = CompileRun("{a:42}"); v8 1038 test/cctest/test-api.cc v8::Handle<Value> not_object = CompileRun("42"); v8 1044 test/cctest/test-api.cc v8::HandleScope scope; v8 1046 test/cctest/test-api.cc v8::Handle<Value> boxed_string = CompileRun("new String(\"test\")"); v8 1048 test/cctest/test-api.cc v8::Handle<Value> unboxed_string = CompileRun("\"test\""); v8 1050 test/cctest/test-api.cc v8::Handle<Value> boxed_not_string = CompileRun("new Number(42)"); v8 1052 test/cctest/test-api.cc v8::Handle<Value> not_object = CompileRun("0"); v8 1054 test/cctest/test-api.cc v8::Handle<v8::StringObject> as_boxed = boxed_string.As<v8::StringObject>(); v8 1056 test/cctest/test-api.cc Local<v8::String> the_string = as_boxed->StringValue(); v8 1059 test/cctest/test-api.cc v8::Handle<v8::Value> new_boxed_string = v8::StringObject::New(the_string); v8 1061 test/cctest/test-api.cc as_boxed = new_boxed_string.As<v8::StringObject>(); v8 1069 test/cctest/test-api.cc v8::HandleScope scope; v8 1071 test/cctest/test-api.cc v8::Handle<Value> boxed_number = CompileRun("new Number(42)"); v8 1073 test/cctest/test-api.cc v8::Handle<Value> unboxed_number = CompileRun("42"); v8 1075 test/cctest/test-api.cc v8::Handle<Value> boxed_not_number = CompileRun("new Boolean(false)"); v8 1077 test/cctest/test-api.cc v8::Handle<v8::NumberObject> as_boxed = boxed_number.As<v8::NumberObject>(); v8 1081 test/cctest/test-api.cc v8::Handle<v8::Value> new_boxed_number = v8::NumberObject::New(43); v8 1083 test/cctest/test-api.cc as_boxed = new_boxed_number.As<v8::NumberObject>(); v8 1090 test/cctest/test-api.cc v8::HandleScope scope; v8 1092 test/cctest/test-api.cc v8::Handle<Value> boxed_boolean = CompileRun("new Boolean(true)"); v8 1094 test/cctest/test-api.cc v8::Handle<Value> unboxed_boolean = CompileRun("true"); v8 1096 test/cctest/test-api.cc v8::Handle<Value> boxed_not_boolean = CompileRun("new Number(42)"); v8 1098 test/cctest/test-api.cc v8::Handle<v8::BooleanObject> as_boxed = v8 1099 test/cctest/test-api.cc boxed_boolean.As<v8::BooleanObject>(); v8 1103 test/cctest/test-api.cc v8::Handle<v8::Value> boxed_true = v8::BooleanObject::New(true); v8 1104 test/cctest/test-api.cc v8::Handle<v8::Value> boxed_false = v8::BooleanObject::New(false); v8 1107 test/cctest/test-api.cc as_boxed = boxed_true.As<v8::BooleanObject>(); v8 1109 test/cctest/test-api.cc as_boxed = boxed_false.As<v8::BooleanObject>(); v8 1115 test/cctest/test-api.cc v8::HandleScope scope; v8 1118 test/cctest/test-api.cc Local<v8::Number> pi_obj = v8::Number::New(PI); v8 1124 test/cctest/test-api.cc v8::HandleScope scope; v8 1128 test/cctest/test-api.cc v8::Handle<v8::Boolean> t = v8::True(); v8 1130 test/cctest/test-api.cc v8::Handle<v8::Boolean> f = v8::False(); v8 1136 test/cctest/test-api.cc v8::HandleScope scope; v8 1139 test/cctest/test-api.cc Local<Value> date = v8::Date::New(PI); v8 1141 test/cctest/test-api.cc date.As<v8::Date>()->Set(v8_str("property"), v8::Integer::New(42)); v8 1142 test/cctest/test-api.cc CHECK_EQ(42, date.As<v8::Date>()->Get(v8_str("property"))->Int32Value()); v8 1147 test/cctest/test-api.cc v8::HandleScope scope; v8 1149 test/cctest/test-api.cc v8::Handle<v8::Boolean> t = v8::True(); v8 1151 test/cctest/test-api.cc v8::Handle<v8::Boolean> f = v8::False(); v8 1153 test/cctest/test-api.cc v8::Handle<v8::Primitive> u = v8::Undefined(); v8 1155 test/cctest/test-api.cc v8::Handle<v8::Primitive> n = v8::Null(); v8 1157 test/cctest/test-api.cc v8::Handle<String> str1 = v8_str(""); v8 1159 test/cctest/test-api.cc v8::Handle<String> str2 = v8_str("x"); v8 1161 test/cctest/test-api.cc CHECK(!v8::Number::New(0)->BooleanValue()); v8 1162 test/cctest/test-api.cc CHECK(v8::Number::New(-1)->BooleanValue()); v8 1163 test/cctest/test-api.cc CHECK(v8::Number::New(1)->BooleanValue()); v8 1164 test/cctest/test-api.cc CHECK(v8::Number::New(42)->BooleanValue()); v8 1169 test/cctest/test-api.cc static v8::Handle<Value> DummyCallHandler(const v8::Arguments& args) { v8 1175 test/cctest/test-api.cc static v8::Handle<Value> GetM(Local<String> name, const AccessorInfo&) { v8 1182 test/cctest/test-api.cc v8::HandleScope scope; v8 1183 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> func_templ = v8::FunctionTemplate::New(); v8 1186 test/cctest/test-api.cc v8::FunctionTemplate::New(DummyCallHandler)); v8 1187 test/cctest/test-api.cc v8::Handle<ObjectTemplate> templ = func_templ->InstanceTemplate(); v8 1191 test/cctest/test-api.cc v8::Handle<Script> script(v8_compile("dummy()")); v8 1192 test/cctest/test-api.cc v8::Handle<Value> result(script->Run()); v8 1200 test/cctest/test-api.cc v8::HandleScope scope; v8 1205 test/cctest/test-api.cc Local<v8::Object> instance1 = templ1->NewInstance(); v8 1209 test/cctest/test-api.cc Local<v8::FunctionTemplate> fun = v8::FunctionTemplate::New(); v8 1214 test/cctest/test-api.cc Local<v8::Object> instance2 = templ2->NewInstance(); v8 1223 test/cctest/test-api.cc static v8::Handle<Value> GetFlabby(const v8::Arguments& args) { v8 1229 test/cctest/test-api.cc static v8::Handle<Value> GetKnurd(Local<String> property, const AccessorInfo&) { v8 1236 test/cctest/test-api.cc v8::HandleScope scope; v8 1237 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> super = v8::FunctionTemplate::New(); v8 1239 test/cctest/test-api.cc v8::FunctionTemplate::New(GetFlabby)); v8 1244 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> base1 = v8::FunctionTemplate::New(); v8 1248 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> base2 = v8::FunctionTemplate::New(); v8 1294 test/cctest/test-api.cc static v8::Handle<Value> EchoNamedProperty(Local<String> name, v8 1367 test/cctest/test-api.cc v8::HandleScope scope; v8 1384 test/cctest/test-api.cc v8::HandleScope scope; v8 1404 test/cctest/test-api.cc v8::HandleScope scope; v8 1423 test/cctest/test-api.cc v8::HandleScope scope; v8 1440 test/cctest/test-api.cc v8::HandleScope scope; v8 1457 test/cctest/test-api.cc v8::HandleScope scope; v8 1476 test/cctest/test-api.cc v8::HandleScope scope; v8 1495 test/cctest/test-api.cc v8::HandleScope scope; v8 1519 test/cctest/test-api.cc v8::HandleScope scope; v8 1543 test/cctest/test-api.cc v8::HandleScope scope; v8 1560 test/cctest/test-api.cc v8::HandleScope scope; v8 1578 test/cctest/test-api.cc v8::HandleScope scope; v8 1579 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(); v8 1590 test/cctest/test-api.cc v8::Handle<Value> str = CompileRun(code); v8 1603 test/cctest/test-api.cc static v8::Handle<Value> EchoIndexedProperty(uint32_t index, v8 1613 test/cctest/test-api.cc v8::HandleScope scope; v8 1614 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(); v8 1626 test/cctest/test-api.cc v8::Handle<v8::Object> bottom; v8 1628 test/cctest/test-api.cc static v8::Handle<Value> CheckThisIndexedPropertyHandler( v8 1633 test/cctest/test-api.cc return v8::Handle<Value>(); v8 1636 test/cctest/test-api.cc static v8::Handle<Value> CheckThisNamedPropertyHandler( v8 1641 test/cctest/test-api.cc return v8::Handle<Value>(); v8 1645 test/cctest/test-api.cc v8::Handle<Value> CheckThisIndexedPropertySetter(uint32_t index, v8 1650 test/cctest/test-api.cc return v8::Handle<Value>(); v8 1654 test/cctest/test-api.cc v8::Handle<Value> CheckThisNamedPropertySetter(Local<String> property, v8 1659 test/cctest/test-api.cc return v8::Handle<Value>(); v8 1662 test/cctest/test-api.cc v8::Handle<v8::Integer> CheckThisIndexedPropertyQuery( v8 1667 test/cctest/test-api.cc return v8::Handle<v8::Integer>(); v8 1671 test/cctest/test-api.cc v8::Handle<v8::Integer> CheckThisNamedPropertyQuery(Local<String> property, v8 1675 test/cctest/test-api.cc return v8::Handle<v8::Integer>(); v8 1679 test/cctest/test-api.cc v8::Handle<v8::Boolean> CheckThisIndexedPropertyDeleter( v8 1684 test/cctest/test-api.cc return v8::Handle<v8::Boolean>(); v8 1688 test/cctest/test-api.cc v8::Handle<v8::Boolean> CheckThisNamedPropertyDeleter( v8 1693 test/cctest/test-api.cc return v8::Handle<v8::Boolean>(); v8 1697 test/cctest/test-api.cc v8::Handle<v8::Array> CheckThisIndexedPropertyEnumerator( v8 1701 test/cctest/test-api.cc return v8::Handle<v8::Array>(); v8 1705 test/cctest/test-api.cc v8::Handle<v8::Array> CheckThisNamedPropertyEnumerator( v8 1709 test/cctest/test-api.cc return v8::Handle<v8::Array>(); v8 1714 test/cctest/test-api.cc v8::HandleScope scope; v8 1718 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(); v8 1734 test/cctest/test-api.cc Local<v8::Object> top = templ->GetFunction()->NewInstance(); v8 1735 test/cctest/test-api.cc Local<v8::Object> middle = templ->GetFunction()->NewInstance(); v8 1762 test/cctest/test-api.cc static v8::Handle<Value> PrePropertyHandlerGet(Local<String> key, v8 1768 test/cctest/test-api.cc return v8::Handle<String>(); v8 1772 test/cctest/test-api.cc static v8::Handle<v8::Integer> PrePropertyHandlerQuery(Local<String> key, v8 1775 test/cctest/test-api.cc return v8::Integer::New(v8::None); v8 1778 test/cctest/test-api.cc return v8::Handle<v8::Integer>(); // do not intercept the call v8 1783 test/cctest/test-api.cc v8::HandleScope scope; v8 1784 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> desc = v8::FunctionTemplate::New(); v8 1791 test/cctest/test-api.cc v8::Handle<Value> result_pre = Script::Compile(v8_str("pre"))->Run(); v8 1793 test/cctest/test-api.cc v8::Handle<Value> result_on = Script::Compile(v8_str("on"))->Run(); v8 1795 test/cctest/test-api.cc v8::Handle<Value> result_post = Script::Compile(v8_str("post"))->Run(); v8 1801 test/cctest/test-api.cc v8::HandleScope scope; v8 1803 test/cctest/test-api.cc v8::Handle<Value> result = Script::Compile(v8_str( v8 1809 test/cctest/test-api.cc v8::Handle<Script> call_recursively_script; v8 1813 test/cctest/test-api.cc static v8::Handle<Value> CallScriptRecursivelyCall(const v8::Arguments& args) { v8 1816 test/cctest/test-api.cc if (depth == kTargetRecursionDepth) return v8::Undefined(); v8 1817 test/cctest/test-api.cc args.This()->Set(v8_str("depth"), v8::Integer::New(depth + 1)); v8 1822 test/cctest/test-api.cc static v8::Handle<Value> CallFunctionRecursivelyCall( v8 1828 test/cctest/test-api.cc return v8::Undefined(); v8 1830 test/cctest/test-api.cc args.This()->Set(v8_str("depth"), v8::Integer::New(depth + 1)); v8 1831 test/cctest/test-api.cc v8::Handle<Value> function = v8 1838 test/cctest/test-api.cc v8::HandleScope scope; v8 1839 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> global = ObjectTemplate::New(); v8 1841 test/cctest/test-api.cc v8::FunctionTemplate::New(CallScriptRecursivelyCall)); v8 1843 test/cctest/test-api.cc v8::FunctionTemplate::New(CallFunctionRecursivelyCall)); v8 1846 test/cctest/test-api.cc env->Global()->Set(v8_str("depth"), v8::Integer::New(0)); v8 1849 test/cctest/test-api.cc call_recursively_script = v8::Handle<Script>(); v8 1851 test/cctest/test-api.cc env->Global()->Set(v8_str("depth"), v8::Integer::New(0)); v8 1856 test/cctest/test-api.cc static v8::Handle<Value> v8 1859 test/cctest/test-api.cc return v8::ThrowException(key); v8 1863 test/cctest/test-api.cc static v8::Handle<Value> ThrowingPropertyHandlerSet(Local<String> key, v8 1866 test/cctest/test-api.cc v8::ThrowException(key); v8 1867 test/cctest/test-api.cc return v8::Undefined(); // not the same as v8::Handle<v8::Value>() v8 1872 test/cctest/test-api.cc v8::HandleScope scope; v8 1873 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); v8 1878 test/cctest/test-api.cc v8::Handle<Value> otto = Script::Compile(v8_str( v8 1881 test/cctest/test-api.cc v8::Handle<Value> netto = Script::Compile(v8_str( v8 1888 test/cctest/test-api.cc v8::HandleScope scope; v8 1889 test/cctest/test-api.cc Local<v8::FunctionTemplate> Foo = v8::FunctionTemplate::New(); v8 1899 test/cctest/test-api.cc v8::HandleScope scope; v8 1902 test/cctest/test-api.cc Local<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(); v8 1903 test/cctest/test-api.cc Local<v8::ObjectTemplate> instance_templ = templ->InstanceTemplate(); v8 1905 test/cctest/test-api.cc Local<v8::Object> obj = templ->GetFunction()->NewInstance(); v8 1914 test/cctest/test-api.cc v8::HandleScope scope; v8 1915 test/cctest/test-api.cc Local<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New(); v8 1918 test/cctest/test-api.cc v8::Handle<v8::Object> global_proxy = env->Global(); v8 1919 test/cctest/test-api.cc v8::Handle<v8::Object> global = global_proxy->GetPrototype().As<v8::Object>(); v8 1928 test/cctest/test-api.cc v8::HandleScope scope; v8 1931 test/cctest/test-api.cc Local<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(); v8 1932 test/cctest/test-api.cc Local<v8::ObjectTemplate> instance_templ = templ->InstanceTemplate(); v8 1934 test/cctest/test-api.cc Local<v8::Object> obj = templ->GetFunction()->NewInstance(); v8 1960 test/cctest/test-api.cc v8::HandleScope scope; v8 1963 test/cctest/test-api.cc Local<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(); v8 1964 test/cctest/test-api.cc Local<v8::ObjectTemplate> instance_templ = templ->InstanceTemplate(); v8 1966 test/cctest/test-api.cc Local<v8::Object> obj = templ->GetFunction()->NewInstance(); v8 1979 test/cctest/test-api.cc CHECK_EQ(aligned, v8::External::Unwrap(obj->GetInternalField(0))); v8 1983 test/cctest/test-api.cc CHECK_EQ(unaligned, v8::External::Unwrap(obj->GetInternalField(0))); v8 1985 test/cctest/test-api.cc obj->SetInternalField(0, v8::External::Wrap(aligned)); v8 1989 test/cctest/test-api.cc obj->SetInternalField(0, v8::External::Wrap(unaligned)); v8 1998 test/cctest/test-api.cc v8::HandleScope scope; v8 2004 test/cctest/test-api.cc Local<v8::Object> obj = v8::Object::New(); v8 2008 test/cctest/test-api.cc int hash2 = v8::Object::New()->GetIdentityHash(); v8 2014 test/cctest/test-api.cc int hash3 = v8::Object::New()->GetIdentityHash(); v8 2026 test/cctest/test-api.cc Local<v8::Object> o1 = v8::Object::New(); v8 2027 test/cctest/test-api.cc Local<v8::Object> o2 = v8::Object::New(); v8 2034 test/cctest/test-api.cc Local<v8::Object> o1 = v8::Object::New(); v8 2035 test/cctest/test-api.cc Local<v8::Object> o2 = v8::Object::New(); v8 2042 test/cctest/test-api.cc v8::HandleScope scope; v8 2045 test/cctest/test-api.cc v8::Local<v8::Object> obj = v8::Object::New(); v8 2046 test/cctest/test-api.cc v8::Local<v8::String> key = v8_str("api-test::hidden-key"); v8 2047 test/cctest/test-api.cc v8::Local<v8::String> empty = v8_str(""); v8 2048 test/cctest/test-api.cc v8::Local<v8::String> prop_name = v8_str("prop_name"); v8 2055 test/cctest/test-api.cc CHECK(obj->SetHiddenValue(key, v8::Integer::New(1503))); v8 2057 test/cctest/test-api.cc CHECK(obj->SetHiddenValue(key, v8::Integer::New(2002))); v8 2067 test/cctest/test-api.cc CHECK(obj->Set(empty, v8::Integer::New(2003))); v8 2075 test/cctest/test-api.cc CHECK(obj->Set(prop_name, v8::Integer::New(2008))); v8 2093 test/cctest/test-api.cc v8::HandleScope scope; v8 2096 test/cctest/test-api.cc v8::Local<v8::Object> obj = v8::Object::New(); v8 2097 test/cctest/test-api.cc v8::Local<v8::String> key = v8_str("hidden"); v8 2111 test/cctest/test-api.cc CHECK(obj->SetHiddenValue(key, v8::Integer::New(42))); v8 2118 test/cctest/test-api.cc static v8::Handle<Value> InterceptorForHiddenProperties( v8 2121 test/cctest/test-api.cc return v8::Handle<Value>(); v8 2126 test/cctest/test-api.cc v8::HandleScope scope; v8 2131 test/cctest/test-api.cc v8::Local<v8::String> key = v8_str("api-test::hidden-key"); v8 2134 test/cctest/test-api.cc Local<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(); v8 2135 test/cctest/test-api.cc Local<v8::ObjectTemplate> instance_templ = fun_templ->InstanceTemplate(); v8 2137 test/cctest/test-api.cc Local<v8::Function> function = fun_templ->GetFunction(); v8 2138 test/cctest/test-api.cc Local<v8::Object> obj = function->NewInstance(); v8 2139 test/cctest/test-api.cc CHECK(obj->SetHiddenValue(key, v8::Integer::New(2302))); v8 2146 test/cctest/test-api.cc v8::HandleScope scope; v8 2148 test/cctest/test-api.cc Local<v8::External> ext = v8::External::New(&x); v8 2152 test/cctest/test-api.cc v8::Handle<v8::External> reext = reext_obj.As<v8::External>(); v8 2160 test/cctest/test-api.cc Local<v8::Value> zero = v8::External::Wrap(&data[0]); v8 2161 test/cctest/test-api.cc Local<v8::Value> one = v8::External::Wrap(&data[1]); v8 2162 test/cctest/test-api.cc Local<v8::Value> two = v8::External::Wrap(&data[2]); v8 2163 test/cctest/test-api.cc Local<v8::Value> three = v8::External::Wrap(&data[3]); v8 2165 test/cctest/test-api.cc char* char_ptr = reinterpret_cast<char*>(v8::External::Unwrap(zero)); v8 2167 test/cctest/test-api.cc char_ptr = reinterpret_cast<char*>(v8::External::Unwrap(one)); v8 2169 test/cctest/test-api.cc char_ptr = reinterpret_cast<char*>(v8::External::Unwrap(two)); v8 2171 test/cctest/test-api.cc char_ptr = reinterpret_cast<char*>(v8::External::Unwrap(three)); v8 2178 test/cctest/test-api.cc v8::Persistent<String> global; v8 2180 test/cctest/test-api.cc v8::HandleScope scope; v8 2182 test/cctest/test-api.cc global = v8::Persistent<String>::New(str); v8 2377 test/cctest/test-api.cc v8::HandleScope scope; v8 2380 test/cctest/test-api.cc v8::TryCatch try_catch; v8 2403 test/cctest/test-api.cc v8::HandleScope scope; v8 2405 test/cctest/test-api.cc v8::V8::AddMessageListener(check_message, v8_num(5.76)); v8 2407 test/cctest/test-api.cc v8::ScriptOrigin origin = v8 2408 test/cctest/test-api.cc v8::ScriptOrigin(v8_str("6.75")); v8 2409 test/cctest/test-api.cc v8::Handle<v8::Script> script = Script::Compile(v8_str("throw 'error'"), v8 2415 test/cctest/test-api.cc v8::V8::RemoveMessageListeners(check_message); v8 2420 test/cctest/test-api.cc v8::HandleScope scope; v8 2424 test/cctest/test-api.cc context->Global()->Set(v8::Integer::New(16), v8_num(32)); v8 2434 test/cctest/test-api.cc CHECK_EQ(92, context->Global()->Get(v8::Integer::New(12))->Int32Value()); v8 2437 test/cctest/test-api.cc CHECK_EQ(32, context->Global()->Get(v8::Integer::New(16))->Int32Value()); v8 2440 test/cctest/test-api.cc CHECK_EQ(56, context->Global()->Get(v8::Integer::New(13))->Int32Value()); v8 2447 test/cctest/test-api.cc v8::HandleScope scope; v8 2452 test/cctest/test-api.cc CHECK_EQ(v8::None, context->Global()->GetPropertyAttributes(prop)); v8 2455 test/cctest/test-api.cc context->Global()->Set(prop, v8_num(7), v8::ReadOnly); v8 2457 test/cctest/test-api.cc CHECK_EQ(v8::ReadOnly, context->Global()->GetPropertyAttributes(prop)); v8 2464 test/cctest/test-api.cc context->Global()->Set(prop, v8_num(13), v8::DontDelete); v8 2468 test/cctest/test-api.cc CHECK_EQ(v8::DontDelete, context->Global()->GetPropertyAttributes(prop)); v8 2471 test/cctest/test-api.cc context->Global()->Set(prop, v8_num(28), v8::DontEnum); v8 2472 test/cctest/test-api.cc CHECK_EQ(v8::DontEnum, context->Global()->GetPropertyAttributes(prop)); v8 2475 test/cctest/test-api.cc CHECK_EQ(v8::None, context->Global()->GetPropertyAttributes(prop)); v8 2477 test/cctest/test-api.cc CHECK_EQ(v8::None, context->Global()->GetPropertyAttributes(fake_prop)); v8 2482 test/cctest/test-api.cc CHECK_EQ(v8::None, context->Global()->GetPropertyAttributes(exception)); v8 2491 test/cctest/test-api.cc v8::HandleScope scope; v8 2493 test/cctest/test-api.cc Local<v8::Array> array = v8::Array::New(); v8 2506 test/cctest/test-api.cc Local<v8::Array> arr = obj.As<v8::Array>(); v8 2511 test/cctest/test-api.cc array = v8::Array::New(27); v8 2513 test/cctest/test-api.cc array = v8::Array::New(-27); v8 2518 test/cctest/test-api.cc v8::Handle<Value> HandleF(const v8::Arguments& args) { v8 2519 test/cctest/test-api.cc v8::HandleScope scope; v8 2521 test/cctest/test-api.cc Local<v8::Array> result = v8::Array::New(args.Length()); v8 2529 test/cctest/test-api.cc v8::HandleScope scope; v8 2531 test/cctest/test-api.cc global->Set(v8_str("f"), v8::FunctionTemplate::New(HandleF)); v8 2535 test/cctest/test-api.cc Local<v8::Array> a0 = CompileRun(fun).As<v8::Array>(); v8 2539 test/cctest/test-api.cc Local<v8::Array> a1 = CompileRun(fun2).As<v8::Array>(); v8 2544 test/cctest/test-api.cc Local<v8::Array> a2 = CompileRun(fun3).As<v8::Array>(); v8 2550 test/cctest/test-api.cc Local<v8::Array> a3 = CompileRun(fun4).As<v8::Array>(); v8 2557 test/cctest/test-api.cc Local<v8::Array> a4 = CompileRun(fun5).As<v8::Array>(); v8 2567 test/cctest/test-api.cc v8::HandleScope scope; v8 2580 test/cctest/test-api.cc v8::Handle<Value>* args0 = NULL; v8 2581 test/cctest/test-api.cc Local<v8::Array> a0 = Local<v8::Array>::Cast(Foo->Call(Foo, 0, args0)); v8 2584 test/cctest/test-api.cc v8::Handle<Value> args1[] = { v8_num(1.1) }; v8 2585 test/cctest/test-api.cc Local<v8::Array> a1 = Local<v8::Array>::Cast(Foo->Call(Foo, 1, args1)); v8 2587 test/cctest/test-api.cc CHECK_EQ(1.1, a1->Get(v8::Integer::New(0))->NumberValue()); v8 2589 test/cctest/test-api.cc v8::Handle<Value> args2[] = { v8_num(2.2), v8 2591 test/cctest/test-api.cc Local<v8::Array> a2 = Local<v8::Array>::Cast(Foo->Call(Foo, 2, args2)); v8 2593 test/cctest/test-api.cc CHECK_EQ(2.2, a2->Get(v8::Integer::New(0))->NumberValue()); v8 2594 test/cctest/test-api.cc CHECK_EQ(3.3, a2->Get(v8::Integer::New(1))->NumberValue()); v8 2596 test/cctest/test-api.cc v8::Handle<Value> args3[] = { v8_num(4.4), v8 2599 test/cctest/test-api.cc Local<v8::Array> a3 = Local<v8::Array>::Cast(Foo->Call(Foo, 3, args3)); v8 2601 test/cctest/test-api.cc CHECK_EQ(4.4, a3->Get(v8::Integer::New(0))->NumberValue()); v8 2602 test/cctest/test-api.cc CHECK_EQ(5.5, a3->Get(v8::Integer::New(1))->NumberValue()); v8 2603 test/cctest/test-api.cc CHECK_EQ(6.6, a3->Get(v8::Integer::New(2))->NumberValue()); v8 2605 test/cctest/test-api.cc v8::Handle<Value> args4[] = { v8_num(7.7), v8 2609 test/cctest/test-api.cc Local<v8::Array> a4 = Local<v8::Array>::Cast(Foo->Call(Foo, 4, args4)); v8 2611 test/cctest/test-api.cc CHECK_EQ(7.7, a4->Get(v8::Integer::New(0))->NumberValue()); v8 2612 test/cctest/test-api.cc CHECK_EQ(8.8, a4->Get(v8::Integer::New(1))->NumberValue()); v8 2613 test/cctest/test-api.cc CHECK_EQ(9.9, a4->Get(v8::Integer::New(2))->NumberValue()); v8 2614 test/cctest/test-api.cc CHECK_EQ(10.11, a4->Get(v8::Integer::New(3))->NumberValue()); v8 2629 test/cctest/test-api.cc v8::ResourceConstraints constraints; v8 2632 test/cctest/test-api.cc v8::SetResourceConstraints(&constraints); v8 2635 test/cctest/test-api.cc v8::HandleScope scope; v8 2637 test/cctest/test-api.cc v8::V8::IgnoreOutOfMemoryException(); v8 2648 test/cctest/test-api.cc v8::Handle<Value> ProvokeOutOfMemory(const v8::Arguments& args) { v8 2651 test/cctest/test-api.cc v8::HandleScope scope; v8 2670 test/cctest/test-api.cc v8::ResourceConstraints constraints; v8 2673 test/cctest/test-api.cc v8::SetResourceConstraints(&constraints); v8 2675 test/cctest/test-api.cc v8::HandleScope scope; v8 2678 test/cctest/test-api.cc v8::FunctionTemplate::New(ProvokeOutOfMemory)); v8 2680 test/cctest/test-api.cc v8::V8::IgnoreOutOfMemoryException(); v8 2699 test/cctest/test-api.cc v8::ResourceConstraints constraints; v8 2702 test/cctest/test-api.cc v8::SetResourceConstraints(&constraints); v8 2705 test/cctest/test-api.cc v8::V8::IgnoreOutOfMemoryException(); v8 2707 test/cctest/test-api.cc v8::HandleScope scope; v8 2722 test/cctest/test-api.cc v8::HandleScope scope; v8 2735 test/cctest/test-api.cc v8::Handle<Value>* args0 = NULL; v8 2736 test/cctest/test-api.cc Local<v8::Array> a0 = Local<v8::Array>::Cast(Foo->NewInstance(0, args0)); v8 2739 test/cctest/test-api.cc v8::Handle<Value> args1[] = { v8_num(1.1) }; v8 2740 test/cctest/test-api.cc Local<v8::Array> a1 = Local<v8::Array>::Cast(Foo->NewInstance(1, args1)); v8 2742 test/cctest/test-api.cc CHECK_EQ(1.1, a1->Get(v8::Integer::New(0))->NumberValue()); v8 2744 test/cctest/test-api.cc v8::Handle<Value> args2[] = { v8_num(2.2), v8 2746 test/cctest/test-api.cc Local<v8::Array> a2 = Local<v8::Array>::Cast(Foo->NewInstance(2, args2)); v8 2748 test/cctest/test-api.cc CHECK_EQ(2.2, a2->Get(v8::Integer::New(0))->NumberValue()); v8 2749 test/cctest/test-api.cc CHECK_EQ(3.3, a2->Get(v8::Integer::New(1))->NumberValue()); v8 2751 test/cctest/test-api.cc v8::Handle<Value> args3[] = { v8_num(4.4), v8 2754 test/cctest/test-api.cc Local<v8::Array> a3 = Local<v8::Array>::Cast(Foo->NewInstance(3, args3)); v8 2756 test/cctest/test-api.cc CHECK_EQ(4.4, a3->Get(v8::Integer::New(0))->NumberValue()); v8 2757 test/cctest/test-api.cc CHECK_EQ(5.5, a3->Get(v8::Integer::New(1))->NumberValue()); v8 2758 test/cctest/test-api.cc CHECK_EQ(6.6, a3->Get(v8::Integer::New(2))->NumberValue()); v8 2760 test/cctest/test-api.cc v8::Handle<Value> args4[] = { v8_num(7.7), v8 2764 test/cctest/test-api.cc Local<v8::Array> a4 = Local<v8::Array>::Cast(Foo->NewInstance(4, args4)); v8 2766 test/cctest/test-api.cc CHECK_EQ(7.7, a4->Get(v8::Integer::New(0))->NumberValue()); v8 2767 test/cctest/test-api.cc CHECK_EQ(8.8, a4->Get(v8::Integer::New(1))->NumberValue()); v8 2768 test/cctest/test-api.cc CHECK_EQ(9.9, a4->Get(v8::Integer::New(2))->NumberValue()); v8 2769 test/cctest/test-api.cc CHECK_EQ(10.11, a4->Get(v8::Integer::New(3))->NumberValue()); v8 2782 test/cctest/test-api.cc v8::HandleScope scope; v8 2830 test/cctest/test-api.cc v8::HandleScope scope; v8 2881 test/cctest/test-api.cc v8::HandleScope scope; v8 2889 test/cctest/test-api.cc v8::TryCatch try_catch; v8 2911 test/cctest/test-api.cc Local<Value> to_object_result = v8::Undefined()->ToObject(); v8 2934 test/cctest/test-api.cc v8::Handle<Value> ThrowFromC(const v8::Arguments& args) { v8 2936 test/cctest/test-api.cc return v8::ThrowException(v8_str("konto")); v8 2940 test/cctest/test-api.cc v8::Handle<Value> CCatcher(const v8::Arguments& args) { v8 2941 test/cctest/test-api.cc if (args.Length() < 1) return v8::False(); v8 2942 test/cctest/test-api.cc v8::HandleScope scope; v8 2943 test/cctest/test-api.cc v8::TryCatch try_catch; v8 2944 test/cctest/test-api.cc Local<Value> result = v8::Script::Compile(args[0]->ToString())->Run(); v8 2946 test/cctest/test-api.cc return v8::Boolean::New(try_catch.HasCaught()); v8 2951 test/cctest/test-api.cc v8::HandleScope scope; v8 2954 test/cctest/test-api.cc v8::FunctionTemplate::New(ThrowFromC)); v8 2969 test/cctest/test-api.cc v8::HandleScope scope; v8 2972 test/cctest/test-api.cc v8::FunctionTemplate::New(ThrowFromC)); v8 2974 test/cctest/test-api.cc v8::TryCatch try_catch; v8 2988 test/cctest/test-api.cc v8::HandleScope scope; v8 2991 test/cctest/test-api.cc v8::FunctionTemplate::New(CCatcher)); v8 3012 test/cctest/test-api.cc static v8::Handle<Value> Fail(const v8::Arguments& args) { v8 3015 test/cctest/test-api.cc return v8::Undefined(); v8 3023 test/cctest/test-api.cc v8::HandleScope scope; v8 3024 test/cctest/test-api.cc v8::V8::AddMessageListener(check_reference_error_message); v8 3026 test/cctest/test-api.cc templ->Set(v8_str("fail"), v8::FunctionTemplate::New(Fail)); v8 3049 test/cctest/test-api.cc v8::Handle<Value> string = CompileRun("try { asdf; } catch(e) { e + ''; }"); v8 3056 test/cctest/test-api.cc v8::V8::RemoveMessageListeners(check_message); v8 3069 test/cctest/test-api.cc v8::HandleScope scope; v8 3070 test/cctest/test-api.cc v8::V8::AddMessageListener(receive_message); v8 3073 test/cctest/test-api.cc v8::FunctionTemplate::New(ThrowFromC)); v8 3077 test/cctest/test-api.cc v8::V8::RemoveMessageListeners(check_message); v8 3083 test/cctest/test-api.cc v8::HandleScope scope; v8 3084 test/cctest/test-api.cc v8::V8::AddMessageListener(receive_message); v8 3087 test/cctest/test-api.cc v8::FunctionTemplate::New(ThrowFromC)); v8 3089 test/cctest/test-api.cc v8::TryCatch try_catch; v8 3095 test/cctest/test-api.cc v8::V8::RemoveMessageListeners(check_message); v8 3101 test/cctest/test-api.cc v8::HandleScope scope; v8 3102 test/cctest/test-api.cc v8::V8::AddMessageListener(receive_message); v8 3104 test/cctest/test-api.cc v8::TryCatch try_catch; v8 3110 test/cctest/test-api.cc v8::V8::RemoveMessageListeners(receive_message); v8 3115 test/cctest/test-api.cc v8::HandleScope scope; v8 3118 test/cctest/test-api.cc v8::FunctionTemplate::New(ThrowFromC)); v8 3121 test/cctest/test-api.cc v8::TryCatch try_catch; v8 3133 test/cctest/test-api.cc v8::Handle<Value> CThrowCountDown(const v8::Arguments& args) { v8 3139 test/cctest/test-api.cc return v8::ThrowException(v8_str("FromC")); v8 3141 test/cctest/test-api.cc Local<v8::Object> global = Context::GetCurrent()->Global(); v8 3143 test/cctest/test-api.cc v8::Handle<Value> argv[] = { v8_num(count - 1), v8 3148 test/cctest/test-api.cc v8::TryCatch try_catch; v8 3166 test/cctest/test-api.cc v8::Handle<Value> JSCheck(const v8::Arguments& args) { v8 3177 test/cctest/test-api.cc return v8::Undefined(); v8 3182 test/cctest/test-api.cc v8::HandleScope scope; v8 3184 test/cctest/test-api.cc v8::TryCatch try_catch; v8 3217 test/cctest/test-api.cc v8::HandleScope scope; v8 3219 test/cctest/test-api.cc templ->Set(v8_str("check"), v8::FunctionTemplate::New(JSCheck)); v8 3221 test/cctest/test-api.cc v8::FunctionTemplate::New(CThrowCountDown)); v8 3248 test/cctest/test-api.cc v8::Handle<Value> a0[argc] = { v8_num(4), v8_num(2), v8_num(3), v8_num(2) }; v8 3252 test/cctest/test-api.cc v8::Handle<Value> a1[argc] = { v8_num(5), v8_num(6), v8_num(1), v8_num(2) }; v8 3256 test/cctest/test-api.cc v8::Handle<Value> a2[argc] = { v8_num(6), v8_num(7), v8_num(5), v8_num(5) }; v8 3260 test/cctest/test-api.cc v8::Handle<Value> a3[argc] = { v8_num(6), v8_num(6), v8_num(7), v8_num(6) }; v8 3264 test/cctest/test-api.cc v8::Handle<Value> a4[argc] = { v8_num(6), v8_num(4), v8_num(5), v8_num(4) }; v8 3268 test/cctest/test-api.cc v8::Handle<Value> a5[argc] = { v8_num(6), v8_num(4), v8_num(3), v8_num(3) }; v8 3273 test/cctest/test-api.cc v8::Handle<Value> ThrowValue(const v8::Arguments& args) { v8 3276 test/cctest/test-api.cc return v8::ThrowException(args[0]); v8 3281 test/cctest/test-api.cc v8::HandleScope scope; v8 3283 test/cctest/test-api.cc templ->Set(v8_str("Throw"), v8::FunctionTemplate::New(ThrowValue)); v8 3285 test/cctest/test-api.cc v8::Handle<v8::Array> result = v8::Handle<v8::Array>::Cast(CompileRun( v8 3296 test/cctest/test-api.cc CHECK(result->Get(v8::Integer::New(0))->IsString()); v8 3297 test/cctest/test-api.cc CHECK(result->Get(v8::Integer::New(1))->IsNumber()); v8 3298 test/cctest/test-api.cc CHECK_EQ(1, result->Get(v8::Integer::New(1))->Int32Value()); v8 3299 test/cctest/test-api.cc CHECK(result->Get(v8::Integer::New(2))->IsNumber()); v8 3300 test/cctest/test-api.cc CHECK_EQ(0, result->Get(v8::Integer::New(2))->Int32Value()); v8 3301 test/cctest/test-api.cc CHECK(result->Get(v8::Integer::New(3))->IsNull()); v8 3302 test/cctest/test-api.cc CHECK(result->Get(v8::Integer::New(4))->IsUndefined()); v8 3307 test/cctest/test-api.cc v8::HandleScope scope; v8 3309 test/cctest/test-api.cc v8::TryCatch try_catch; v8 3323 test/cctest/test-api.cc v8::HandleScope scope; v8 3325 test/cctest/test-api.cc v8::TryCatch try_catch; v8 3333 test/cctest/test-api.cc v8::HandleScope scope; v8 3335 test/cctest/test-api.cc v8::TryCatch try_catch; v8 3343 test/cctest/test-api.cc v8::Handle<v8::Value> WithTryCatch(const v8::Arguments& args) { v8 3344 test/cctest/test-api.cc v8::TryCatch try_catch; v8 3345 test/cctest/test-api.cc return v8::Undefined(); v8 3350 test/cctest/test-api.cc v8::HandleScope scope; v8 3354 test/cctest/test-api.cc v8::FunctionTemplate::New(WithTryCatch)->GetFunction()); v8 3355 test/cctest/test-api.cc v8::TryCatch try_catch; v8 3368 test/cctest/test-api.cc v8::HandleScope scope; v8 3389 test/cctest/test-api.cc CHECK(v8::False()->StrictEquals(v8::False())); v8 3390 test/cctest/test-api.cc CHECK(!v8::False()->StrictEquals(v8::Undefined())); v8 3392 test/cctest/test-api.cc v8::Handle<v8::Object> obj = v8::Object::New(); v8 3393 test/cctest/test-api.cc v8::Persistent<v8::Object> alias = v8::Persistent<v8::Object>::New(obj); v8 3400 test/cctest/test-api.cc v8::HandleScope scope; v8 3408 test/cctest/test-api.cc static v8::Handle<Value> GetXValue(Local<String> name, v8 3418 test/cctest/test-api.cc v8::HandleScope scope; v8 3431 test/cctest/test-api.cc v8::HandleScope scope; v8 3470 test/cctest/test-api.cc v8::TryCatch try_catch; v8 3478 test/cctest/test-api.cc v8::HandleScope scope; v8 3515 test/cctest/test-api.cc v8::TryCatch try_catch; v8 3523 test/cctest/test-api.cc static v8::Handle<v8::Object> GetGlobalProperty(LocalContext* context, v8 3525 test/cctest/test-api.cc return v8::Handle<v8::Object>::Cast((*context)->Global()->Get(v8_str(name))); v8 3530 test/cctest/test-api.cc v8::HandleScope scope; v8 3604 test/cctest/test-api.cc v8::HandleScope scope; v8 3614 test/cctest/test-api.cc v8_str("donut"), v8::DEFAULT, v8::DontDelete)); v8 3618 test/cctest/test-api.cc v8_str("donut"), v8::DEFAULT, v8::DontDelete)); v8 3632 test/cctest/test-api.cc v8::TryCatch try_catch; v8 3640 test/cctest/test-api.cc v8::TryCatch try_catch; v8 3650 test/cctest/test-api.cc static v8::Handle<Value> Get239Value(Local<String> name, v8 3660 test/cctest/test-api.cc v8::HandleScope scope; v8 3683 test/cctest/test-api.cc v8::Persistent<Value> xValue; v8 3693 test/cctest/test-api.cc xValue = v8::Persistent<Value>::New(value); v8 3698 test/cctest/test-api.cc v8::HandleScope scope; v8 3709 test/cctest/test-api.cc xValue = v8::Persistent<Value>(); v8 3714 test/cctest/test-api.cc static v8::Handle<Value> XPropertyGetter(Local<String> property, v8 3723 test/cctest/test-api.cc v8::HandleScope scope; v8 3737 test/cctest/test-api.cc v8::HandleScope scope; v8 3767 test/cctest/test-api.cc v8::HandleScope scope; v8 3769 test/cctest/test-api.cc v8::Persistent<Context> context1 = Context::New(); v8 3775 test/cctest/test-api.cc v8::Local<v8::Object> object = templ->NewInstance(); v8 3809 test/cctest/test-api.cc static v8::Handle<Value> SetXOnPrototypeGetter(Local<String> property, v8 3812 test/cctest/test-api.cc v8::Handle<v8::Value> proto = info.Holder()->GetPrototype(); v8 3813 test/cctest/test-api.cc proto.As<v8::Object>()->Set(v8_str("x"), v8::Integer::New(23)); v8 3814 test/cctest/test-api.cc return v8::Handle<Value>(); v8 3821 test/cctest/test-api.cc v8::HandleScope scope; v8 3822 test/cctest/test-api.cc Local<v8::FunctionTemplate> function_template = v8::FunctionTemplate::New(); v8 3823 test/cctest/test-api.cc Local<v8::ObjectTemplate> instance_template v8 3836 test/cctest/test-api.cc static v8::Handle<Value> IndexedPropertyGetter(uint32_t index, v8 3840 test/cctest/test-api.cc return v8::Handle<Value>(v8_num(625)); v8 3842 test/cctest/test-api.cc return v8::Handle<Value>(); v8 3846 test/cctest/test-api.cc static v8::Handle<Value> IndexedPropertySetter(uint32_t index, v8 3853 test/cctest/test-api.cc return v8::Handle<Value>(); v8 3858 test/cctest/test-api.cc v8::HandleScope scope; v8 3887 test/cctest/test-api.cc static v8::Handle<Value> UnboxedDoubleIndexedPropertyGetter( v8 3892 test/cctest/test-api.cc return v8::Handle<Value>(v8_num(index)); v8 3894 test/cctest/test-api.cc return v8::Handle<Value>(); v8 3898 test/cctest/test-api.cc static v8::Handle<Value> UnboxedDoubleIndexedPropertySetter( v8 3904 test/cctest/test-api.cc return v8::Handle<Value>(v8_num(index)); v8 3906 test/cctest/test-api.cc return v8::Handle<Value>(); v8 3910 test/cctest/test-api.cc Handle<v8::Array> UnboxedDoubleIndexedPropertyEnumerator( v8 3918 test/cctest/test-api.cc return Local<v8::Array>(::v8::Array::Cast(*result)); v8 3925 test/cctest/test-api.cc v8::HandleScope scope; v8 3949 test/cctest/test-api.cc Handle<v8::Array> NonStrictArgsIndexedPropertyEnumerator( v8 3959 test/cctest/test-api.cc return Local<v8::Array>(static_cast<v8::Array*>(::v8::Object::Cast(*result))); v8 3963 test/cctest/test-api.cc static v8::Handle<Value> NonStrictIndexedPropertyGetter( v8 3968 test/cctest/test-api.cc return v8::Handle<Value>(v8_num(index)); v8 3970 test/cctest/test-api.cc return v8::Handle<Value>(); v8 3977 test/cctest/test-api.cc v8::HandleScope scope; v8 3995 test/cctest/test-api.cc static v8::Handle<Value> IdentityIndexedPropertyGetter( v8 3998 test/cctest/test-api.cc return v8::Integer::NewFromUnsigned(index); v8 4003 test/cctest/test-api.cc v8::HandleScope scope; v8 4024 test/cctest/test-api.cc v8::HandleScope scope; v8 4047 test/cctest/test-api.cc v8::HandleScope scope; v8 4052 test/cctest/test-api.cc Local<v8::Object> obj = templ->NewInstance(); v8 4072 test/cctest/test-api.cc v8::HandleScope scope; v8 4077 test/cctest/test-api.cc Local<v8::Object> obj = templ->NewInstance(); v8 4101 test/cctest/test-api.cc v8::HandleScope scope; v8 4106 test/cctest/test-api.cc Local<v8::Object> obj = templ->NewInstance(); v8 4124 test/cctest/test-api.cc v8::HandleScope scope; v8 4129 test/cctest/test-api.cc Local<v8::Object> obj = templ->NewInstance(); v8 4163 test/cctest/test-api.cc v8::HandleScope scope; v8 4168 test/cctest/test-api.cc Local<v8::Object> obj = templ->NewInstance(); v8 4192 test/cctest/test-api.cc v8::HandleScope scope; v8 4197 test/cctest/test-api.cc Local<v8::Object> obj = templ->NewInstance(); v8 4222 test/cctest/test-api.cc v8::HandleScope scope; v8 4227 test/cctest/test-api.cc Local<v8::Object> obj = templ->NewInstance(); v8 4252 test/cctest/test-api.cc v8::HandleScope scope; v8 4257 test/cctest/test-api.cc Local<v8::Object> obj = templ->NewInstance(); v8 4276 test/cctest/test-api.cc v8::HandleScope scope; v8 4277 test/cctest/test-api.cc v8::Handle<ObjectTemplate> templ = ObjectTemplate::New(); v8 4278 test/cctest/test-api.cc templ->Set(v8_str("dummy"), v8::FunctionTemplate::New(DummyCallHandler)); v8 4285 test/cctest/test-api.cc v8::Handle<v8::Object> global0 = context0->Global(); v8 4292 test/cctest/test-api.cc v8::Handle<v8::Object> global1 = context1->Global(); v8 4301 test/cctest/test-api.cc v8::Handle<v8::Object> global2 = context2->Global(); v8 4312 test/cctest/test-api.cc v8::HandleScope scope; v8 4315 test/cctest/test-api.cc v8::Handle<v8::Object> global0 = v8 4317 test/cctest/test-api.cc v8::Handle<v8::Object> object0 = v8 4318 test/cctest/test-api.cc global0->Get(v8_str("Object")).As<v8::Object>(); v8 4319 test/cctest/test-api.cc v8::Handle<v8::Object> tostring0 = v8 4320 test/cctest/test-api.cc object0->Get(v8_str("toString")).As<v8::Object>(); v8 4321 test/cctest/test-api.cc v8::Handle<v8::Object> proto0 = v8 4322 test/cctest/test-api.cc tostring0->Get(v8_str("__proto__")).As<v8::Object>(); v8 4326 test/cctest/test-api.cc v8::Handle<v8::Object> global1 = v8 4328 test/cctest/test-api.cc v8::Handle<v8::Object> object1 = v8 4329 test/cctest/test-api.cc global1->Get(v8_str("Object")).As<v8::Object>(); v8 4330 test/cctest/test-api.cc v8::Handle<v8::Object> tostring1 = v8 4331 test/cctest/test-api.cc object1->Get(v8_str("toString")).As<v8::Object>(); v8 4332 test/cctest/test-api.cc v8::Handle<v8::Object> proto1 = v8 4333 test/cctest/test-api.cc tostring1->Get(v8_str("__proto__")).As<v8::Object>(); v8 4345 test/cctest/test-api.cc v8::HandleScope scope; v8 4362 test/cctest/test-api.cc v8::HandleScope scope; v8 4365 test/cctest/test-api.cc Local<v8::FunctionTemplate> desc = v8 4366 test/cctest/test-api.cc v8::FunctionTemplate::New(0, v8::Handle<Value>()); v8 4369 test/cctest/test-api.cc Local<v8::Object> obj = desc->GetFunction()->NewInstance(); v8 4406 test/cctest/test-api.cc v8::HandleScope scope; v8 4409 test/cctest/test-api.cc Local<v8::FunctionTemplate> desc = v8 4410 test/cctest/test-api.cc v8::FunctionTemplate::New(0, v8::Handle<Value>()); v8 4413 test/cctest/test-api.cc Local<v8::Object> obj = desc->GetFunction()->NewInstance(); v8 4450 test/cctest/test-api.cc v8::HandleScope scope; v8 4453 test/cctest/test-api.cc Local<v8::FunctionTemplate> desc = v8 4454 test/cctest/test-api.cc v8::FunctionTemplate::New(0, v8::Handle<Value>()); v8 4457 test/cctest/test-api.cc Local<v8::Object> obj = desc->GetFunction()->NewInstance(); v8 4465 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(42), script->Run()); v8 4483 test/cctest/test-api.cc v8::HandleScope scope; v8 4524 test/cctest/test-api.cc v8::HandleScope scope; v8 4561 test/cctest/test-api.cc v8::Persistent<String> p_str = v8::Persistent<String>::New(str); v8 4564 test/cctest/test-api.cc v8::Persistent<Script> p_scr = v8::Persistent<Script>::New(scr); v8 4567 test/cctest/test-api.cc v8::Persistent<ObjectTemplate> p_templ = v8 4568 test/cctest/test-api.cc v8::Persistent<ObjectTemplate>::New(templ); v8 4573 test/cctest/test-api.cc static v8::Handle<Value> HandleLogDelegator(const v8::Arguments& args) { v8 4575 test/cctest/test-api.cc return v8::Undefined(); v8 4580 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4583 test/cctest/test-api.cc v8::FunctionTemplate::New(HandleLogDelegator)); v8 4584 test/cctest/test-api.cc v8::Persistent<Context> context = Context::New(0, global_template); v8 4598 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4599 test/cctest/test-api.cc v8::RegisterExtension(new Extension("simpletest", kSimpleExtensionSource)); v8 4601 test/cctest/test-api.cc v8::ExtensionConfiguration extensions(1, extension_names); v8 4602 test/cctest/test-api.cc v8::Handle<Context> context = Context::New(&extensions); v8 4604 test/cctest/test-api.cc v8::Handle<Value> result = Script::Compile(v8_str("Foo()"))->Run(); v8 4605 test/cctest/test-api.cc CHECK_EQ(result, v8::Integer::New(4)); v8 4616 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4617 test/cctest/test-api.cc v8::RegisterExtension(new Extension("srclentest_fail", v8 4620 test/cctest/test-api.cc v8::ExtensionConfiguration extensions(1, extension_names); v8 4621 test/cctest/test-api.cc v8::Handle<Context> context = Context::New(&extensions); v8 4629 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4632 test/cctest/test-api.cc v8::RegisterExtension(new Extension(extension_name.start(), v8 4636 test/cctest/test-api.cc v8::ExtensionConfiguration extensions(1, extension_names); v8 4637 test/cctest/test-api.cc v8::Handle<Context> context = Context::New(&extensions); v8 4640 test/cctest/test-api.cc v8::Handle<Value> result = Script::Compile(v8_str("Ret54321()"))->Run(); v8 4641 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(54321), result); v8 4668 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4669 test/cctest/test-api.cc v8::RegisterExtension(new Extension("evaltest1", kEvalExtensionSource1)); v8 4670 test/cctest/test-api.cc v8::RegisterExtension(new Extension("evaltest2", kEvalExtensionSource2)); v8 4672 test/cctest/test-api.cc v8::ExtensionConfiguration extensions(2, extension_names); v8 4673 test/cctest/test-api.cc v8::Handle<Context> context = Context::New(&extensions); v8 4675 test/cctest/test-api.cc v8::Handle<Value> result = Script::Compile(v8_str("UseEval1()"))->Run(); v8 4676 test/cctest/test-api.cc CHECK_EQ(result, v8::Integer::New(42)); v8 4678 test/cctest/test-api.cc CHECK_EQ(result, v8::Integer::New(42)); v8 4701 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4702 test/cctest/test-api.cc v8::RegisterExtension(new Extension("withtest1", kWithExtensionSource1)); v8 4703 test/cctest/test-api.cc v8::RegisterExtension(new Extension("withtest2", kWithExtensionSource2)); v8 4705 test/cctest/test-api.cc v8::ExtensionConfiguration extensions(2, extension_names); v8 4706 test/cctest/test-api.cc v8::Handle<Context> context = Context::New(&extensions); v8 4708 test/cctest/test-api.cc v8::Handle<Value> result = Script::Compile(v8_str("UseWith1()"))->Run(); v8 4709 test/cctest/test-api.cc CHECK_EQ(result, v8::Integer::New(87)); v8 4711 test/cctest/test-api.cc CHECK_EQ(result, v8::Integer::New(87)); v8 4716 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4719 test/cctest/test-api.cc v8::RegisterExtension(extension); v8 4720 test/cctest/test-api.cc v8::Handle<Context> context = Context::New(); v8 4722 test/cctest/test-api.cc v8::Handle<Value> result = Script::Compile(v8_str("Foo()"))->Run(); v8 4723 test/cctest/test-api.cc CHECK_EQ(result, v8::Integer::New(4)); v8 4734 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4735 test/cctest/test-api.cc v8::RegisterExtension(new Extension("syntaxerror", v8 4738 test/cctest/test-api.cc v8::ExtensionConfiguration extensions(1, extension_names); v8 4739 test/cctest/test-api.cc v8::Handle<Context> context = Context::New(&extensions); v8 4751 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4752 test/cctest/test-api.cc v8::RegisterExtension(new Extension("exception", v8 4755 test/cctest/test-api.cc v8::ExtensionConfiguration extensions(1, extension_names); v8 4756 test/cctest/test-api.cc v8::Handle<Context> context = Context::New(&extensions); v8 4772 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4773 test/cctest/test-api.cc v8::RegisterExtension(new Extension("nativecall", v8 4776 test/cctest/test-api.cc v8::ExtensionConfiguration extensions(1, extension_names); v8 4777 test/cctest/test-api.cc v8::Handle<Context> context = Context::New(&extensions); v8 4779 test/cctest/test-api.cc v8::Handle<Value> result = Script::Compile(v8_str(kNativeCallTest))->Run(); v8 4780 test/cctest/test-api.cc CHECK_EQ(result, v8::Integer::New(3)); v8 4792 test/cctest/test-api.cc virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction( v8 4794 test/cctest/test-api.cc return v8::FunctionTemplate::New(function_); v8 4797 test/cctest/test-api.cc static v8::Handle<v8::Value> Echo(const v8::Arguments& args) { v8 4799 test/cctest/test-api.cc return v8::Undefined(); v8 4802 test/cctest/test-api.cc v8::InvocationCallback function_; v8 4807 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4809 test/cctest/test-api.cc v8::RegisterExtension(new NativeFunctionExtension(name, v8 4812 test/cctest/test-api.cc v8::ExtensionConfiguration extensions(1, extension_names); v8 4813 test/cctest/test-api.cc v8::Handle<Context> context = Context::New(&extensions); v8 4815 test/cctest/test-api.cc v8::Handle<Value> result = Script::Compile(v8_str("foo(42);"))->Run(); v8 4816 test/cctest/test-api.cc CHECK_EQ(result, v8::Integer::New(42)); v8 4821 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4824 test/cctest/test-api.cc v8::RegisterExtension(new NativeFunctionExtension(name, v8 4827 test/cctest/test-api.cc v8::ExtensionConfiguration extensions(1, extension_names); v8 4828 test/cctest/test-api.cc v8::Handle<Context> context(Context::New(&extensions)); v8 4834 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4838 test/cctest/test-api.cc v8::RegisterExtension(new NativeFunctionExtension( v8 4842 test/cctest/test-api.cc v8::ExtensionConfiguration extensions(1, extension_names); v8 4843 test/cctest/test-api.cc v8::Handle<Context> context(Context::New(&extensions)); v8 4849 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4850 test/cctest/test-api.cc v8::ExtensionConfiguration config(1, &name); v8 4865 test/cctest/test-api.cc v8::RegisterExtension(new Extension("E", "this.loaded += 'E';", 1, kEDeps)); v8 4867 test/cctest/test-api.cc v8::RegisterExtension(new Extension("D", "this.loaded += 'D';", 2, kDDeps)); v8 4869 test/cctest/test-api.cc v8::RegisterExtension(new Extension("B", "this.loaded += 'B';", 1, kBCDeps)); v8 4870 test/cctest/test-api.cc v8::RegisterExtension(new Extension("C", "this.loaded += 'C';", 1, kBCDeps)); v8 4871 test/cctest/test-api.cc v8::RegisterExtension(new Extension("A", "this.loaded += 'A';")); v8 4877 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4879 test/cctest/test-api.cc v8::ExtensionConfiguration config(2, exts); v8 4896 test/cctest/test-api.cc static v8::Handle<Value> CallFun(const v8::Arguments& args) { v8 4900 test/cctest/test-api.cc return v8::Null(); v8 4909 test/cctest/test-api.cc virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction( v8 4915 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> FunctionExtension::GetNativeFunction( v8 4919 test/cctest/test-api.cc return v8::FunctionTemplate::New(CallFun, v8::Integer::New(8)); v8 4921 test/cctest/test-api.cc return v8::FunctionTemplate::New(CallFun, v8::Integer::New(7)); v8 4923 test/cctest/test-api.cc return v8::FunctionTemplate::New(CallFun, v8::Integer::New(6)); v8 4925 test/cctest/test-api.cc return v8::Handle<v8::FunctionTemplate>(); v8 4931 test/cctest/test-api.cc v8::RegisterExtension(new FunctionExtension()); v8 4932 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4934 test/cctest/test-api.cc v8::ExtensionConfiguration config(1, exts); v8 4937 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(8), Script::Compile(v8_str("Foo(0)"))->Run()); v8 4938 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(7), Script::Compile(v8_str("Foo(1)"))->Run()); v8 4939 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(6), Script::Compile(v8_str("Foo(2)"))->Run()); v8 4944 test/cctest/test-api.cc v8::RegisterExtension(new FunctionExtension()); v8 4945 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 4947 test/cctest/test-api.cc v8::ExtensionConfiguration config(1, exts); v8 4952 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(8), v8 4954 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(7), v8 4956 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(6), v8 4976 test/cctest/test-api.cc v8::V8::SetFatalErrorHandler(StoringErrorCallback); v8 4978 test/cctest/test-api.cc v8::RegisterExtension(new Extension("A", "", 1, aDeps)); v8 4980 test/cctest/test-api.cc v8::RegisterExtension(new Extension("B", "", 1, bDeps)); v8 4982 test/cctest/test-api.cc v8::ExtensionConfiguration config(1, bDeps); v8 4983 test/cctest/test-api.cc v8::Handle<Context> context = Context::New(&config); v8 5004 test/cctest/test-api.cc v8::HandleScope scope; v8 5005 test/cctest/test-api.cc v8::V8::SetFatalErrorHandler(OOMCallback); v8 5018 test/cctest/test-api.cc CHECK_EQ(v8::Undefined(), data); v8 5020 test/cctest/test-api.cc CHECK_EQ(v8::Undefined(), message->GetScriptResourceName()); v8 5027 test/cctest/test-api.cc v8::HandleScope scope; v8 5029 test/cctest/test-api.cc v8::V8::AddMessageListener(MissingScriptInfoMessageListener); v8 5031 test/cctest/test-api.cc v8::V8::RemoveMessageListeners(MissingScriptInfoMessageListener); v8 5051 test/cctest/test-api.cc v8::Handle<Script> getScript() { v8 5053 test/cctest/test-api.cc script_ = v8::Persistent<Script>::New(v8_compile("({}).blammo")); v8 5060 test/cctest/test-api.cc v8::Persistent<v8::Object> objects_[kObjectCount]; v8 5061 test/cctest/test-api.cc v8::Persistent<Script> script_; v8 5070 test/cctest/test-api.cc v8::Handle<Value> WhammyPropertyGetter(Local<String> name, v8 5073 test/cctest/test-api.cc static_cast<Whammy*>(v8::Handle<v8::External>::Cast(info.Data())->Value()); v8 5075 test/cctest/test-api.cc v8::Persistent<v8::Object> prev = whammy->objects_[whammy->cursor_]; v8 5077 test/cctest/test-api.cc v8::Handle<v8::Object> obj = v8::Object::New(); v8 5078 test/cctest/test-api.cc v8::Persistent<v8::Object> global = v8::Persistent<v8::Object>::New(obj); v8 5090 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 5091 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ= v8::ObjectTemplate::New(); v8 5095 test/cctest/test-api.cc v8::External::New(whammy)); v8 5097 test/cctest/test-api.cc v8::ExtensionConfiguration extensions(1, extension_list); v8 5098 test/cctest/test-api.cc v8::Persistent<Context> context = Context::New(&extensions); v8 5101 test/cctest/test-api.cc v8::Handle<v8::Object> interceptor = templ->NewInstance(); v8 5112 test/cctest/test-api.cc v8::Handle<Value> result = CompileRun(code); v8 5127 test/cctest/test-api.cc v8::Persistent<Context> context = Context::New(); v8 5130 test/cctest/test-api.cc v8::Persistent<v8::Object> object_a; v8 5133 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 5134 test/cctest/test-api.cc object_a = v8::Persistent<v8::Object>::New(v8::Object::New()); v8 5172 test/cctest/test-api.cc v8::Persistent<Context> context = Context::New(); v8 5176 test/cctest/test-api.cc v8::WeakReferenceCallback gc_forcing_callback[kNumberOfGCTypes] = v8 5184 test/cctest/test-api.cc v8::Persistent<v8::Object> object; v8 5186 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 5187 test/cctest/test-api.cc object = v8::Persistent<v8::Object>::New(v8::Object::New()); v8 5206 test/cctest/test-api.cc v8::Persistent<Context> context = Context::New(); v8 5209 test/cctest/test-api.cc v8::Persistent<v8::Object> object; v8 5211 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 5212 test/cctest/test-api.cc object = v8::Persistent<v8::Object>::New(v8::Object::New()); v8 5213 test/cctest/test-api.cc object->Set(v8_str("x"), v8::Integer::New(1)); v8 5214 test/cctest/test-api.cc v8::Local<String> y_str = v8_str("y"); v8 5224 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 5225 test/cctest/test-api.cc v8::Local<String> y_str = v8_str("y"); v8 5226 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(1), object->Get(v8_str("x"))); v8 5232 test/cctest/test-api.cc v8::Handle<Function> args_fun; v8 5235 test/cctest/test-api.cc static v8::Handle<Value> ArgumentsTestCallback(const v8::Arguments& args) { v8 5239 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(1), args[0]); v8 5240 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(2), args[1]); v8 5241 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(3), args[2]); v8 5242 test/cctest/test-api.cc CHECK_EQ(v8::Undefined(), args[3]); v8 5243 test/cctest/test-api.cc v8::HandleScope scope; v8 5245 test/cctest/test-api.cc return v8::Undefined(); v8 5250 test/cctest/test-api.cc v8::HandleScope scope; v8 5251 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> global = ObjectTemplate::New(); v8 5252 test/cctest/test-api.cc global->Set(v8_str("f"), v8::FunctionTemplate::New(ArgumentsTestCallback)); v8 5259 test/cctest/test-api.cc static v8::Handle<Value> NoBlockGetterX(Local<String> name, v8 5261 test/cctest/test-api.cc return v8::Handle<Value>(); v8 5265 test/cctest/test-api.cc static v8::Handle<Value> NoBlockGetterI(uint32_t index, v8 5267 test/cctest/test-api.cc return v8::Handle<Value>(); v8 5271 test/cctest/test-api.cc static v8::Handle<v8::Boolean> PDeleter(Local<String> name, v8 5274 test/cctest/test-api.cc return v8::Handle<v8::Boolean>(); // not intercepted v8 5277 test/cctest/test-api.cc return v8::False(); // intercepted, and don't delete the property v8 5281 test/cctest/test-api.cc static v8::Handle<v8::Boolean> IDeleter(uint32_t index, const AccessorInfo&) { v8 5283 test/cctest/test-api.cc return v8::Handle<v8::Boolean>(); // not intercepted v8 5286 test/cctest/test-api.cc return v8::False(); // intercepted, and don't delete the property v8 5291 test/cctest/test-api.cc v8::HandleScope scope; v8 5292 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); v8 5316 test/cctest/test-api.cc static v8::Handle<Value> GetK(Local<String> name, const AccessorInfo&) { v8 5321 test/cctest/test-api.cc return v8::Undefined(); v8 5323 test/cctest/test-api.cc return v8::Handle<Value>(); v8 5327 test/cctest/test-api.cc static v8::Handle<Value> IndexedGetK(uint32_t index, const AccessorInfo&) { v8 5329 test/cctest/test-api.cc if (index == 0 || index == 1) return v8::Undefined(); v8 5330 test/cctest/test-api.cc return v8::Handle<Value>(); v8 5334 test/cctest/test-api.cc static v8::Handle<v8::Array> NamedEnum(const AccessorInfo&) { v8 5336 test/cctest/test-api.cc v8::Handle<v8::Array> result = v8::Array::New(3); v8 5337 test/cctest/test-api.cc result->Set(v8::Integer::New(0), v8_str("foo")); v8 5338 test/cctest/test-api.cc result->Set(v8::Integer::New(1), v8_str("bar")); v8 5339 test/cctest/test-api.cc result->Set(v8::Integer::New(2), v8_str("baz")); v8 5344 test/cctest/test-api.cc static v8::Handle<v8::Array> IndexedEnum(const AccessorInfo&) { v8 5346 test/cctest/test-api.cc v8::Handle<v8::Array> result = v8::Array::New(2); v8 5347 test/cctest/test-api.cc result->Set(v8::Integer::New(0), v8_str("0")); v8 5348 test/cctest/test-api.cc result->Set(v8::Integer::New(1), v8_str("1")); v8 5354 test/cctest/test-api.cc v8::HandleScope scope; v8 5355 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); v8 5360 test/cctest/test-api.cc v8::Handle<v8::Array> result = v8::Handle<v8::Array>::Cast(CompileRun( v8 5386 test/cctest/test-api.cc CHECK_EQ(v8_str("5"), result->Get(v8::Integer::New(0))); v8 5387 test/cctest/test-api.cc CHECK_EQ(v8_str("10"), result->Get(v8::Integer::New(1))); v8 5388 test/cctest/test-api.cc CHECK_EQ(v8_str("140000"), result->Get(v8::Integer::New(2))); v8 5389 test/cctest/test-api.cc CHECK_EQ(v8_str("4294967295"), result->Get(v8::Integer::New(3))); v8 5392 test/cctest/test-api.cc CHECK_EQ(v8_str("0"), result->Get(v8::Integer::New(4))); v8 5393 test/cctest/test-api.cc CHECK_EQ(v8_str("1"), result->Get(v8::Integer::New(5))); v8 5395 test/cctest/test-api.cc CHECK_EQ(v8_str("a"), result->Get(v8::Integer::New(6))); v8 5396 test/cctest/test-api.cc CHECK_EQ(v8_str("b"), result->Get(v8::Integer::New(7))); v8 5397 test/cctest/test-api.cc CHECK_EQ(v8_str("c"), result->Get(v8::Integer::New(8))); v8 5398 test/cctest/test-api.cc CHECK_EQ(v8_str("4294967296"), result->Get(v8::Integer::New(9))); v8 5399 test/cctest/test-api.cc CHECK_EQ(v8_str("d"), result->Get(v8::Integer::New(10))); v8 5400 test/cctest/test-api.cc CHECK_EQ(v8_str("e"), result->Get(v8::Integer::New(11))); v8 5401 test/cctest/test-api.cc CHECK_EQ(v8_str("30000000000"), result->Get(v8::Integer::New(12))); v8 5402 test/cctest/test-api.cc CHECK_EQ(v8_str("f"), result->Get(v8::Integer::New(13))); v8 5404 test/cctest/test-api.cc CHECK_EQ(v8_str("foo"), result->Get(v8::Integer::New(14))); v8 5405 test/cctest/test-api.cc CHECK_EQ(v8_str("bar"), result->Get(v8::Integer::New(15))); v8 5406 test/cctest/test-api.cc CHECK_EQ(v8_str("baz"), result->Get(v8::Integer::New(16))); v8 5414 test/cctest/test-api.cc static v8::Handle<Value> PGetter(Local<String> name, const AccessorInfo& info) { v8 5417 test/cctest/test-api.cc v8::Handle<v8::Object> global = Context::GetCurrent()->Global(); v8 5428 test/cctest/test-api.cc return v8::Undefined(); v8 5448 test/cctest/test-api.cc static v8::Handle<Value> PGetter2(Local<String> name, v8 5452 test/cctest/test-api.cc v8::Handle<v8::Object> global = Context::GetCurrent()->Global(); v8 5463 test/cctest/test-api.cc return v8::Undefined(); v8 5468 test/cctest/test-api.cc v8::HandleScope scope; v8 5469 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); v8 5481 test/cctest/test-api.cc v8::HandleScope scope; v8 5482 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); v8 5491 test/cctest/test-api.cc v8::HandleScope scope; v8 5492 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 5497 test/cctest/test-api.cc v8::HandleScope inner_scope; v8 5498 test/cctest/test-api.cc v8::Handle<v8::Object> obj = templ->NewInstance(); v8 5501 test/cctest/test-api.cc v8::Handle<Value> value = v8 5503 test/cctest/test-api.cc CHECK_EQ(v8::True(), value); v8 5533 test/cctest/test-api.cc i::Handle<i::String> istr(v8::Utils::OpenHandle(*str)); v8 5543 test/cctest/test-api.cc v8::HandleScope scope; v8 5544 test/cctest/test-api.cc v8::Handle<String> str = v8_str("abcde"); v8 5546 test/cctest/test-api.cc v8::Handle<String> str2 = v8_str("abc\303\260\342\230\203"); v8 5558 test/cctest/test-api.cc v8::Handle<v8::Object> global = Context::GetCurrent()->Global(); v8 5765 test/cctest/test-api.cc Local<v8::Array> a = v8 5766 test/cctest/test-api.cc Local<v8::Array>::Cast(context->Global()->Get(v8_str(name))); v8 5767 test/cctest/test-api.cc Local<v8::Array> alens = v8 5768 test/cctest/test-api.cc Local<v8::Array>::Cast(context->Global()->Get(v8_str(lengths_name))); v8 5770 test/cctest/test-api.cc Local<v8::String> string = v8 5771 test/cctest/test-api.cc Local<v8::String>::Cast(a->Get(i)); v8 5772 test/cctest/test-api.cc Local<v8::Number> expected_len = v8 5773 test/cctest/test-api.cc Local<v8::Number>::Cast(alens->Get(i)); v8 5784 test/cctest/test-api.cc v8::Utils::OpenHandle(String::Cast(*str)); v8 5794 test/cctest/test-api.cc Local<v8::Array> b = v8 5795 test/cctest/test-api.cc Local<v8::Array>::Cast(context->Global()->Get(v8_str(name))); v8 5796 test/cctest/test-api.cc Local<v8::Array> alens = v8 5797 test/cctest/test-api.cc Local<v8::Array>::Cast(context->Global()->Get(v8_str(lengths_name))); v8 5801 test/cctest/test-api.cc Local<v8::String> string = v8 5802 test/cctest/test-api.cc Local<v8::String>::Cast(b->Get(i)); v8 5803 test/cctest/test-api.cc Local<v8::Number> expected_len = v8 5804 test/cctest/test-api.cc Local<v8::Number>::Cast(alens->Get(i)); v8 5862 test/cctest/test-api.cc v8::HandleScope scope; v8 5913 test/cctest/test-api.cc i::Handle<i::String> is1(v8::Utils::OpenHandle(*s1)); v8 5914 test/cctest/test-api.cc i::Handle<i::String> is2(v8::Utils::OpenHandle(*s2)); v8 5920 test/cctest/test-api.cc Handle<String> symbol1 = v8::String::NewSymbol(a); v8 5921 test/cctest/test-api.cc Handle<String> symbol2 = v8::String::NewSymbol(b); v8 5928 test/cctest/test-api.cc v8::HandleScope scope; v8 5930 test/cctest/test-api.cc Handle<String> symbol1 = v8::String::NewSymbol("abc"); v8 5931 test/cctest/test-api.cc Handle<String> symbol2 = v8::String::NewSymbol("abc"); v8 5957 test/cctest/test-api.cc Handle<String> sym0 = v8::String::NewSymbol("benedictus"); v8 5958 test/cctest/test-api.cc Handle<String> sym0b = v8::String::NewSymbol("S\303\270ren"); v8 5959 test/cctest/test-api.cc Handle<String> sym1 = v8::String::NewSymbol("\355\240\201\355\260\207"); v8 5960 test/cctest/test-api.cc Handle<String> sym2 = v8::String::NewSymbol("\360\220\220\210"); v8 5961 test/cctest/test-api.cc Handle<String> sym3 = v8::String::NewSymbol("x\355\240\201\355\260\207"); v8 5962 test/cctest/test-api.cc Handle<String> sym4 = v8::String::NewSymbol("x\360\220\220\210"); v8 5963 test/cctest/test-api.cc v8::Local<v8::Object> global = context->Global(); v8 5980 test/cctest/test-api.cc v8::HandleScope scope; v8 5983 test/cctest/test-api.cc v8::Handle<String> str = v8_str("42"); v8 5984 test/cctest/test-api.cc v8::Handle<v8::Uint32> index = str->ToArrayIndex(); v8 5997 test/cctest/test-api.cc v8::Handle<v8::Number> num = v8::Number::New(1); v8 6001 test/cctest/test-api.cc num = v8::Number::New(-1); v8 6004 test/cctest/test-api.cc v8::Handle<v8::Object> obj = v8::Object::New(); v8 6011 test/cctest/test-api.cc v8::HandleScope scope; v8 6014 test/cctest/test-api.cc v8::Handle<String> foo = v8_str("foo"); v8 6015 test/cctest/test-api.cc v8::Handle<String> message = v8_str("message"); v8 6016 test/cctest/test-api.cc v8::Handle<Value> range_error = v8::Exception::RangeError(foo); v8 6018 test/cctest/test-api.cc CHECK(range_error.As<v8::Object>()->Get(message)->Equals(foo)); v8 6019 test/cctest/test-api.cc v8::Handle<Value> reference_error = v8::Exception::ReferenceError(foo); v8 6021 test/cctest/test-api.cc CHECK(reference_error.As<v8::Object>()->Get(message)->Equals(foo)); v8 6022 test/cctest/test-api.cc v8::Handle<Value> syntax_error = v8::Exception::SyntaxError(foo); v8 6024 test/cctest/test-api.cc CHECK(syntax_error.As<v8::Object>()->Get(message)->Equals(foo)); v8 6025 test/cctest/test-api.cc v8::Handle<Value> type_error = v8::Exception::TypeError(foo); v8 6027 test/cctest/test-api.cc CHECK(type_error.As<v8::Object>()->Get(message)->Equals(foo)); v8 6028 test/cctest/test-api.cc v8::Handle<Value> error = v8::Exception::Error(foo); v8 6030 test/cctest/test-api.cc CHECK(error.As<v8::Object>()->Get(message)->Equals(foo)); v8 6034 test/cctest/test-api.cc static v8::Handle<Value> YGetter(Local<String> name, const AccessorInfo& info) { v8 6051 test/cctest/test-api.cc v8::HandleScope scope; v8 6052 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> obj = ObjectTemplate::New(); v8 6055 test/cctest/test-api.cc v8::Handle<v8::Object> holder = obj->NewInstance(); v8 6057 test/cctest/test-api.cc v8::Handle<Value> result = CompileRun( v8 6064 test/cctest/test-api.cc v8::HandleScope scope; v8 6065 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> templ1 = v8::FunctionTemplate::New(); v8 6066 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> templ2 = v8::FunctionTemplate::New(); v8 6067 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> templ3 = v8::FunctionTemplate::New(); v8 6068 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> templs[3] = { templ1, templ2, templ3 }; v8 6069 test/cctest/test-api.cc v8::Handle<v8::TypeSwitch> type_switch = v8::TypeSwitch::New(3, templs); v8 6071 test/cctest/test-api.cc v8::Handle<v8::Object> obj0 = v8::Object::New(); v8 6072 test/cctest/test-api.cc v8::Handle<v8::Object> obj1 = templ1->GetFunction()->NewInstance(); v8 6073 test/cctest/test-api.cc v8::Handle<v8::Object> obj2 = templ2->GetFunction()->NewInstance(); v8 6074 test/cctest/test-api.cc v8::Handle<v8::Object> obj3 = templ3->GetFunction()->NewInstance(); v8 6095 test/cctest/test-api.cc if (type == v8::ACCESS_GET) v8 6108 test/cctest/test-api.cc if (type == v8::ACCESS_GET) v8 6117 test/cctest/test-api.cc static v8::Handle<Value> TroubleCallback(const v8::Arguments& args) { v8 6122 test/cctest/test-api.cc Local<v8::Object> arg_this = Context::GetCurrent()->Global(); v8 6142 test/cctest/test-api.cc v8::HandleScope scope; v8 6144 test/cctest/test-api.cc v8::V8::AddMessageListener(ApiUncaughtExceptionTestListener); v8 6146 test/cctest/test-api.cc Local<v8::FunctionTemplate> fun = v8::FunctionTemplate::New(TroubleCallback); v8 6147 test/cctest/test-api.cc v8::Local<v8::Object> global = env->Global(); v8 6165 test/cctest/test-api.cc v8::V8::RemoveMessageListeners(ApiUncaughtExceptionTestListener); v8 6171 test/cctest/test-api.cc v8::Handle<v8::Value> name_val = message->GetScriptResourceName(); v8 6173 test/cctest/test-api.cc v8::String::AsciiValue name(message->GetScriptResourceName()); v8 6176 test/cctest/test-api.cc v8::String::AsciiValue source_line(message->GetSourceLine()); v8 6181 test/cctest/test-api.cc v8::HandleScope scope; v8 6183 test/cctest/test-api.cc v8::V8::AddMessageListener(ExceptionInNativeScriptTestListener); v8 6185 test/cctest/test-api.cc Local<v8::FunctionTemplate> fun = v8::FunctionTemplate::New(TroubleCallback); v8 6186 test/cctest/test-api.cc v8::Local<v8::Object> global = env->Global(); v8 6192 test/cctest/test-api.cc "};"), v8::String::New(script_resource_name))->Run(); v8 6196 test/cctest/test-api.cc v8::V8::RemoveMessageListeners(ExceptionInNativeScriptTestListener); v8 6201 test/cctest/test-api.cc v8::HandleScope scope; v8 6203 test/cctest/test-api.cc v8::TryCatch try_catch; v8 6211 test/cctest/test-api.cc v8::HandleScope scope; v8 6213 test/cctest/test-api.cc v8::TryCatch try_catch; v8 6232 test/cctest/test-api.cc v8::HandleScope scope0; v8 6233 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New(); v8 6237 test/cctest/test-api.cc v8::Persistent<Context> context0 = v8 6241 test/cctest/test-api.cc v8::Handle<v8::Object> global0 = context0->Global(); v8 6242 test/cctest/test-api.cc v8::Handle<Script> script0 = v8_compile("foo = 111"); v8 6245 test/cctest/test-api.cc v8::Handle<Value> foo0 = global0->Get(v8_str("foo")); v8 6247 test/cctest/test-api.cc v8::Handle<Value> z0 = global0->Get(v8_str("0")); v8 6251 test/cctest/test-api.cc v8::HandleScope scope1; v8 6253 test/cctest/test-api.cc v8::Persistent<Context> context1 = v8 6257 test/cctest/test-api.cc v8::Handle<v8::Object> global1 = context1->Global(); v8 6260 test/cctest/test-api.cc v8::Handle<Script> script1 = v8 6264 test/cctest/test-api.cc v8::Handle<Value> foo1 = global0->Get(v8_str("foo")); v8 6267 test/cctest/test-api.cc v8::Handle<Value> z1 = global0->Get(v8_str("0")); v8 6272 test/cctest/test-api.cc v8::HandleScope scope2; v8 6274 test/cctest/test-api.cc v8::Handle<v8::Object> global2 = context2->Global(); v8 6276 test/cctest/test-api.cc v8::Handle<Script> script2 = v8 6279 test/cctest/test-api.cc v8::Handle<Value> foo2 = global0->Get(v8_str("foo")); v8 6281 test/cctest/test-api.cc v8::Handle<Value> z2 = global0->Get(v8_str("0")); v8 6294 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 6296 test/cctest/test-api.cc v8::Persistent<Context> env2 = Context::New(); v8 6328 test/cctest/test-api.cc v8::TryCatch try_catch; v8 6339 test/cctest/test-api.cc v8::HandleScope scope; v8 6341 test/cctest/test-api.cc v8::Persistent<Context> other = Context::New(); v8 6345 test/cctest/test-api.cc v8::Local<Value> other_object; v8 6357 test/cctest/test-api.cc v8::Local<Script> access_other0 = v8_compile("other.Object"); v8 6358 test/cctest/test-api.cc v8::Local<Script> access_other1 = v8_compile("other[42]"); v8 6372 test/cctest/test-api.cc v8::Local<Script> access_f0 = v8_compile("f.Object"); v8 6373 test/cctest/test-api.cc v8::Local<Script> access_f1 = v8_compile("f[42]"); v8 6407 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 6409 test/cctest/test-api.cc v8::Persistent<Context> env2 = Context::New(); v8 6440 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 6442 test/cctest/test-api.cc v8::Persistent<Context> env2 = Context::New(); v8 6475 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 6477 test/cctest/test-api.cc v8::Persistent<Context> env2 = Context::New(); v8 6508 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 6510 test/cctest/test-api.cc v8::Persistent<Context> env2 = Context::New(); v8 6512 test/cctest/test-api.cc Local<v8::Object> global1 = env1->Global(); v8 6524 test/cctest/test-api.cc Local<v8::Object> global2 = env2->Global(); v8 6525 test/cctest/test-api.cc global2->Set(v8_str("prop"), v8::Integer::New(1)); v8 6537 test/cctest/test-api.cc v8::Persistent<Context> env3 = v8 6538 test/cctest/test-api.cc Context::New(0, v8::Handle<v8::ObjectTemplate>(), global2); v8 6542 test/cctest/test-api.cc Local<v8::Object> global3 = env3->Global(); v8 6546 test/cctest/test-api.cc global3->Set(v8_str("prop"), v8::Integer::New(-1)); v8 6547 test/cctest/test-api.cc global3->Set(v8_str("prop2"), v8::Integer::New(2)); v8 6554 test/cctest/test-api.cc v8::TryCatch try_catch; v8 6572 test/cctest/test-api.cc v8::HandleScope scope; v8 6576 test/cctest/test-api.cc v8::Persistent<Context> env2 = Context::New(); v8 6586 test/cctest/test-api.cc v8::Context::Scope scope(env2); v8 6587 test/cctest/test-api.cc env2->Global()->Set(v8_str("p"), v8::Integer::New(42)); v8 6599 test/cctest/test-api.cc Local<v8::Object> global2 = env2->Global(); v8 6608 test/cctest/test-api.cc v8::Persistent<Context> env3 = v8 6609 test/cctest/test-api.cc Context::New(0, v8::Handle<v8::ObjectTemplate>(), global2); v8 6617 test/cctest/test-api.cc v8::Context::Scope scope(env3); v8 6618 test/cctest/test-api.cc env3->Global()->Set(v8_str("p"), v8::Integer::New(24)); v8 6650 test/cctest/test-api.cc static bool allowed_access_type[v8::ACCESS_KEYS + 1] = { false }; v8 6670 test/cctest/test-api.cc static v8::Handle<Value> EchoGetter(Local<String> name, v8 6684 test/cctest/test-api.cc static v8::Handle<Value> UnreachableGetter(Local<String> name, v8 6687 test/cctest/test-api.cc return v8::Undefined(); v8 6698 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 6699 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New(); v8 6708 test/cctest/test-api.cc v8::Handle<Value>(), v8 6709 test/cctest/test-api.cc v8::AccessControl(v8::ALL_CAN_READ | v8::ALL_CAN_WRITE)); v8 6714 test/cctest/test-api.cc v8::Handle<Value>(), v8 6715 test/cctest/test-api.cc v8::DEFAULT); v8 6718 test/cctest/test-api.cc v8::Persistent<Context> context0 = Context::New(NULL, global_template); v8 6721 test/cctest/test-api.cc v8::Handle<v8::Object> global0 = context0->Global(); v8 6744 test/cctest/test-api.cc v8::HandleScope scope1; v8 6746 test/cctest/test-api.cc v8::Persistent<Context> context1 = Context::New(); v8 6749 test/cctest/test-api.cc v8::Handle<v8::Object> global1 = context1->Global(); v8 6761 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = true; v8 6768 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = false; v8 6778 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = true; v8 6784 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = false; v8 6794 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = true; v8 6802 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = false; v8 6805 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = true; v8 6806 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_GET] = true; v8 6816 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_GET] = false; v8 6817 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = false; v8 6820 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = true; v8 6821 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_SET] = true; v8 6831 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_SET] = false; v8 6832 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = false; v8 6835 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = true; v8 6836 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_GET] = true; v8 6837 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_SET] = true; v8 6847 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_SET] = false; v8 6848 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_GET] = false; v8 6849 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = false; v8 6858 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = true; v8 6863 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = false; v8 6866 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = true; v8 6867 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_GET] = true; v8 6874 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_GET] = false; v8 6875 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = false; v8 6878 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = true; v8 6879 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_SET] = true; v8 6886 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_SET] = false; v8 6887 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = false; v8 6890 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = true; v8 6891 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_GET] = true; v8 6892 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_SET] = true; v8 6899 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_SET] = false; v8 6900 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_GET] = false; v8 6901 test/cctest/test-api.cc allowed_access_type[v8::ACCESS_HAS] = false; v8 6903 test/cctest/test-api.cc v8::Handle<Value> value; v8 6942 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 6943 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New(); v8 6952 test/cctest/test-api.cc v8::Handle<Value>(), v8 6953 test/cctest/test-api.cc v8::AccessControl(v8::ALL_CAN_READ | v8::ALL_CAN_WRITE)); v8 6959 test/cctest/test-api.cc v8::Handle<Value>(), v8 6960 test/cctest/test-api.cc v8::DEFAULT); v8 6963 test/cctest/test-api.cc v8::Persistent<Context> context0 = Context::New(NULL, global_template); v8 6966 test/cctest/test-api.cc v8::Handle<v8::Object> global0 = context0->Global(); v8 6968 test/cctest/test-api.cc v8::Persistent<Context> context1 = Context::New(); v8 6970 test/cctest/test-api.cc v8::Handle<v8::Object> global1 = context1->Global(); v8 7003 test/cctest/test-api.cc v8::Handle<Value> value; v8 7028 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7029 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> obj_template = v8::ObjectTemplate::New(); v8 7031 test/cctest/test-api.cc obj_template->Set(v8_str("x"), v8::Integer::New(42)); v8 7036 test/cctest/test-api.cc v8::Persistent<Context> context0 = Context::New(NULL, obj_template); v8 7039 test/cctest/test-api.cc v8::Handle<v8::Object> global0 = context0->Global(); v8 7041 test/cctest/test-api.cc v8::HandleScope scope1; v8 7043 test/cctest/test-api.cc v8::Persistent<Context> context1 = Context::New(); v8 7046 test/cctest/test-api.cc v8::Handle<v8::Object> global1 = context1->Global(); v8 7050 test/cctest/test-api.cc v8::Handle<Value> value; v8 7070 test/cctest/test-api.cc static v8::Handle<v8::Array> NamedPropertyEnumerator(const AccessorInfo& info) { v8 7071 test/cctest/test-api.cc v8::Handle<v8::Array> result = v8::Array::New(1); v8 7078 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7079 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> obj_template = v8::ObjectTemplate::New(); v8 7081 test/cctest/test-api.cc obj_template->Set(v8_str("x"), v8::Integer::New(42)); v8 7086 test/cctest/test-api.cc v8::Handle<v8::Object> global = context->Global(); v8 7089 test/cctest/test-api.cc v8::Handle<Value> value = v8 7095 test/cctest/test-api.cc static v8::Handle<Value> ConstTenGetter(Local<String> name, v8 7102 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7104 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> func_template = v8::FunctionTemplate::New(); v8 7106 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> global_template = v8 7109 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> proto_template = v8 7115 test/cctest/test-api.cc v8::Handle<Value>(), v8 7116 test/cctest/test-api.cc v8::ALL_CAN_READ); v8 7121 test/cctest/test-api.cc v8::Handle<Value>(), v8 7122 test/cctest/test-api.cc v8::DEFAULT); v8 7124 test/cctest/test-api.cc v8::Persistent<Context> context0 = Context::New(NULL, global_template); v8 7127 test/cctest/test-api.cc Local<v8::Object> global = context0->Global(); v8 7132 test/cctest/test-api.cc v8::HandleScope scope1; v8 7133 test/cctest/test-api.cc v8::Persistent<Context> context1 = Context::New(); v8 7136 test/cctest/test-api.cc v8::Handle<v8::Object> global1 = context1->Global(); v8 7140 test/cctest/test-api.cc v8::Handle<Value> value = v8_compile("other.accessible")->Run(); v8 7180 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7183 test/cctest/test-api.cc v8::Persistent<Context> context0 = Context::New(); v8 7188 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> object_template = v8::ObjectTemplate::New(); v8 7191 test/cctest/test-api.cc Local<v8::Object> object = object_template->NewInstance(); v8 7193 test/cctest/test-api.cc v8::HandleScope scope1; v8 7196 test/cctest/test-api.cc v8::Persistent<Context> context1 = Context::New(); v8 7200 test/cctest/test-api.cc v8::Handle<v8::Object> global1 = context1->Global(); v8 7203 test/cctest/test-api.cc v8::Handle<Value> value; v8 7329 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7332 test/cctest/test-api.cc v8::Persistent<Context> context0 = Context::New(); v8 7337 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> object_template = v8::ObjectTemplate::New(); v8 7340 test/cctest/test-api.cc Local<v8::Object> object = object_template->NewInstance(); v8 7342 test/cctest/test-api.cc v8::HandleScope scope1; v8 7345 test/cctest/test-api.cc v8::Persistent<Context> context1 = Context::New(); v8 7349 test/cctest/test-api.cc v8::Handle<v8::Object> global1 = context1->Global(); v8 7352 test/cctest/test-api.cc v8::Handle<Value> value; v8 7364 test/cctest/test-api.cc static v8::Handle<Value> AccessControlNamedGetter( v8 7366 test/cctest/test-api.cc return v8::Integer::New(42); v8 7370 test/cctest/test-api.cc static v8::Handle<Value> AccessControlNamedSetter( v8 7376 test/cctest/test-api.cc static v8::Handle<Value> AccessControlIndexedGetter( v8 7383 test/cctest/test-api.cc static v8::Handle<Value> AccessControlIndexedSetter( v8 7393 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7396 test/cctest/test-api.cc v8::Persistent<Context> context0 = Context::New(); v8 7402 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> object_template = v8::ObjectTemplate::New(); v8 7409 test/cctest/test-api.cc Local<v8::Object> object = object_template->NewInstance(); v8 7411 test/cctest/test-api.cc v8::HandleScope scope1; v8 7414 test/cctest/test-api.cc v8::Persistent<Context> context1 = Context::New(); v8 7418 test/cctest/test-api.cc v8::Handle<v8::Object> global1 = context1->Global(); v8 7421 test/cctest/test-api.cc v8::Handle<Value> value; v8 7457 test/cctest/test-api.cc v8::V8::GetVersion(); v8 7461 test/cctest/test-api.cc static v8::Handle<Value> InstanceFunctionCallback(const v8::Arguments& args) { v8 7468 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7471 test/cctest/test-api.cc Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New(); v8 7476 test/cctest/test-api.cc v8::FunctionTemplate::New(InstanceFunctionCallback)); v8 7489 test/cctest/test-api.cc static v8::Handle<Value> v8 7492 test/cctest/test-api.cc return v8::Handle<Value>(); v8 7497 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7501 test/cctest/test-api.cc Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New(); v8 7507 test/cctest/test-api.cc v8::FunctionTemplate::New(InstanceFunctionCallback)); v8 7553 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7557 test/cctest/test-api.cc Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New(); v8 7592 test/cctest/test-api.cc static v8::Handle<Value> ShadowFunctionCallback(const v8::Arguments& args) { v8 7609 test/cctest/test-api.cc static v8::Handle<Value> ShadowYGetter(Local<String> name, v8 7617 test/cctest/test-api.cc static v8::Handle<Value> ShadowIndexedGet(uint32_t index, v8 7619 test/cctest/test-api.cc return v8::Handle<Value>(); v8 7623 test/cctest/test-api.cc static v8::Handle<Value> ShadowNamedGet(Local<String> key, v8 7625 test/cctest/test-api.cc return v8::Handle<Value>(); v8 7631 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7633 test/cctest/test-api.cc Local<ObjectTemplate> global_template = v8::ObjectTemplate::New(); v8 7636 test/cctest/test-api.cc Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New(); v8 7643 test/cctest/test-api.cc Local<v8::Signature> signature = v8::Signature::New(t); v8 7645 test/cctest/test-api.cc v8::FunctionTemplate::New(ShadowFunctionCallback, v8 7675 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7678 test/cctest/test-api.cc Local<v8::FunctionTemplate> t0 = v8::FunctionTemplate::New(); v8 7680 test/cctest/test-api.cc Local<v8::FunctionTemplate> t1 = v8::FunctionTemplate::New(); v8 7683 test/cctest/test-api.cc Local<v8::FunctionTemplate> t2 = v8::FunctionTemplate::New(); v8 7686 test/cctest/test-api.cc Local<v8::FunctionTemplate> t3 = v8::FunctionTemplate::New(); v8 7689 test/cctest/test-api.cc Local<v8::Object> o0 = t0->GetFunction()->NewInstance(); v8 7690 test/cctest/test-api.cc Local<v8::Object> o1 = t1->GetFunction()->NewInstance(); v8 7691 test/cctest/test-api.cc Local<v8::Object> o2 = t2->GetFunction()->NewInstance(); v8 7692 test/cctest/test-api.cc Local<v8::Object> o3 = t3->GetFunction()->NewInstance(); v8 7714 test/cctest/test-api.cc CHECK(proto.As<v8::Object>()->Get(v8_str("z"))->IsUndefined()); v8 7719 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7722 test/cctest/test-api.cc Local<v8::FunctionTemplate> t0 = v8::FunctionTemplate::New(); v8 7724 test/cctest/test-api.cc Local<v8::FunctionTemplate> t1 = v8::FunctionTemplate::New(); v8 7727 test/cctest/test-api.cc Local<v8::FunctionTemplate> t2 = v8::FunctionTemplate::New(); v8 7730 test/cctest/test-api.cc Local<v8::FunctionTemplate> t3 = v8::FunctionTemplate::New(); v8 7733 test/cctest/test-api.cc Local<v8::Object> o0 = t0->GetFunction()->NewInstance(); v8 7734 test/cctest/test-api.cc Local<v8::Object> o1 = t1->GetFunction()->NewInstance(); v8 7735 test/cctest/test-api.cc Local<v8::Object> o2 = t2->GetFunction()->NewInstance(); v8 7736 test/cctest/test-api.cc Local<v8::Object> o3 = t3->GetFunction()->NewInstance(); v8 7758 test/cctest/test-api.cc CHECK_EQ(proto.As<v8::Object>(), o3); v8 7763 test/cctest/test-api.cc CHECK_EQ(proto0.As<v8::Object>(), o1); v8 7767 test/cctest/test-api.cc CHECK_EQ(proto1.As<v8::Object>(), o2); v8 7771 test/cctest/test-api.cc CHECK_EQ(proto2.As<v8::Object>(), o3); v8 7780 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7783 test/cctest/test-api.cc Local<v8::FunctionTemplate> t1 = v8::FunctionTemplate::New(); v8 7786 test/cctest/test-api.cc Local<v8::FunctionTemplate> t2 = v8::FunctionTemplate::New(); v8 7789 test/cctest/test-api.cc t2->InstanceTemplate()->Set(v8_str("objects"), v8::Object::New()); v8 7791 test/cctest/test-api.cc Local<v8::FunctionTemplate> t3 = v8::FunctionTemplate::New(); v8 7794 test/cctest/test-api.cc Local<v8::FunctionTemplate> t4 = v8::FunctionTemplate::New(); v8 7804 test/cctest/test-api.cc Local<v8::Object> o1 = t1->GetFunction()->NewInstance(); v8 7805 test/cctest/test-api.cc Local<v8::Object> o2 = t2->GetFunction()->NewInstance(); v8 7806 test/cctest/test-api.cc Local<v8::Object> o3 = t3->GetFunction()->NewInstance(); v8 7807 test/cctest/test-api.cc Local<v8::Object> o4 = t4->GetFunction()->NewInstance(); v8 7830 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7833 test/cctest/test-api.cc Local<v8::FunctionTemplate> t1 = v8::FunctionTemplate::New(); v8 7834 test/cctest/test-api.cc t1->PrototypeTemplate()->Set(v8_str("x"), v8::Integer::New(42)); v8 7847 test/cctest/test-api.cc Local<v8::FunctionTemplate> t2 = v8::FunctionTemplate::New(); v8 7848 test/cctest/test-api.cc t2->PrototypeTemplate()->Set(v8_str("x"), v8::Integer::New(42)); v8 7861 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7864 test/cctest/test-api.cc Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New(); v8 7866 test/cctest/test-api.cc Local<v8::Object> o0 = t->GetFunction()->NewInstance(); v8 7867 test/cctest/test-api.cc Local<v8::Object> o1 = t->GetFunction()->NewInstance(); v8 7872 test/cctest/test-api.cc v8::TryCatch try_catch; v8 7882 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7890 test/cctest/test-api.cc Local<v8::Object> x = v8 7891 test/cctest/test-api.cc Local<v8::Object>::Cast(context->Global()->Get(v8_str("x"))); v8 7892 test/cctest/test-api.cc v8::TryCatch try_catch; v8 7893 test/cctest/test-api.cc x->Set(v8_str("set"), v8::Integer::New(8)); v8 7895 test/cctest/test-api.cc x->Set(v8_str("set"), v8::Integer::New(8)); v8 7897 test/cctest/test-api.cc x->Set(v8_str("set"), v8::Integer::New(8)); v8 7899 test/cctest/test-api.cc x->Set(v8_str("set"), v8::Integer::New(8)); v8 7905 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7907 test/cctest/test-api.cc Local<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(); v8 7911 test/cctest/test-api.cc Local<v8::Object> inst = cons->NewInstance(); v8 7912 test/cctest/test-api.cc i::Handle<i::JSObject> obj(v8::Utils::OpenHandle(*inst)); v8 7946 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 7953 test/cctest/test-api.cc v8::TryCatch try_catch; v8 7996 test/cctest/test-api.cc Handle<Value> args3[] = { v8::True() }; v8 8006 test/cctest/test-api.cc Handle<Value> args4[] = { v8::Undefined() }; v8 8015 test/cctest/test-api.cc Handle<Value> args5[] = { v8::Null() }; v8 8028 test/cctest/test-api.cc v8::TryCatch try_catch; v8 8051 test/cctest/test-api.cc v8::TryCatch try_catch; v8 8075 test/cctest/test-api.cc v8::TryCatch try_catch; v8 8113 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 8115 test/cctest/test-api.cc Local<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(); v8 8138 test/cctest/test-api.cc v8::HandleScope scope; v8 8158 test/cctest/test-api.cc v8::TryCatch try_catch; v8 8174 test/cctest/test-api.cc v8::HandleScope scope; v8 8203 test/cctest/test-api.cc v8::TryCatch try_catch; v8 8257 test/cctest/test-api.cc v8::HandleScope scope; v8 8259 test/cctest/test-api.cc v8::Persistent<Context> context0 = Context::New(); v8 8260 test/cctest/test-api.cc v8::Persistent<Context> context1 = Context::New(); v8 8264 test/cctest/test-api.cc v8::Handle<v8::Value> fun = v8 8277 test/cctest/test-api.cc v8::Handle<v8::Value> x_value = CompileRun("fun('x')"); v8 8280 test/cctest/test-api.cc v8::TryCatch catcher; v8 8292 test/cctest/test-api.cc v8::HandleScope scope; v8 8311 test/cctest/test-api.cc static v8::Handle<Value> call_as_function(const v8::Arguments& args) { v8 8327 test/cctest/test-api.cc v8::HandleScope scope; v8 8330 test/cctest/test-api.cc { Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New(); v8 8333 test/cctest/test-api.cc Local<v8::Object> instance = t->GetFunction()->NewInstance(); v8 8335 test/cctest/test-api.cc v8::TryCatch try_catch; v8 8377 test/cctest/test-api.cc v8::Handle<Value> args[] = { v8_num(28) }; v8 8383 test/cctest/test-api.cc { Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New(); v8 8386 test/cctest/test-api.cc Local<v8::Object> instance = t->GetFunction()->NewInstance(); v8 8388 test/cctest/test-api.cc v8::TryCatch try_catch; v8 8403 test/cctest/test-api.cc v8::Handle<Value> args[] = { v8_num(28) }; v8 8412 test/cctest/test-api.cc { Local<v8::FunctionTemplate> t = v8::FunctionTemplate::New(); v8 8415 test/cctest/test-api.cc Local<v8::Object> instance = t->GetFunction()->NewInstance(); v8 8417 test/cctest/test-api.cc v8::TryCatch try_catch; v8 8428 test/cctest/test-api.cc v8::Handle<Value> args[] = { v8_num(23) }; v8 8440 test/cctest/test-api.cc v8::HandleScope scope; v8 8446 test/cctest/test-api.cc v8::TryCatch try_catch; v8 8454 test/cctest/test-api.cc v8::TryCatch try_catch; v8 8464 test/cctest/test-api.cc v8::TryCatch try_catch; v8 8473 test/cctest/test-api.cc v8::TryCatch try_catch; v8 8482 test/cctest/test-api.cc return v8::HandleScope::NumberOfHandles(); v8 8487 test/cctest/test-api.cc v8::HandleScope scope; v8 8490 test/cctest/test-api.cc Local<v8::Number> n(v8::Integer::New(42)); v8 8501 test/cctest/test-api.cc v8::HandleScope scope1; v8 8504 test/cctest/test-api.cc Local<v8::Number> n(v8::Integer::New(42)); v8 8510 test/cctest/test-api.cc v8::HandleScope scope2; v8 8512 test/cctest/test-api.cc Local<v8::Number> n(v8::Integer::New(42)); v8 8523 test/cctest/test-api.cc static v8::Handle<Value> InterceptorHasOwnPropertyGetter( v8 8527 test/cctest/test-api.cc return v8::Handle<Value>(); v8 8532 test/cctest/test-api.cc v8::HandleScope scope; v8 8534 test/cctest/test-api.cc Local<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(); v8 8535 test/cctest/test-api.cc Local<v8::ObjectTemplate> instance_templ = fun_templ->InstanceTemplate(); v8 8539 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 8554 test/cctest/test-api.cc static v8::Handle<Value> InterceptorHasOwnPropertyGetterGC( v8 8559 test/cctest/test-api.cc return v8::Handle<Value>(); v8 8564 test/cctest/test-api.cc v8::HandleScope scope; v8 8566 test/cctest/test-api.cc Local<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(); v8 8567 test/cctest/test-api.cc Local<v8::ObjectTemplate> instance_templ = fun_templ->InstanceTemplate(); v8 8584 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 8592 test/cctest/test-api.cc typedef v8::Handle<Value> (*NamedPropertyGetter)(Local<String> property, v8 8599 test/cctest/test-api.cc v8::HandleScope scope; v8 8600 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 8604 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun(source); v8 8609 test/cctest/test-api.cc static v8::Handle<Value> InterceptorLoadICGetter(Local<String> name, v8 8612 test/cctest/test-api.cc v8::Isolate* isolate = v8::Isolate::GetCurrent(); v8 8616 test/cctest/test-api.cc return v8::Integer::New(42); v8 8635 test/cctest/test-api.cc static v8::Handle<Value> InterceptorLoadXICGetter(Local<String> name, v8 8639 test/cctest/test-api.cc ? v8::Integer::New(42) : v8::Handle<v8::Value>(); v8 8748 test/cctest/test-api.cc static v8::Handle<Value> InterceptorLoadNotHandled(Local<String> name, v8 8751 test/cctest/test-api.cc return v8::Handle<v8::Value>(); v8 8808 test/cctest/test-api.cc v8::HandleScope scope; v8 8809 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 8817 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 8837 test/cctest/test-api.cc v8::HandleScope scope; v8 8838 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ_o = ObjectTemplate::New(); v8 8840 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ_p = ObjectTemplate::New(); v8 8849 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 8870 test/cctest/test-api.cc v8::HandleScope scope; v8 8871 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 8878 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 8898 test/cctest/test-api.cc v8::HandleScope scope; v8 8899 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ_o = ObjectTemplate::New(); v8 8901 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ_p = ObjectTemplate::New(); v8 8908 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 8926 test/cctest/test-api.cc v8::HandleScope scope; v8 8927 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ_o = ObjectTemplate::New(); v8 8929 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ_p = ObjectTemplate::New(); v8 8936 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 8958 test/cctest/test-api.cc v8::HandleScope scope; v8 8959 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ_o = ObjectTemplate::New(); v8 8961 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ_p = ObjectTemplate::New(); v8 8968 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 8985 test/cctest/test-api.cc static v8::Handle<Value> InterceptorLoadICGetter0(Local<String> name, v8 8989 test/cctest/test-api.cc return v8::Integer::New(0); v8 9000 test/cctest/test-api.cc static v8::Handle<Value> InterceptorStoreICSetter( v8 9010 test/cctest/test-api.cc v8::HandleScope scope; v8 9011 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 9025 test/cctest/test-api.cc v8::HandleScope scope; v8 9026 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 9030 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 9041 test/cctest/test-api.cc v8::Handle<Value> call_ic_function; v8 9042 test/cctest/test-api.cc v8::Handle<Value> call_ic_function2; v8 9043 test/cctest/test-api.cc v8::Handle<Value> call_ic_function3; v8 9045 test/cctest/test-api.cc static v8::Handle<Value> InterceptorCallICGetter(Local<String> name, v8 9055 test/cctest/test-api.cc v8::HandleScope scope; v8 9056 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 9062 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 9074 test/cctest/test-api.cc v8::HandleScope scope; v8 9075 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 9079 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 9089 test/cctest/test-api.cc static v8::Handle<Value> call_ic_function4; v8 9090 test/cctest/test-api.cc static v8::Handle<Value> InterceptorCallICGetter4(Local<String> name, v8 9102 test/cctest/test-api.cc v8::HandleScope scope; v8 9103 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 9109 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 9122 test/cctest/test-api.cc v8::HandleScope scope; v8 9123 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 9127 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 9149 test/cctest/test-api.cc v8::HandleScope scope; v8 9150 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 9154 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 9166 test/cctest/test-api.cc static v8::Handle<Value> call_ic_function5; v8 9167 test/cctest/test-api.cc static v8::Handle<Value> InterceptorCallICGetter5(Local<String> name, v8 9181 test/cctest/test-api.cc v8::HandleScope scope; v8 9182 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 9188 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 9200 test/cctest/test-api.cc static v8::Handle<Value> call_ic_function6; v8 9201 test/cctest/test-api.cc static v8::Handle<Value> InterceptorCallICGetter6(Local<String> name, v8 9215 test/cctest/test-api.cc v8::HandleScope scope; v8 9216 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 9222 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 9245 test/cctest/test-api.cc v8::HandleScope scope; v8 9246 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 9250 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 9275 test/cctest/test-api.cc v8::HandleScope scope; v8 9276 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 9280 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 9300 test/cctest/test-api.cc v8::HandleScope scope; v8 9301 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ_o = ObjectTemplate::New(); v8 9307 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 9326 test/cctest/test-api.cc static v8::Handle<Value> InterceptorCallICFastApi(Local<String> name, v8 9329 test/cctest/test-api.cc int* call_count = reinterpret_cast<int*>(v8::External::Unwrap(info.Data())); v8 9334 test/cctest/test-api.cc return v8::Handle<Value>(); v8 9337 test/cctest/test-api.cc static v8::Handle<Value> FastApiCallback_TrivialSignature( v8 9340 test/cctest/test-api.cc v8::Isolate* isolate = v8::Isolate::GetCurrent(); v8 9344 test/cctest/test-api.cc return v8::Integer::New(args[0]->Int32Value() + 1); v8 9347 test/cctest/test-api.cc static v8::Handle<Value> FastApiCallback_SimpleSignature( v8 9350 test/cctest/test-api.cc v8::Isolate* isolate = v8::Isolate::GetCurrent(); v8 9357 test/cctest/test-api.cc return v8::Integer::New(args[0]->Int32Value() + 1); v8 9371 test/cctest/test-api.cc v8::Handle<v8::Value> DirectApiCallback(const v8::Arguments& args) { v8 9378 test/cctest/test-api.cc return v8::Handle<v8::Value>(); v8 9383 test/cctest/test-api.cc v8::HandleScope scope; v8 9385 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> nativeobject_templ = v8::ObjectTemplate::New(); v8 9387 test/cctest/test-api.cc v8::FunctionTemplate::New(DirectApiCallback)); v8 9388 test/cctest/test-api.cc v8::Local<v8::Object> nativeobject_obj = nativeobject_templ->NewInstance(); v8 9401 test/cctest/test-api.cc v8::Handle<v8::Value> ThrowingDirectApiCallback(const v8::Arguments& args) { v8 9402 test/cctest/test-api.cc return v8::ThrowException(v8_str("g")); v8 9407 test/cctest/test-api.cc v8::HandleScope scope; v8 9409 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> nativeobject_templ = v8::ObjectTemplate::New(); v8 9411 test/cctest/test-api.cc v8::FunctionTemplate::New(ThrowingDirectApiCallback)); v8 9412 test/cctest/test-api.cc v8::Local<v8::Object> nativeobject_obj = nativeobject_templ->NewInstance(); v8 9415 test/cctest/test-api.cc v8::Handle<Value> result = CompileRun( v8 9427 test/cctest/test-api.cc v8::Handle<v8::Value> DirectGetterCallback(Local<String> name, v8 9433 test/cctest/test-api.cc return v8::Handle<v8::Value>(); v8 9438 test/cctest/test-api.cc v8::HandleScope scope; v8 9440 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> obj = v8::ObjectTemplate::New(); v8 9453 test/cctest/test-api.cc v8::Handle<v8::Value> ThrowingDirectGetterCallback( v8 9455 test/cctest/test-api.cc return v8::ThrowException(v8_str("g")); v8 9460 test/cctest/test-api.cc v8::HandleScope scope; v8 9462 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> obj = v8::ObjectTemplate::New(); v8 9465 test/cctest/test-api.cc v8::Handle<Value> result = CompileRun( v8 9477 test/cctest/test-api.cc v8::HandleScope scope; v8 9478 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(); v8 9479 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> method_templ = v8 9480 test/cctest/test-api.cc v8::FunctionTemplate::New(FastApiCallback_TrivialSignature, v8 9482 test/cctest/test-api.cc v8::Handle<v8::Signature>()); v8 9483 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate(); v8 9485 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = fun_templ->InstanceTemplate(); v8 9488 test/cctest/test-api.cc v8::External::Wrap(&interceptor_call_count)); v8 9490 test/cctest/test-api.cc v8::Handle<v8::Function> fun = fun_templ->GetFunction(); v8 9504 test/cctest/test-api.cc v8::HandleScope scope; v8 9505 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(); v8 9506 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> method_templ = v8 9507 test/cctest/test-api.cc v8::FunctionTemplate::New(FastApiCallback_SimpleSignature, v8 9509 test/cctest/test-api.cc v8::Signature::New(fun_templ)); v8 9510 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate(); v8 9512 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = fun_templ->InstanceTemplate(); v8 9515 test/cctest/test-api.cc v8::External::Wrap(&interceptor_call_count)); v8 9517 test/cctest/test-api.cc v8::Handle<v8::Function> fun = fun_templ->GetFunction(); v8 9534 test/cctest/test-api.cc v8::HandleScope scope; v8 9535 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(); v8 9536 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> method_templ = v8 9537 test/cctest/test-api.cc v8::FunctionTemplate::New(FastApiCallback_SimpleSignature, v8 9539 test/cctest/test-api.cc v8::Signature::New(fun_templ)); v8 9540 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate(); v8 9542 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = fun_templ->InstanceTemplate(); v8 9545 test/cctest/test-api.cc v8::External::Wrap(&interceptor_call_count)); v8 9547 test/cctest/test-api.cc v8::Handle<v8::Function> fun = fun_templ->GetFunction(); v8 9570 test/cctest/test-api.cc v8::HandleScope scope; v8 9571 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(); v8 9572 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> method_templ = v8 9573 test/cctest/test-api.cc v8::FunctionTemplate::New(FastApiCallback_SimpleSignature, v8 9575 test/cctest/test-api.cc v8::Signature::New(fun_templ)); v8 9576 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate(); v8 9578 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = fun_templ->InstanceTemplate(); v8 9581 test/cctest/test-api.cc v8::External::Wrap(&interceptor_call_count)); v8 9583 test/cctest/test-api.cc v8::Handle<v8::Function> fun = fun_templ->GetFunction(); v8 9606 test/cctest/test-api.cc v8::HandleScope scope; v8 9607 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(); v8 9608 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> method_templ = v8 9609 test/cctest/test-api.cc v8::FunctionTemplate::New(FastApiCallback_SimpleSignature, v8 9611 test/cctest/test-api.cc v8::Signature::New(fun_templ)); v8 9612 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate(); v8 9614 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = fun_templ->InstanceTemplate(); v8 9617 test/cctest/test-api.cc v8::External::Wrap(&interceptor_call_count)); v8 9619 test/cctest/test-api.cc v8::Handle<v8::Function> fun = fun_templ->GetFunction(); v8 9622 test/cctest/test-api.cc v8::TryCatch try_catch; v8 9645 test/cctest/test-api.cc v8::HandleScope scope; v8 9646 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(); v8 9647 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> method_templ = v8 9648 test/cctest/test-api.cc v8::FunctionTemplate::New(FastApiCallback_SimpleSignature, v8 9650 test/cctest/test-api.cc v8::Signature::New(fun_templ)); v8 9651 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate(); v8 9653 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = fun_templ->InstanceTemplate(); v8 9656 test/cctest/test-api.cc v8::External::Wrap(&interceptor_call_count)); v8 9658 test/cctest/test-api.cc v8::Handle<v8::Function> fun = fun_templ->GetFunction(); v8 9661 test/cctest/test-api.cc v8::TryCatch try_catch; v8 9683 test/cctest/test-api.cc v8::HandleScope scope; v8 9684 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(); v8 9685 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> method_templ = v8 9686 test/cctest/test-api.cc v8::FunctionTemplate::New(FastApiCallback_TrivialSignature, v8 9688 test/cctest/test-api.cc v8::Handle<v8::Signature>()); v8 9689 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate(); v8 9691 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ(fun_templ->InstanceTemplate()); v8 9694 test/cctest/test-api.cc v8::Handle<v8::Function> fun = fun_templ->GetFunction(); v8 9707 test/cctest/test-api.cc v8::HandleScope scope; v8 9708 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(); v8 9709 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> method_templ = v8 9710 test/cctest/test-api.cc v8::FunctionTemplate::New(FastApiCallback_SimpleSignature, v8 9712 test/cctest/test-api.cc v8::Signature::New(fun_templ)); v8 9713 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate(); v8 9715 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ(fun_templ->InstanceTemplate()); v8 9718 test/cctest/test-api.cc v8::Handle<v8::Function> fun = fun_templ->GetFunction(); v8 9734 test/cctest/test-api.cc v8::HandleScope scope; v8 9735 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(); v8 9736 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> method_templ = v8 9737 test/cctest/test-api.cc v8::FunctionTemplate::New(FastApiCallback_SimpleSignature, v8 9739 test/cctest/test-api.cc v8::Signature::New(fun_templ)); v8 9740 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate(); v8 9742 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ(fun_templ->InstanceTemplate()); v8 9745 test/cctest/test-api.cc v8::Handle<v8::Function> fun = fun_templ->GetFunction(); v8 9766 test/cctest/test-api.cc v8::HandleScope scope; v8 9767 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(); v8 9768 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> method_templ = v8 9769 test/cctest/test-api.cc v8::FunctionTemplate::New(FastApiCallback_SimpleSignature, v8 9771 test/cctest/test-api.cc v8::Signature::New(fun_templ)); v8 9772 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> proto_templ = fun_templ->PrototypeTemplate(); v8 9774 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ(fun_templ->InstanceTemplate()); v8 9777 test/cctest/test-api.cc v8::Handle<v8::Function> fun = fun_templ->GetFunction(); v8 9780 test/cctest/test-api.cc v8::TryCatch try_catch; v8 9801 test/cctest/test-api.cc v8::Handle<Value> keyed_call_ic_function; v8 9803 test/cctest/test-api.cc static v8::Handle<Value> InterceptorKeyedCallICGetter( v8 9809 test/cctest/test-api.cc return v8::Handle<Value>(); v8 9816 test/cctest/test-api.cc v8::HandleScope scope; v8 9817 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 9840 test/cctest/test-api.cc v8::HandleScope scope; v8 9841 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 9867 test/cctest/test-api.cc v8::HandleScope scope; v8 9868 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 9892 test/cctest/test-api.cc v8::HandleScope scope; v8 9893 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ_o = ObjectTemplate::New(); v8 9916 test/cctest/test-api.cc v8::HandleScope scope; v8 9917 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ_o = ObjectTemplate::New(); v8 9938 test/cctest/test-api.cc v8::HandleScope scope; v8 9939 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ_o = ObjectTemplate::New(); v8 9960 test/cctest/test-api.cc static v8::Handle<Value> InterceptorICRefErrorGetter(Local<String> name, v8 9966 test/cctest/test-api.cc return v8::Handle<Value>(); v8 9974 test/cctest/test-api.cc v8::HandleScope scope; v8 9975 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 9977 test/cctest/test-api.cc LocalContext context(0, templ, v8::Handle<Value>()); v8 9979 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 10003 test/cctest/test-api.cc static v8::Handle<Value> InterceptorICExceptionGetter( v8 10011 test/cctest/test-api.cc return v8::ThrowException(v8_num(42)); v8 10014 test/cctest/test-api.cc return v8::Handle<Value>(); v8 10021 test/cctest/test-api.cc v8::HandleScope scope; v8 10022 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 10024 test/cctest/test-api.cc LocalContext context(0, templ, v8::Handle<Value>()); v8 10026 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 10050 test/cctest/test-api.cc static v8::Handle<Value> InterceptorICExceptionSetter( v8 10054 test/cctest/test-api.cc return v8::ThrowException(v8_num(42)); v8 10057 test/cctest/test-api.cc return v8::Handle<Value>(); v8 10064 test/cctest/test-api.cc v8::HandleScope scope; v8 10065 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 10067 test/cctest/test-api.cc LocalContext context(0, templ, v8::Handle<Value>()); v8 10068 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun( v8 10082 test/cctest/test-api.cc v8::HandleScope scope; v8 10083 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 10087 test/cctest/test-api.cc v8::Handle<v8::Object> obj = templ->NewInstance(); v8 10089 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun("obj.x"); v8 10097 test/cctest/test-api.cc v8::HandleScope scope; v8 10098 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = ObjectTemplate::New(); v8 10102 test/cctest/test-api.cc v8::Handle<v8::Object> obj = templ->NewInstance(); v8 10104 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun("obj[42]"); v8 10111 test/cctest/test-api.cc v8::HandleScope scope; v8 10112 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(); v8 10250 test/cctest/test-api.cc static v8::Handle<Value> ParentGetter(Local<String> name, v8 10257 test/cctest/test-api.cc static v8::Handle<Value> ChildGetter(Local<String> name, v8 10266 test/cctest/test-api.cc v8::HandleScope scope; v8 10270 test/cctest/test-api.cc Local<v8::FunctionTemplate> parent_templ = v8::FunctionTemplate::New(); v8 10276 test/cctest/test-api.cc Local<v8::FunctionTemplate> child_templ = v8::FunctionTemplate::New(); v8 10291 test/cctest/test-api.cc v8::Handle<Value>(), v8::DEFAULT, v8::ReadOnly); v8 10297 test/cctest/test-api.cc v8::Handle<Value>(), v8::DEFAULT, v8::ReadOnly); v8 10302 test/cctest/test-api.cc Local<v8::Object> instance = child_templ->GetFunction()->NewInstance(); v8 10322 test/cctest/test-api.cc static v8::Handle<Value> IsConstructHandler(const v8::Arguments& args) { v8 10324 test/cctest/test-api.cc return v8::Boolean::New(args.IsConstructCall()); v8 10329 test/cctest/test-api.cc v8::HandleScope scope; v8 10332 test/cctest/test-api.cc Local<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(); v8 10346 test/cctest/test-api.cc v8::HandleScope scope; v8 10347 test/cctest/test-api.cc Local<v8::FunctionTemplate> templ = v8::FunctionTemplate::New(); v8 10360 test/cctest/test-api.cc Local<v8::Object> instance = templ->GetFunction()->NewInstance(); v8 10374 test/cctest/test-api.cc value = object.As<v8::Object>()->ObjectProtoToString(); v8 10380 test/cctest/test-api.cc v8::HandleScope scope; v8 10390 test/cctest/test-api.cc Local<v8::Value> p = context->Global()->Get(v8_str("p")); v8 10394 test/cctest/test-api.cc Local<v8::Value> c = context->Global()->Get(v8_str("c")); v8 10398 test/cctest/test-api.cc Local<v8::Value> x = context->Global()->Get(v8_str("x")); v8 10447 test/cctest/test-api.cc v8::Locker locker; v8 10511 test/cctest/test-api.cc v8::Unlocker unlocker; v8 10562 test/cctest/test-api.cc static v8::Handle<Value> ThrowInJS(const v8::Arguments& args) { v8 10563 test/cctest/test-api.cc CHECK(v8::Locker::IsLocked()); v8 10565 test/cctest/test-api.cc v8::Unlocker unlocker; v8 10568 test/cctest/test-api.cc v8::Locker nested_locker; v8 10569 test/cctest/test-api.cc v8::HandleScope scope; v8 10570 test/cctest/test-api.cc v8::Handle<Value> exception; v8 10571 test/cctest/test-api.cc { v8::TryCatch try_catch; v8 10572 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun(code); v8 10580 test/cctest/test-api.cc return v8::ThrowException(exception); v8 10585 test/cctest/test-api.cc static v8::Handle<Value> ThrowInJSNoCatch(const v8::Arguments& args) { v8 10586 test/cctest/test-api.cc CHECK(v8::Locker::IsLocked()); v8 10588 test/cctest/test-api.cc v8::Unlocker unlocker; v8 10591 test/cctest/test-api.cc v8::Locker nested_locker; v8 10592 test/cctest/test-api.cc v8::HandleScope scope; v8 10593 test/cctest/test-api.cc v8::Handle<Value> value = CompileRun(code); v8 10603 test/cctest/test-api.cc v8::Locker locker; v8 10604 test/cctest/test-api.cc CHECK(v8::Locker::IsLocked()); v8 10605 test/cctest/test-api.cc v8::HandleScope scope; v8 10607 test/cctest/test-api.cc Local<v8::FunctionTemplate> fun_templ = v8::FunctionTemplate::New(ThrowInJS); v8 10625 test/cctest/test-api.cc v8::Locker locker; v8 10626 test/cctest/test-api.cc v8::HandleScope scope; v8 10628 test/cctest/test-api.cc Local<v8::FunctionTemplate> fun_templ = v8 10629 test/cctest/test-api.cc v8::FunctionTemplate::New(ThrowInJSNoCatch); v8 10645 test/cctest/test-api.cc v8::Locker locker; v8 10647 test/cctest/test-api.cc v8::Locker locker2; v8 10648 test/cctest/test-api.cc CHECK(v8::Locker::IsLocked()); v8 10653 test/cctest/test-api.cc static v8::Handle<Value> UnlockForAMoment(const v8::Arguments& args) { v8 10655 test/cctest/test-api.cc v8::Unlocker unlocker; v8 10656 test/cctest/test-api.cc return v8::Undefined(); v8 10662 test/cctest/test-api.cc v8::Locker locker; v8 10663 test/cctest/test-api.cc v8::HandleScope scope; v8 10665 test/cctest/test-api.cc Local<v8::FunctionTemplate> fun_templ = v8 10666 test/cctest/test-api.cc v8::FunctionTemplate::New(UnlockForAMoment); v8 10676 test/cctest/test-api.cc v8::Locker locker; v8 10677 test/cctest/test-api.cc v8::HandleScope scope; v8 10679 test/cctest/test-api.cc Local<v8::FunctionTemplate> fun_templ = v8 10680 test/cctest/test-api.cc v8::FunctionTemplate::New(UnlockForAMoment); v8 10721 test/cctest/test-api.cc v8::V8::Initialize(); v8 10724 test/cctest/test-api.cc { v8::HandleScope scope; v8 10729 test/cctest/test-api.cc { v8::HandleScope scope; v8 10735 test/cctest/test-api.cc { v8::HandleScope scope; v8 10741 test/cctest/test-api.cc { v8::HandleScope scope; v8 10743 test/cctest/test-api.cc v8::ExtensionConfiguration extensions(1, extension_list); v8 10752 test/cctest/test-api.cc v8::Persistent<v8::Object> some_object; v8 10753 test/cctest/test-api.cc v8::Persistent<v8::Object> bad_handle; v8 10756 test/cctest/test-api.cc v8::HandleScope scope; v8 10757 test/cctest/test-api.cc bad_handle = v8::Persistent<v8::Object>::New(some_object); v8 10765 test/cctest/test-api.cc v8::Persistent<v8::Object> handle1, handle2; v8 10767 test/cctest/test-api.cc v8::HandleScope scope; v8 10768 test/cctest/test-api.cc some_object = v8::Persistent<v8::Object>::New(v8::Object::New()); v8 10769 test/cctest/test-api.cc handle1 = v8::Persistent<v8::Object>::New(v8::Object::New()); v8 10770 test/cctest/test-api.cc handle2 = v8::Persistent<v8::Object>::New(v8::Object::New()); v8 10782 test/cctest/test-api.cc v8::Persistent<v8::Object> to_be_disposed; v8 10794 test/cctest/test-api.cc v8::Persistent<v8::Object> handle1, handle2; v8 10796 test/cctest/test-api.cc v8::HandleScope scope; v8 10797 test/cctest/test-api.cc handle1 = v8::Persistent<v8::Object>::New(v8::Object::New()); v8 10798 test/cctest/test-api.cc handle2 = v8::Persistent<v8::Object>::New(v8::Object::New()); v8 10810 test/cctest/test-api.cc v8::HandleScope scope; v8 10811 test/cctest/test-api.cc v8::Persistent<v8::Object>::New(v8::Object::New()); v8 10819 test/cctest/test-api.cc v8::Persistent<v8::Object> handle1, handle2, handle3; v8 10821 test/cctest/test-api.cc v8::HandleScope scope; v8 10822 test/cctest/test-api.cc handle3 = v8::Persistent<v8::Object>::New(v8::Object::New()); v8 10823 test/cctest/test-api.cc handle2 = v8::Persistent<v8::Object>::New(v8::Object::New()); v8 10824 test/cctest/test-api.cc handle1 = v8::Persistent<v8::Object>::New(v8::Object::New()); v8 10833 test/cctest/test-api.cc v8::V8::Initialize(); v8 10843 test/cctest/test-api.cc { v8::HandleScope scope; v8 10847 test/cctest/test-api.cc { v8::HandleScope scope; v8 10855 test/cctest/test-api.cc static v8::Handle<Value> NestedScope(v8::Persistent<Context> env) { v8 10856 test/cctest/test-api.cc v8::HandleScope inner; v8 10858 test/cctest/test-api.cc v8::Handle<Value> three = v8_num(3); v8 10859 test/cctest/test-api.cc v8::Handle<Value> value = inner.Close(three); v8 10866 test/cctest/test-api.cc v8::HandleScope outer; v8 10867 test/cctest/test-api.cc v8::Persistent<Context> env = Context::New(); v8 10869 test/cctest/test-api.cc v8::Handle<Value> value = NestedScope(env); v8 10870 test/cctest/test-api.cc v8::Handle<String> str(value->ToString()); v8 10903 test/cctest/test-api.cc v8::HandleScope outer; v8 10904 test/cctest/test-api.cc v8::Persistent<Context> env = Context::New(); v8 10918 test/cctest/test-api.cc v8::Utils::OpenHandle(*env->Global()->Get(v8_str("bar")))); v8 10923 test/cctest/test-api.cc v8::Utils::OpenHandle(*env->Global()->Get(v8_str("foo")))); v8 10929 test/cctest/test-api.cc v8::Handle<v8::Value> value = CompileRun("bar();"); v8 10931 test/cctest/test-api.cc CHECK_EQ(9801.0, v8::Number::Cast(*value)->Value()); v8 10937 test/cctest/test-api.cc CHECK_EQ(9801.0, v8::Number::Cast(*value)->Value()); v8 10948 test/cctest/test-api.cc CHECK(v8::V8::SetFunctionEntryHook(NULL)); v8 10950 test/cctest/test-api.cc CHECK(v8::V8::SetFunctionEntryHook(entry_hook)); v8 10952 test/cctest/test-api.cc CHECK_EQ(false, v8::V8::SetFunctionEntryHook(entry_hook)); v8 10954 test/cctest/test-api.cc CHECK(v8::V8::SetFunctionEntryHook(NULL)); v8 10959 test/cctest/test-api.cc CHECK(v8::V8::SetFunctionEntryHook(entry_hook)); v8 10968 test/cctest/test-api.cc v8::V8::SetFunctionEntryHook(NULL); v8 10972 test/cctest/test-api.cc v8::internal::Isolate::Current()->compilation_cache()->Clear(); v8 10985 test/cctest/test-api.cc v8::HandleScope outer; v8 10986 test/cctest/test-api.cc v8::Persistent<Context> env(Context::New()); v8 10989 test/cctest/test-api.cc CHECK_EQ(cast(v8::V8::AdjustAmountOfExternalAllocatedMemory(kSize)), v8 10991 test/cctest/test-api.cc CHECK_EQ(cast(v8::V8::AdjustAmountOfExternalAllocatedMemory(-kSize)), v8 10997 test/cctest/test-api.cc v8::HandleScope scope; v8 10999 test/cctest/test-api.cc { v8::Persistent<v8::Context> inner = v8::Context::New(); v8 11012 test/cctest/test-api.cc v8::HandleScope outer; v8 11014 test/cctest/test-api.cc static v8::Persistent<v8::ObjectTemplate> templ; v8 11016 test/cctest/test-api.cc v8::HandleScope inner; v8 11017 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> local = v8::ObjectTemplate::New(); v8 11019 test/cctest/test-api.cc templ = v8::Persistent<v8::ObjectTemplate>::New(inner.Close(local)); v8 11021 test/cctest/test-api.cc v8::Handle<v8::Object> result = templ->NewInstance(); v8 11029 test/cctest/test-api.cc v8::HandleScope scope; v8 11031 test/cctest/test-api.cc v8::TryCatch try_catch; v8 11032 test/cctest/test-api.cc v8::Handle<v8::Script> script = v8::Script::Compile(v8::String::New( v8 11038 test/cctest/test-api.cc v8::Handle<v8::Value> result = script->Run(); v8 11046 test/cctest/test-api.cc v8::HandleScope scope; v8 11047 test/cctest/test-api.cc v8::TryCatch try_catch; v8 11048 test/cctest/test-api.cc v8::Handle<v8::Value> result = script->Run(); v8 11051 test/cctest/test-api.cc v8::Handle<v8::Message> message = try_catch.Message(); v8 11058 test/cctest/test-api.cc v8::String::AsciiValue line(message->GetSourceLine()); v8 11060 test/cctest/test-api.cc v8::String::AsciiValue name(message->GetScriptResourceName()); v8 11066 test/cctest/test-api.cc v8::HandleScope scope; v8 11068 test/cctest/test-api.cc v8::Handle<v8::String> source = v8::String::New( v8 11084 test/cctest/test-api.cc v8::Handle<v8::Script> script; v8 11086 test/cctest/test-api.cc script = v8::Script::Compile(source, v8::String::New(resource_name)); v8 11090 test/cctest/test-api.cc v8::ScriptOrigin origin1(v8::String::New(resource_name)); v8 11091 test/cctest/test-api.cc script = v8::Script::Compile(source, &origin1); v8 11095 test/cctest/test-api.cc v8::ScriptOrigin origin2(v8::String::New(resource_name), v8::Integer::New(7)); v8 11096 test/cctest/test-api.cc script = v8::Script::Compile(source, &origin2); v8 11102 test/cctest/test-api.cc v8::HandleScope scope; v8 11104 test/cctest/test-api.cc v8::Handle<v8::String> source0 = v8::String::New("1234"); v8 11105 test/cctest/test-api.cc v8::Handle<v8::String> source1 = v8::String::New("1234"); v8 11106 test/cctest/test-api.cc v8::Handle<v8::Script> script0 = v8 11107 test/cctest/test-api.cc v8::Script::Compile(source0, v8::String::New("test.js")); v8 11108 test/cctest/test-api.cc v8::Handle<v8::Script> script1 = v8 11109 test/cctest/test-api.cc v8::Script::Compile(source1, v8::String::New("test.js")); v8 11110 test/cctest/test-api.cc v8::Handle<v8::Script> script2 = v8 11111 test/cctest/test-api.cc v8::Script::Compile(source0); // different origin v8 11118 test/cctest/test-api.cc static v8::Handle<Value> FunctionNameCallback(const v8::Arguments& args) { v8 11125 test/cctest/test-api.cc v8::HandleScope scope; v8 11128 test/cctest/test-api.cc t->Set(v8_str("asdf"), v8::FunctionTemplate::New(FunctionNameCallback)); v8 11130 test/cctest/test-api.cc v8::Handle<v8::Value> value = CompileRun("obj.asdf.name"); v8 11132 test/cctest/test-api.cc v8::String::AsciiValue name(value); v8 11138 test/cctest/test-api.cc v8::HandleScope scope; v8 11140 test/cctest/test-api.cc v8::Handle<v8::Value> date = v8::Date::New(1224744689038.0); v8 11142 test/cctest/test-api.cc CHECK_EQ(1224744689038.0, date.As<v8::Date>()->NumberValue()); v8 11147 test/cctest/test-api.cc v8::Handle<v8::Object> obj = val.As<v8::Object>(); v8 11148 test/cctest/test-api.cc v8::Handle<v8::Array> props = obj->GetPropertyNames(); v8 11151 test/cctest/test-api.cc v8::String::Utf8Value elm(props->Get(v8::Integer::New(i))); v8 11160 test/cctest/test-api.cc v8::Handle<v8::Object> obj = val.As<v8::Object>(); v8 11161 test/cctest/test-api.cc v8::Handle<v8::Array> props = obj->GetOwnPropertyNames(); v8 11164 test/cctest/test-api.cc v8::String::Utf8Value elm(props->Get(v8::Integer::New(i))); v8 11171 test/cctest/test-api.cc v8::HandleScope scope; v8 11173 test/cctest/test-api.cc v8::Handle<v8::Value> obj = v8::Script::Compile(v8::String::New( v8 11182 test/cctest/test-api.cc v8::Handle<v8::Array> elms = obj.As<v8::Array>(); v8 11186 test/cctest/test-api.cc CheckProperties(elms->Get(v8::Integer::New(0)), elmc0, elmv0); v8 11187 test/cctest/test-api.cc CheckOwnProperties(elms->Get(v8::Integer::New(0)), elmc0, elmv0); v8 11190 test/cctest/test-api.cc CheckProperties(elms->Get(v8::Integer::New(1)), elmc1, elmv1); v8 11191 test/cctest/test-api.cc CheckOwnProperties(elms->Get(v8::Integer::New(1)), elmc1, elmv1); v8 11194 test/cctest/test-api.cc CheckProperties(elms->Get(v8::Integer::New(2)), elmc2, elmv2); v8 11195 test/cctest/test-api.cc CheckOwnProperties(elms->Get(v8::Integer::New(2)), elmc2, elmv2); v8 11198 test/cctest/test-api.cc CheckProperties(elms->Get(v8::Integer::New(3)), elmc3, elmv3); v8 11201 test/cctest/test-api.cc CheckOwnProperties(elms->Get(v8::Integer::New(3)), elmc4, elmv4); v8 11205 test/cctest/test-api.cc v8::HandleScope scope; v8 11207 test/cctest/test-api.cc v8::Handle<v8::Value> obj = v8::Script::Compile(v8::String::New( v8 11216 test/cctest/test-api.cc v8::Handle<v8::Array> elms = obj.As<v8::Array>(); v8 11220 test/cctest/test-api.cc CheckProperties(elms->Get(v8::Integer::New(0)), elmc0, elmv0); v8 11222 test/cctest/test-api.cc v8::Handle<v8::Value> val = elms->Get(v8::Integer::New(0)); v8 11223 test/cctest/test-api.cc v8::Handle<v8::Array> props = val.As<v8::Object>()->GetPropertyNames(); v8 11234 test/cctest/test-api.cc return type != v8::ACCESS_SET; v8 11242 test/cctest/test-api.cc return type != v8::ACCESS_SET; v8 11247 test/cctest/test-api.cc v8::HandleScope scope; v8 11252 test/cctest/test-api.cc templ->Set(v8_str("x"), v8::True()); v8 11253 test/cctest/test-api.cc Local<v8::Object> instance = templ->NewInstance(); v8 11278 test/cctest/test-api.cc v8::HandleScope scope; v8 11295 test/cctest/test-api.cc templ->Set(v8_str(buf), v8::Number::New(k)); v8 11300 test/cctest/test-api.cc Local<v8::Object> instance_1 = templ->NewInstance(); v8 11306 test/cctest/test-api.cc Local<v8::Object> instance_2 = templ->NewInstance(); v8 11317 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 11318 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New(); v8 11322 test/cctest/test-api.cc v8::Utils::OpenHandle(*global_template); v8 11327 test/cctest/test-api.cc v8::Persistent<Context> context0(Context::New(NULL, global_template)); v8 11334 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 11338 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New(); v8 11341 test/cctest/test-api.cc v8::Handle<v8::Value>(), v8 11343 test/cctest/test-api.cc v8::Persistent<Context> context = Context::New(NULL, global_template); v8 11365 test/cctest/test-api.cc v8::Handle<v8::Object> global = context->Global(); v8 11407 test/cctest/test-api.cc v8::Utils::OpenHandle(String::Cast(*name)); v8 11414 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 11419 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New(); v8 11422 test/cctest/test-api.cc v8::Handle<v8::Value>(), v8 11424 test/cctest/test-api.cc v8::Persistent<Context> context = Context::New(NULL, global_template); v8 11448 test/cctest/test-api.cc v8::Handle<v8::Object> global = context->Global(); v8 11505 test/cctest/test-api.cc v8::V8::Initialize(); v8 11507 test/cctest/test-api.cc v8::ScriptData* sd = v8 11508 test/cctest/test-api.cc v8::ScriptData::PreCompile(script, i::StrLength(script)); v8 11517 test/cctest/test-api.cc v8::V8::Initialize(); v8 11519 test/cctest/test-api.cc v8::ScriptData* sd = v8 11520 test/cctest/test-api.cc v8::ScriptData::PreCompile(script, i::StrLength(script)); v8 11527 test/cctest/test-api.cc v8::V8::Initialize(); v8 11529 test/cctest/test-api.cc v8::ScriptData* sd = v8 11530 test/cctest/test-api.cc v8::ScriptData::PreCompile(script, i::StrLength(script)); v8 11538 test/cctest/test-api.cc v8::V8::Initialize(); v8 11540 test/cctest/test-api.cc v8::ScriptData* sd = v8 11541 test/cctest/test-api.cc v8::ScriptData::PreCompile(script, i::StrLength(script)); v8 11549 test/cctest/test-api.cc v8::ScriptData* deserialized_sd = v8 11550 test/cctest/test-api.cc v8::ScriptData::New(serialized_data, serialized_data_length); v8 11564 test/cctest/test-api.cc v8::V8::Initialize(); v8 11567 test/cctest/test-api.cc v8::ScriptData* sd = v8::ScriptData::New(data, invalid_size); v8 11577 test/cctest/test-api.cc v8::V8::Initialize(); v8 11578 test/cctest/test-api.cc v8::HandleScope scope; v8 11583 test/cctest/test-api.cc v8::ScriptData* sd = v8 11584 test/cctest/test-api.cc v8::ScriptData::PreCompile(script, i::StrLength(script)); v8 11596 test/cctest/test-api.cc v8::TryCatch try_catch; v8 11610 test/cctest/test-api.cc sd = v8::ScriptData::PreCompile(script, i::StrLength(script)); v8 11624 test/cctest/test-api.cc v8::V8::Initialize(); v8 11625 test/cctest/test-api.cc v8::HandleScope scope; v8 11629 test/cctest/test-api.cc v8::ScriptData* sd_from_cstring = v8 11630 test/cctest/test-api.cc v8::ScriptData::PreCompile(cstring, i::StrLength(cstring)); v8 11633 test/cctest/test-api.cc v8::ScriptData* sd_from_external_string = v8::ScriptData::PreCompile( v8 11634 test/cctest/test-api.cc v8::String::NewExternal(resource)); v8 11636 test/cctest/test-api.cc v8::ScriptData* sd_from_string = v8::ScriptData::PreCompile( v8 11637 test/cctest/test-api.cc v8::String::New(cstring)); v8 11662 test/cctest/test-api.cc v8::HandleScope scope; v8 11666 test/cctest/test-api.cc context->Global()->Set(v8_str("tmp"), v8::True()); v8 11673 test/cctest/test-api.cc context->Global()->Set(v8_str("tmp"), v8::True()); v8 11683 test/cctest/test-api.cc v8::HandleScope scope; v8 11684 test/cctest/test-api.cc v8::Persistent<Context> context0 = Context::New(); v8 11685 test/cctest/test-api.cc v8::Persistent<Context> context1 = Context::New(); v8 11725 test/cctest/test-api.cc v8::Locker::StartPreemption(1); v8 11729 test/cctest/test-api.cc v8::Unlocker unlock; v8 11732 test/cctest/test-api.cc v8::Locker::StopPreemption(); v8 11756 test/cctest/test-api.cc v8::Locker lock; v8 11816 test/cctest/test-api.cc v8::Locker lock; v8 11817 test/cctest/test-api.cc v8::V8::Initialize(); v8 11818 test/cctest/test-api.cc v8::HandleScope scope; v8 11848 test/cctest/test-api.cc v8::Locker::StartPreemption(1); v8 11852 test/cctest/test-api.cc v8::Unlocker unlock; v8 11855 test/cctest/test-api.cc v8::Locker::StopPreemption(); v8 11879 test/cctest/test-api.cc v8::Locker lock; v8 11925 test/cctest/test-api.cc v8::Locker lock; v8 11926 test/cctest/test-api.cc v8::V8::Initialize(); v8 11927 test/cctest/test-api.cc v8::HandleScope scope; v8 11947 test/cctest/test-api.cc v8::HandleScope scope; v8 11959 test/cctest/test-api.cc Local<v8::Object> obj = val.As<v8::Object>(); v8 11963 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(123), obj->Get(v8_str("beta"))); v8 11967 test/cctest/test-api.cc Local<v8::Object> clone = obj->Clone(); v8 11969 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(123), clone->Get(v8_str("beta"))); v8 11973 test/cctest/test-api.cc clone->Set(v8_str("beta"), v8::Integer::New(456)); v8 11974 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(123), obj->Get(v8_str("beta"))); v8 11975 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(456), clone->Get(v8_str("beta"))); v8 11979 test/cctest/test-api.cc class AsciiVectorResource : public v8::String::ExternalAsciiStringResource { v8 11991 test/cctest/test-api.cc class UC16VectorResource : public v8::String::ExternalStringResource { v8 12035 test/cctest/test-api.cc v8::HandleScope scope; v8 12043 test/cctest/test-api.cc Local<String> lhs(v8::Utils::ToLocal( v8 12045 test/cctest/test-api.cc Local<String> rhs(v8::Utils::ToLocal( v8 12059 test/cctest/test-api.cc MorphAString(*v8::Utils::OpenHandle(*lhs), &ascii_resource, &uc16_resource); v8 12060 test/cctest/test-api.cc MorphAString(*v8::Utils::OpenHandle(*rhs), &ascii_resource, &uc16_resource); v8 12098 test/cctest/test-api.cc v8::HandleScope scope; v8 12116 test/cctest/test-api.cc v8::Local<v8::String> source = v8::String::NewExternal(&uc16_resource); v8 12117 test/cctest/test-api.cc v8::Script::Compile(source); v8 12158 test/cctest/test-api.cc v8::Locker::StartPreemption(1); v8 12161 test/cctest/test-api.cc v8::Unlocker unlock; v8 12164 test/cctest/test-api.cc v8::Locker::StopPreemption(); v8 12190 test/cctest/test-api.cc v8::Locker lock; v8 12207 test/cctest/test-api.cc v8::HandleScope scope; v8 12238 test/cctest/test-api.cc v8::Locker lock; v8 12239 test/cctest/test-api.cc v8::V8::Initialize(); v8 12240 test/cctest/test-api.cc v8::HandleScope scope; v8 12262 test/cctest/test-api.cc v8::HandleScope scope; v8 12263 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(); v8 12265 test/cctest/test-api.cc v8::Handle<v8::Object> global = context->Global(); v8 12266 test/cctest/test-api.cc v8::Handle<v8::Object> global_proto = v8 12267 test/cctest/test-api.cc v8::Handle<v8::Object>::Cast(global->Get(v8_str("__proto__"))); v8 12268 test/cctest/test-api.cc global_proto->Set(v8_str("x"), v8::Integer::New(0), v8::ReadOnly); v8 12269 test/cctest/test-api.cc global_proto->Set(v8_str("y"), v8::Integer::New(0), v8::ReadOnly); v8 12271 test/cctest/test-api.cc v8::Handle<v8::Value> res = v8 12273 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(0), res); v8 12276 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(0), res); v8 12279 test/cctest/test-api.cc CHECK_EQ(v8::Integer::New(0), res); v8 12286 test/cctest/test-api.cc static v8::Handle<v8::Value> ForceSetGetter(v8::Local<v8::String> name, v8 12290 test/cctest/test-api.cc return v8::Handle<v8::Value>(); v8 12292 test/cctest/test-api.cc return v8::Int32::New(3); v8 12302 test/cctest/test-api.cc static v8::Handle<v8::Value> ForceSetInterceptSetter( v8 12307 test/cctest/test-api.cc return v8::Undefined(); v8 12315 test/cctest/test-api.cc v8::HandleScope scope; v8 12316 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(); v8 12317 test/cctest/test-api.cc v8::Handle<v8::String> access_property = v8::String::New("a"); v8 12320 test/cctest/test-api.cc v8::Handle<v8::Object> global = context->Global(); v8 12323 test/cctest/test-api.cc v8::Handle<v8::String> simple_property = v8::String::New("p"); v8 12324 test/cctest/test-api.cc global->Set(simple_property, v8::Int32::New(4), v8::ReadOnly); v8 12327 test/cctest/test-api.cc global->Set(simple_property, v8::Int32::New(5)); v8 12330 test/cctest/test-api.cc global->ForceSet(simple_property, v8::Int32::New(6)); v8 12339 test/cctest/test-api.cc global->Set(access_property, v8::Int32::New(7)); v8 12345 test/cctest/test-api.cc global->ForceSet(access_property, v8::Int32::New(8)); v8 12356 test/cctest/test-api.cc v8::HandleScope scope; v8 12357 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(); v8 12360 test/cctest/test-api.cc v8::Handle<v8::Object> global = context->Global(); v8 12362 test/cctest/test-api.cc v8::Handle<v8::String> some_property = v8::String::New("a"); v8 12368 test/cctest/test-api.cc global->Set(some_property, v8::Int32::New(7)); v8 12381 test/cctest/test-api.cc global->ForceSet(some_property, v8::Int32::New(8)); v8 12392 test/cctest/test-api.cc CHECK_EQ(3, global->Get(v8::String::New("b"))->Int32Value()); v8 12399 test/cctest/test-api.cc v8::HandleScope scope; v8 12400 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(); v8 12402 test/cctest/test-api.cc v8::Handle<v8::Object> global = context->Global(); v8 12405 test/cctest/test-api.cc v8::Handle<v8::String> simple_property = v8::String::New("p"); v8 12406 test/cctest/test-api.cc global->Set(simple_property, v8::Int32::New(4), v8::DontDelete); v8 12421 test/cctest/test-api.cc static v8::Handle<v8::Boolean> ForceDeleteDeleter( v8 12426 test/cctest/test-api.cc return v8::Handle<v8::Boolean>(); v8 12428 test/cctest/test-api.cc return v8::True(); v8 12437 test/cctest/test-api.cc v8::HandleScope scope; v8 12438 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(); v8 12441 test/cctest/test-api.cc v8::Handle<v8::Object> global = context->Global(); v8 12443 test/cctest/test-api.cc v8::Handle<v8::String> some_property = v8::String::New("a"); v8 12444 test/cctest/test-api.cc global->Set(some_property, v8::Integer::New(42), v8::DontDelete); v8 12469 test/cctest/test-api.cc v8::HandleScope scope; v8 12490 test/cctest/test-api.cc v8::HandleScope outer_scope; v8 12491 test/cctest/test-api.cc v8::Persistent<v8::Context> ctx1 = v8::Context::New(); v8 12492 test/cctest/test-api.cc v8::Persistent<v8::Context> ctx2 = v8::Context::New(); v8 12496 test/cctest/test-api.cc v8::HandleScope inner_scope; v8 12498 test/cctest/test-api.cc v8::Local<v8::Value> foo = ctx1->Global()->Get(v8_str("foo")); v8 12501 test/cctest/test-api.cc v8::Local<v8::Value> res = CompileRun( v8 12508 test/cctest/test-api.cc v8::Handle<v8::String> G_property = v8::String::New("G"); v8 12528 test/cctest/test-api.cc v8::Persistent<Context> calling_context0; v8 12529 test/cctest/test-api.cc v8::Persistent<Context> calling_context1; v8 12530 test/cctest/test-api.cc v8::Persistent<Context> calling_context2; v8 12536 test/cctest/test-api.cc static v8::Handle<Value> GetCallingContextCallback(const v8::Arguments& args) { v8 12541 test/cctest/test-api.cc return v8::Integer::New(42); v8 12546 test/cctest/test-api.cc v8::HandleScope scope; v8 12560 test/cctest/test-api.cc Local<v8::FunctionTemplate> callback_templ = v8 12561 test/cctest/test-api.cc v8::FunctionTemplate::New(GetCallingContextCallback); v8 12596 test/cctest/test-api.cc v8::HandleScope scope; v8 12600 test/cctest/test-api.cc v8::Handle<v8::Value> result = CompileRun("var x = 43; x"); v8 12612 test/cctest/test-api.cc v8::HandleScope scope; v8 12614 test/cctest/test-api.cc v8::Handle<v8::Object> obj = v8::Object::New(); v8 12615 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> func_templ = v8::FunctionTemplate::New(); v8 12616 test/cctest/test-api.cc v8::Handle<v8::String> foo_string = v8::String::New("foo"); v8 12618 test/cctest/test-api.cc v8::Handle<v8::Object> obj_clone = obj->Clone(); v8 12619 test/cctest/test-api.cc obj_clone->Set(foo_string, v8::String::New("Hello")); v8 12626 test/cctest/test-api.cc v8::HandleScope scope; v8 12643 test/cctest/test-api.cc v8::HandleScope scope; v8 12650 test/cctest/test-api.cc v8::kExternalPixelArray, v8 12664 test/cctest/test-api.cc v8::Handle<v8::Object> obj = v8::Object::New(); v8 12665 test/cctest/test-api.cc i::Handle<i::JSObject> jsobj = v8::Utils::OpenHandle(*obj); v8 12670 test/cctest/test-api.cc obj->Set(v8_str("field"), v8::Int32::New(1503)); v8 12672 test/cctest/test-api.cc v8::Handle<v8::Value> result = CompileRun("pixels.field"); v8 12831 test/cctest/test-api.cc CHECK_EQ(77, v8::Object::Cast(*result)->Get(v8_str("0"))->Int32Value()); v8 12837 test/cctest/test-api.cc CHECK_EQ(77, v8::Object::Cast(*result)->Get(v8_str("0"))->Int32Value()); v8 12838 test/cctest/test-api.cc CHECK_EQ(23, v8::Object::Cast(*result)->Get(v8_str("1"))->Int32Value()); v8 13032 test/cctest/test-api.cc v8::HandleScope scope; v8 13036 test/cctest/test-api.cc v8::Handle<v8::Object> obj = v8::Object::New(); v8 13046 test/cctest/test-api.cc static v8::Handle<Value> NotHandledIndexedPropertyGetter( v8 13050 test/cctest/test-api.cc return v8::Handle<Value>(); v8 13054 test/cctest/test-api.cc static v8::Handle<Value> NotHandledIndexedPropertySetter( v8 13059 test/cctest/test-api.cc return v8::Handle<Value>(); v8 13064 test/cctest/test-api.cc v8::HandleScope scope; v8 13071 test/cctest/test-api.cc v8::kExternalPixelArray, v8 13076 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> templ = v8::ObjectTemplate::New(); v8 13079 test/cctest/test-api.cc v8::Handle<v8::Object> obj = templ->NewInstance(); v8 13082 test/cctest/test-api.cc v8::Handle<v8::Value> result = CompileRun("pixels[1]"); v8 13098 test/cctest/test-api.cc case v8::kExternalByteArray: v8 13099 test/cctest/test-api.cc case v8::kExternalUnsignedByteArray: v8 13100 test/cctest/test-api.cc case v8::kExternalPixelArray: v8 13103 test/cctest/test-api.cc case v8::kExternalShortArray: v8 13104 test/cctest/test-api.cc case v8::kExternalUnsignedShortArray: v8 13107 test/cctest/test-api.cc case v8::kExternalIntArray: v8 13108 test/cctest/test-api.cc case v8::kExternalUnsignedIntArray: v8 13109 test/cctest/test-api.cc case v8::kExternalFloatArray: v8 13112 test/cctest/test-api.cc case v8::kExternalDoubleArray: v8 13128 test/cctest/test-api.cc v8::HandleScope scope; v8 13150 test/cctest/test-api.cc v8::Handle<v8::Object> obj = v8::Object::New(); v8 13151 test/cctest/test-api.cc i::Handle<i::JSObject> jsobj = v8::Utils::OpenHandle(*obj); v8 13158 test/cctest/test-api.cc obj->Set(v8_str("field"), v8::Int32::New(1503)); v8 13160 test/cctest/test-api.cc v8::Handle<v8::Value> result = CompileRun("ext_array.field"); v8 13297 test/cctest/test-api.cc if (array_type == v8::kExternalDoubleArray || v8 13298 test/cctest/test-api.cc array_type == v8::kExternalFloatArray) { v8 13315 test/cctest/test-api.cc if (array_type != v8::kExternalFloatArray && v8 13316 test/cctest/test-api.cc array_type != v8::kExternalDoubleArray) { v8 13338 test/cctest/test-api.cc (array_type == v8::kExternalPixelArray) ? 255 : 0; v8 13365 test/cctest/test-api.cc (array_type == v8::kExternalUnsignedByteArray || v8 13366 test/cctest/test-api.cc array_type == v8::kExternalUnsignedShortArray || v8 13367 test/cctest/test-api.cc array_type == v8::kExternalUnsignedIntArray); v8 13368 test/cctest/test-api.cc bool is_pixel_data = array_type == v8::kExternalPixelArray; v8 13436 test/cctest/test-api.cc CHECK_EQ(77, v8::Object::Cast(*result)->Get(v8_str("0"))->Int32Value()); v8 13442 test/cctest/test-api.cc CHECK_EQ(77, v8::Object::Cast(*result)->Get(v8_str("0"))->Int32Value()); v8 13443 test/cctest/test-api.cc CHECK_EQ(23, v8::Object::Cast(*result)->Get(v8_str("1"))->Int32Value()); v8 13458 test/cctest/test-api.cc v8::Handle<v8::Object> large_obj = v8::Object::New(); v8 13531 test/cctest/test-api.cc v8::Handle<v8::Object> obj2 = v8::Object::New(); v8 13532 test/cctest/test-api.cc obj2->Set(v8_str("ee_test_field"), v8::Int32::New(256)); v8 13533 test/cctest/test-api.cc obj2->Set(v8_str(""), v8::Int32::New(1503)); v8 13545 test/cctest/test-api.cc v8::Handle<v8::Object> obj2 = v8::Object::New(); v8 13546 test/cctest/test-api.cc obj2->Set(v8_str("ee_test_field_2"), v8::Int32::New(256)); v8 13551 test/cctest/test-api.cc obj2->Set(v8_str(""), v8::Int32::New(1503)); v8 13559 test/cctest/test-api.cc v8::Handle<v8::Object> obj2 = v8::Object::New(); v8 13560 test/cctest/test-api.cc obj2->Set(v8_str("ee_test_field_2"), v8::Int32::New(256)); v8 13573 test/cctest/test-api.cc v8::Handle<v8::Object> obj2 = v8::Object::New(); v8 13575 test/cctest/test-api.cc obj2->Set(v8_str("ee_test_field3"), v8::Int32::New(256)); v8 13584 test/cctest/test-api.cc v8::Handle<v8::Object> obj3 = v8::Object::New(); v8 13585 test/cctest/test-api.cc obj3->Set(v8_str("ee_test_field3"), v8::Int32::New(256)); v8 13596 test/cctest/test-api.cc v8::Handle<v8::Object> obj3 = v8::Object::New(); v8 13597 test/cctest/test-api.cc obj3->Set(v8_str("ee_test_field4"), v8::Int32::New(256)); v8 13604 test/cctest/test-api.cc v8::Handle<v8::Object> obj2 = v8::Object::New(); v8 13605 test/cctest/test-api.cc obj2->Set(v8_str("ee_test_field4"), v8::Int32::New(256)); v8 13617 test/cctest/test-api.cc v8::kExternalByteArray, v8 13625 test/cctest/test-api.cc v8::kExternalUnsignedByteArray, v8 13633 test/cctest/test-api.cc v8::kExternalPixelArray, v8 13641 test/cctest/test-api.cc v8::kExternalShortArray, v8 13649 test/cctest/test-api.cc v8::kExternalUnsignedShortArray, v8 13657 test/cctest/test-api.cc v8::kExternalIntArray, v8 13665 test/cctest/test-api.cc v8::kExternalUnsignedIntArray, v8 13673 test/cctest/test-api.cc v8::kExternalFloatArray, v8 13681 test/cctest/test-api.cc v8::kExternalDoubleArray, v8 13699 test/cctest/test-api.cc v8::HandleScope scope; v8 13704 test/cctest/test-api.cc v8::Handle<v8::Object> obj = v8::Object::New(); v8 13717 test/cctest/test-api.cc ExternalArrayInfoTestHelper(v8::kExternalByteArray); v8 13718 test/cctest/test-api.cc ExternalArrayInfoTestHelper(v8::kExternalUnsignedByteArray); v8 13719 test/cctest/test-api.cc ExternalArrayInfoTestHelper(v8::kExternalShortArray); v8 13720 test/cctest/test-api.cc ExternalArrayInfoTestHelper(v8::kExternalUnsignedShortArray); v8 13721 test/cctest/test-api.cc ExternalArrayInfoTestHelper(v8::kExternalIntArray); v8 13722 test/cctest/test-api.cc ExternalArrayInfoTestHelper(v8::kExternalUnsignedIntArray); v8 13723 test/cctest/test-api.cc ExternalArrayInfoTestHelper(v8::kExternalFloatArray); v8 13724 test/cctest/test-api.cc ExternalArrayInfoTestHelper(v8::kExternalDoubleArray); v8 13725 test/cctest/test-api.cc ExternalArrayInfoTestHelper(v8::kExternalPixelArray); v8 13730 test/cctest/test-api.cc v8::HandleScope scope; v8 13733 test/cctest/test-api.cc v8::Handle<v8::Script> dep = v8::Script::Compile(v8::String::New(source)); v8 13734 test/cctest/test-api.cc v8::Handle<v8::Script> indep = v8::Script::New(v8::String::New(source)); v8 13735 test/cctest/test-api.cc c1->Global()->Set(v8::String::New("foo"), v8::Integer::New(100)); v8 13739 test/cctest/test-api.cc c2->Global()->Set(v8::String::New("foo"), v8::Integer::New(101)); v8 13746 test/cctest/test-api.cc v8::HandleScope scope; v8 13748 test/cctest/test-api.cc v8::TryCatch try_catch; v8 13750 test/cctest/test-api.cc v8::Handle<v8::String> src = v8::String::New(source); v8 13751 test/cctest/test-api.cc v8::Handle<v8::String> origin = v8::String::New("stack-trace-test"); v8 13752 test/cctest/test-api.cc v8::Script::New(src, origin)->Run(); v8 13754 test/cctest/test-api.cc v8::String::Utf8Value stack(try_catch.StackTrace()); v8 13764 test/cctest/test-api.cc v8::HandleScope scope; v8 13765 test/cctest/test-api.cc v8::String::Utf8Value func_name(frame->GetFunctionName()); v8 13766 test/cctest/test-api.cc v8::String::Utf8Value script_name(frame->GetScriptName()); v8 13781 test/cctest/test-api.cc v8::Handle<Value> AnalyzeStackInNativeCode(const v8::Arguments& args) { v8 13782 test/cctest/test-api.cc v8::HandleScope scope; v8 13791 test/cctest/test-api.cc v8::Handle<v8::StackTrace> stackTrace = v8 13792 test/cctest/test-api.cc v8::StackTrace::CurrentStackTrace(10, v8::StackTrace::kOverview); v8 13807 test/cctest/test-api.cc v8::Handle<v8::StackTrace> stackTrace = v8 13808 test/cctest/test-api.cc v8::StackTrace::CurrentStackTrace(10, v8::StackTrace::kDetailed); v8 13829 test/cctest/test-api.cc return v8::Undefined(); v8 13837 test/cctest/test-api.cc v8::HandleScope scope; v8 13838 test/cctest/test-api.cc v8::Handle<v8::String> origin = v8::String::New("capture-stack-trace-test"); v8 13841 test/cctest/test-api.cc v8::FunctionTemplate::New(AnalyzeStackInNativeCode)); v8 13855 test/cctest/test-api.cc v8::Handle<v8::String> overview_src = v8::String::New(overview_source); v8 13856 test/cctest/test-api.cc v8::Handle<Value> overview_result( v8 13857 test/cctest/test-api.cc v8::Script::New(overview_src, origin)->Run()); v8 13870 test/cctest/test-api.cc v8::Handle<v8::String> detailed_src = v8::String::New(detailed_source); v8 13872 test/cctest/test-api.cc v8::Handle<v8::Integer> line_offset = v8::Integer::New(3); v8 13873 test/cctest/test-api.cc v8::Handle<v8::Integer> column_offset = v8::Integer::New(5); v8 13874 test/cctest/test-api.cc v8::ScriptOrigin detailed_origin(origin, line_offset, column_offset); v8 13875 test/cctest/test-api.cc v8::Handle<v8::Script> detailed_script( v8 13876 test/cctest/test-api.cc v8::Script::New(detailed_src, &detailed_origin)); v8 13877 test/cctest/test-api.cc v8::Handle<Value> detailed_result(detailed_script->Run()); v8 13886 test/cctest/test-api.cc v8::Handle<v8::StackTrace> stack_trace = message->GetStackTrace(); v8 13896 test/cctest/test-api.cc v8::HandleScope scope; v8 13898 test/cctest/test-api.cc v8::V8::AddMessageListener(StackTraceForUncaughtExceptionListener); v8 13899 test/cctest/test-api.cc v8::V8::SetCaptureStackTraceForUncaughtExceptions(true); v8 13908 test/cctest/test-api.cc v8::Local<v8::Object> global = env->Global(); v8 13912 test/cctest/test-api.cc v8::V8::SetCaptureStackTraceForUncaughtExceptions(false); v8 13913 test/cctest/test-api.cc v8::V8::RemoveMessageListeners(StackTraceForUncaughtExceptionListener); v8 13918 test/cctest/test-api.cc v8::HandleScope scope; v8 13920 test/cctest/test-api.cc v8::V8::SetCaptureStackTraceForUncaughtExceptions(true, v8 13922 test/cctest/test-api.cc v8::StackTrace::kDetailed); v8 13933 test/cctest/test-api.cc v8::V8::SetCaptureStackTraceForUncaughtExceptions(false); v8 13940 test/cctest/test-api.cc v8::Handle<v8::StackTrace> stack_trace = message->GetStackTrace(); v8 13954 test/cctest/test-api.cc v8::HandleScope scope; v8 13973 test/cctest/test-api.cc v8::V8::AddMessageListener(RethrowStackTraceHandler); v8 13974 test/cctest/test-api.cc v8::V8::SetCaptureStackTraceForUncaughtExceptions(true); v8 13976 test/cctest/test-api.cc v8::V8::SetCaptureStackTraceForUncaughtExceptions(false); v8 13977 test/cctest/test-api.cc v8::V8::RemoveMessageListeners(RethrowStackTraceHandler); v8 13983 test/cctest/test-api.cc v8::Handle<v8::StackTrace> stack_trace = message->GetStackTrace(); v8 13996 test/cctest/test-api.cc v8::HandleScope scope; v8 14009 test/cctest/test-api.cc v8::V8::AddMessageListener(RethrowPrimitiveStackTraceHandler); v8 14010 test/cctest/test-api.cc v8::V8::SetCaptureStackTraceForUncaughtExceptions(true); v8 14012 test/cctest/test-api.cc v8::V8::SetCaptureStackTraceForUncaughtExceptions(false); v8 14013 test/cctest/test-api.cc v8::V8::RemoveMessageListeners(RethrowPrimitiveStackTraceHandler); v8 14020 test/cctest/test-api.cc v8::Handle<v8::StackTrace> stack_trace = message->GetStackTrace(); v8 14030 test/cctest/test-api.cc v8::HandleScope scope; v8 14035 test/cctest/test-api.cc v8::V8::AddMessageListener(RethrowExistingStackTraceHandler); v8 14036 test/cctest/test-api.cc v8::V8::SetCaptureStackTraceForUncaughtExceptions(true); v8 14038 test/cctest/test-api.cc v8::V8::SetCaptureStackTraceForUncaughtExceptions(false); v8 14039 test/cctest/test-api.cc v8::V8::RemoveMessageListeners(RethrowExistingStackTraceHandler); v8 14046 test/cctest/test-api.cc v8::Handle<v8::StackTrace> stack_trace = message->GetStackTrace(); v8 14055 test/cctest/test-api.cc v8::HandleScope scope; v8 14060 test/cctest/test-api.cc v8::V8::AddMessageListener(RethrowBogusErrorStackTraceHandler); v8 14061 test/cctest/test-api.cc v8::V8::SetCaptureStackTraceForUncaughtExceptions(true); v8 14063 test/cctest/test-api.cc v8::V8::SetCaptureStackTraceForUncaughtExceptions(false); v8 14064 test/cctest/test-api.cc v8::V8::RemoveMessageListeners(RethrowBogusErrorStackTraceHandler); v8 14068 test/cctest/test-api.cc v8::Handle<Value> AnalyzeStackOfEvalWithSourceURL(const v8::Arguments& args) { v8 14069 test/cctest/test-api.cc v8::HandleScope scope; v8 14070 test/cctest/test-api.cc v8::Handle<v8::StackTrace> stackTrace = v8 14071 test/cctest/test-api.cc v8::StackTrace::CurrentStackTrace(10, v8::StackTrace::kDetailed); v8 14073 test/cctest/test-api.cc v8::Handle<v8::String> url = v8_str("eval_url"); v8 14075 test/cctest/test-api.cc v8::Handle<v8::String> name = v8 14080 test/cctest/test-api.cc return v8::Undefined(); v8 14085 test/cctest/test-api.cc v8::HandleScope scope; v8 14088 test/cctest/test-api.cc v8::FunctionTemplate::New(AnalyzeStackOfEvalWithSourceURL)); v8 14108 test/cctest/test-api.cc v8::HandleScope scope; v8 14118 test/cctest/test-api.cc v8::HandleScope scope; v8 14126 test/cctest/test-api.cc finished = v8::V8::IdleNotification(); v8 14138 test/cctest/test-api.cc v8::HandleScope scope; v8 14146 test/cctest/test-api.cc finished = v8::V8::IdleNotification(IdlePauseInMs); v8 14158 test/cctest/test-api.cc v8::HandleScope scope; v8 14166 test/cctest/test-api.cc finished = v8::V8::IdleNotification(IdlePauseInMs); v8 14178 test/cctest/test-api.cc v8::HandleScope scope; v8 14182 test/cctest/test-api.cc v8::V8::IdleNotification(kShortIdlePauseInMs); v8 14185 test/cctest/test-api.cc v8::Persistent<v8::Context> ctx = v8::Context::New(); v8 14190 test/cctest/test-api.cc v8::V8::ContextDisposedNotification(); v8 14191 test/cctest/test-api.cc v8::V8::IdleNotification(kLongIdlePauseInMs); v8 14199 test/cctest/test-api.cc finished = v8::V8::IdleNotification(kShortIdlePauseInMs); v8 14207 test/cctest/test-api.cc static v8::Handle<Value> GetStackLimitCallback(const v8::Arguments& args) { v8 14210 test/cctest/test-api.cc return v8::Undefined(); v8 14233 test/cctest/test-api.cc v8::ResourceConstraints constraints; v8 14235 test/cctest/test-api.cc CHECK(v8::SetResourceConstraints(&constraints)); v8 14238 test/cctest/test-api.cc v8::HandleScope scope; v8 14240 test/cctest/test-api.cc Local<v8::FunctionTemplate> fun_templ = v8 14241 test/cctest/test-api.cc v8::FunctionTemplate::New(GetStackLimitCallback); v8 14253 test/cctest/test-api.cc v8::Locker locker; v8 14258 test/cctest/test-api.cc v8::ResourceConstraints constraints; v8 14260 test/cctest/test-api.cc CHECK(v8::SetResourceConstraints(&constraints)); v8 14263 test/cctest/test-api.cc v8::HandleScope scope; v8 14265 test/cctest/test-api.cc Local<v8::FunctionTemplate> fun_templ = v8 14266 test/cctest/test-api.cc v8::FunctionTemplate::New(GetStackLimitCallback); v8 14274 test/cctest/test-api.cc v8::Locker locker; v8 14281 test/cctest/test-api.cc v8::HandleScope scope; v8 14283 test/cctest/test-api.cc v8::HeapStatistics heap_statistics; v8 14286 test/cctest/test-api.cc v8::V8::GetHeapStatistics(&heap_statistics); v8 14292 test/cctest/test-api.cc class VisitorImpl : public v8::ExternalResourceVisitor { v8 14305 test/cctest/test-api.cc v8::String::ExternalStringResource* resource = v8 14323 test/cctest/test-api.cc v8::String::ExternalStringResource* resource1_; v8 14324 test/cctest/test-api.cc v8::String::ExternalStringResource* resource2_; v8 14330 test/cctest/test-api.cc v8::HandleScope scope; v8 14335 test/cctest/test-api.cc v8::Local<v8::String> string1 = v8::String::NewExternal(resource1); v8 14337 test/cctest/test-api.cc v8::Local<v8::String> string2 = v8::String::NewExternal(resource2); v8 14344 test/cctest/test-api.cc v8::V8::VisitExternalResources(&visitor); v8 14379 test/cctest/test-api.cc v8::HandleScope scope; v8 14381 test/cctest/test-api.cc v8::TryCatch try_catch; v8 14424 test/cctest/test-api.cc v8::Handle<v8::Value> number = v8::Number::New(test_value); v8 14442 test/cctest/test-api.cc v8::Handle<v8::Value> date = v8::Date::New(test_value); v8 14462 test/cctest/test-api.cc static v8::Handle<Value> SpaghettiIncident(const v8::Arguments& args) { v8 14463 test/cctest/test-api.cc v8::HandleScope scope; v8 14464 test/cctest/test-api.cc v8::TryCatch tc; v8 14465 test/cctest/test-api.cc v8::Handle<v8::String> str(args[0]->ToString()); v8 14469 test/cctest/test-api.cc return v8::Undefined(); v8 14476 test/cctest/test-api.cc v8::HandleScope scope; v8 14479 test/cctest/test-api.cc v8::String::New("s"), v8 14480 test/cctest/test-api.cc v8::FunctionTemplate::New(SpaghettiIncident)->GetFunction()); v8 14481 test/cctest/test-api.cc v8::TryCatch try_catch; v8 14496 test/cctest/test-api.cc v8::String::Utf8Value value(try_catch.Exception()); v8 14502 test/cctest/test-api.cc v8::V8::Initialize(); v8 14504 test/cctest/test-api.cc v8::HandleScope scope; v8 14505 test/cctest/test-api.cc v8::Persistent<Context> context; v8 14506 test/cctest/test-api.cc v8::Persistent<Context> other_context; v8 14518 test/cctest/test-api.cc v8::HandleScope scope; v8 14521 test/cctest/test-api.cc Local<v8::String> obj = v8::String::New(""); v8 14542 test/cctest/test-api.cc v8::HandleScope scope; v8 14564 test/cctest/test-api.cc v8::HandleScope scope; v8 14567 test/cctest/test-api.cc v8::TryCatch try_catch; v8 14570 test/cctest/test-api.cc v8::Handle<v8::Message> message = try_catch.Message(); v8 14591 test/cctest/test-api.cc v8::HandleScope scope; v8 14593 test/cctest/test-api.cc v8::ScriptOrigin origin = v8::ScriptOrigin(v8::String::New("test")); v8 14594 test/cctest/test-api.cc v8::Handle<v8::String> script = v8::String::New( v8 14596 test/cctest/test-api.cc v8::Script::Compile(script, &origin)->Run(); v8 14597 test/cctest/test-api.cc v8::Local<v8::Function> f = v8::Local<v8::Function>::Cast( v8 14598 test/cctest/test-api.cc env->Global()->Get(v8::String::New("f"))); v8 14599 test/cctest/test-api.cc v8::Local<v8::Function> g = v8::Local<v8::Function>::Cast( v8 14600 test/cctest/test-api.cc env->Global()->Get(v8::String::New("g"))); v8 14602 test/cctest/test-api.cc v8::ScriptOrigin script_origin_f = f->GetScriptOrigin(); v8 14603 test/cctest/test-api.cc CHECK_EQ("test", *v8::String::AsciiValue(script_origin_f.ResourceName())); v8 14606 test/cctest/test-api.cc v8::ScriptOrigin script_origin_g = g->GetScriptOrigin(); v8 14607 test/cctest/test-api.cc CHECK_EQ("test", *v8::String::AsciiValue(script_origin_g.ResourceName())); v8 14612 test/cctest/test-api.cc v8::HandleScope scope; v8 14614 test/cctest/test-api.cc v8::ScriptOrigin origin = v8::ScriptOrigin(v8::String::New("test")); v8 14615 test/cctest/test-api.cc v8::Handle<v8::String> script = v8::String::New( v8 14617 test/cctest/test-api.cc v8::Script::Compile(script, &origin)->Run(); v8 14618 test/cctest/test-api.cc v8::Local<v8::Function> f = v8::Local<v8::Function>::Cast( v8 14619 test/cctest/test-api.cc env->Global()->Get(v8::String::New("f"))); v8 14620 test/cctest/test-api.cc CHECK_EQ("foo.bar.baz", *v8::String::AsciiValue(f->GetInferredName())); v8 14624 test/cctest/test-api.cc v8::HandleScope scope; v8 14626 test/cctest/test-api.cc v8::ScriptOrigin origin = v8::ScriptOrigin(v8::String::New("test")); v8 14627 test/cctest/test-api.cc v8::Handle<v8::String> script = v8::String::New( v8 14629 test/cctest/test-api.cc v8::Script::Compile(script, &origin)->Run(); v8 14630 test/cctest/test-api.cc v8::Local<v8::Function> f = v8::Local<v8::Function>::Cast( v8 14631 test/cctest/test-api.cc env->Global()->Get(v8::String::New("f"))); v8 14632 test/cctest/test-api.cc v8::Local<v8::Function> g = v8::Local<v8::Function>::Cast( v8 14633 test/cctest/test-api.cc env->Global()->Get(v8::String::New("g"))); v8 14640 test/cctest/test-api.cc v8::HandleScope scope; v8 14642 test/cctest/test-api.cc v8::ScriptOrigin origin = v8::ScriptOrigin(v8::String::New("test"), v8 14643 test/cctest/test-api.cc v8::Integer::New(3), v8::Integer::New(2)); v8 14644 test/cctest/test-api.cc v8::Handle<v8::String> script = v8::String::New( v8 14646 test/cctest/test-api.cc v8::Script::Compile(script, &origin)->Run(); v8 14647 test/cctest/test-api.cc v8::Local<v8::Function> foo = v8::Local<v8::Function>::Cast( v8 14648 test/cctest/test-api.cc env->Global()->Get(v8::String::New("foo"))); v8 14649 test/cctest/test-api.cc v8::Local<v8::Function> bar = v8::Local<v8::Function>::Cast( v8 14650 test/cctest/test-api.cc env->Global()->Get(v8::String::New("bar"))); v8 14657 test/cctest/test-api.cc v8::HandleScope scope; v8 14659 test/cctest/test-api.cc v8::ScriptOrigin origin = v8::ScriptOrigin(v8::String::New("test"), v8 14660 test/cctest/test-api.cc v8::Integer::New(3), v8::Integer::New(2)); v8 14661 test/cctest/test-api.cc v8::Handle<v8::String> scriptSource = v8::String::New( v8 14663 test/cctest/test-api.cc v8::Local<v8::Script> script(v8::Script::Compile(scriptSource, &origin)); v8 14665 test/cctest/test-api.cc v8::Local<v8::Function> foo = v8::Local<v8::Function>::Cast( v8 14666 test/cctest/test-api.cc env->Global()->Get(v8::String::New("foo"))); v8 14667 test/cctest/test-api.cc v8::Local<v8::Function> bar = v8::Local<v8::Function>::Cast( v8 14668 test/cctest/test-api.cc env->Global()->Get(v8::String::New("bar"))); v8 14674 test/cctest/test-api.cc static v8::Handle<Value> GetterWhichReturns42(Local<String> name, v8 14688 test/cctest/test-api.cc v8::HandleScope scope; v8 14705 test/cctest/test-api.cc v8::Local<v8::Script> script; v8 14706 test/cctest/test-api.cc script = v8::Script::Compile(v8_str("new C1();")); v8 14708 test/cctest/test-api.cc v8::Handle<v8::Object> c1 = v8::Handle<v8::Object>::Cast(script->Run()); v8 14713 test/cctest/test-api.cc script = v8::Script::Compile(v8_str("new C2();")); v8 14715 test/cctest/test-api.cc v8::Handle<v8::Object> c2 = v8::Handle<v8::Object>::Cast(script->Run()); v8 14722 test/cctest/test-api.cc static v8::Handle<Value> NamedPropertyGetterWhichReturns42( v8 14728 test/cctest/test-api.cc static v8::Handle<Value> NamedPropertySetterWhichSetsYOnThisTo23( v8 14733 test/cctest/test-api.cc return v8::Handle<Value>(); v8 14738 test/cctest/test-api.cc v8::HandleScope scope; v8 14754 test/cctest/test-api.cc v8::Local<v8::Script> script; v8 14755 test/cctest/test-api.cc script = v8::Script::Compile(v8_str("new C1();")); v8 14757 test/cctest/test-api.cc v8::Handle<v8::Object> c1 = v8::Handle<v8::Object>::Cast(script->Run()); v8 14762 test/cctest/test-api.cc script = v8::Script::Compile(v8_str("new C2();")); v8 14764 test/cctest/test-api.cc v8::Handle<v8::Object> c2 = v8::Handle<v8::Object>::Cast(script->Run()); v8 14777 test/cctest/test-api.cc v8::HandleScope scope; v8 14779 test/cctest/test-api.cc v8::Local<v8::Script> script; v8 14782 test/cctest/test-api.cc v8::Local<v8::Object> prototype = v8::Object::New(); v8 14789 test/cctest/test-api.cc script = v8::Script::Compile(v8_str("new C1();")); v8 14793 test/cctest/test-api.cc v8::Handle<v8::Object> c1 = v8::Handle<v8::Object>::Cast(script->Run()); v8 14808 test/cctest/test-api.cc script = v8::Script::Compile(v8_str("new C1();")); v8 14810 test/cctest/test-api.cc v8::Handle<v8::Object> c1 = v8::Handle<v8::Object>::Cast(script->Run()); v8 14840 test/cctest/test-api.cc v8::V8::AddGCPrologueCallback(PrologueCallback); v8 14841 test/cctest/test-api.cc v8::V8::AddGCEpilogueCallback(EpilogueCallback); v8 14847 test/cctest/test-api.cc v8::V8::AddGCPrologueCallback(PrologueCallbackSecond); v8 14848 test/cctest/test-api.cc v8::V8::AddGCEpilogueCallback(EpilogueCallbackSecond); v8 14854 test/cctest/test-api.cc v8::V8::RemoveGCPrologueCallback(PrologueCallback); v8 14855 test/cctest/test-api.cc v8::V8::RemoveGCEpilogueCallback(EpilogueCallback); v8 14861 test/cctest/test-api.cc v8::V8::RemoveGCPrologueCallback(PrologueCallbackSecond); v8 14862 test/cctest/test-api.cc v8::V8::RemoveGCEpilogueCallback(EpilogueCallbackSecond); v8 14873 test/cctest/test-api.cc v8::HandleScope scope; v8 14900 test/cctest/test-api.cc v8::HandleScope scope; v8 14922 test/cctest/test-api.cc v8::HandleScope scope; v8 14947 test/cctest/test-api.cc v8::HandleScope scope; v8 14972 test/cctest/test-api.cc v8::HandleScope scope; v8 14990 test/cctest/test-api.cc v8::HandleScope scope; v8 15003 test/cctest/test-api.cc i::Handle<i::String> string = v8::Utils::OpenHandle(String::Cast(*result)); v8 15088 test/cctest/test-api.cc v8::V8::Initialize(); v8 15089 test/cctest/test-api.cc v8::V8::SetFailedAccessCheckCallbackFunction(&FailedAccessCheckCallbackGC); v8 15091 test/cctest/test-api.cc v8::HandleScope scope; v8 15095 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New(); v8 15098 test/cctest/test-api.cc v8::Handle<v8::Value>(), v8 15104 test/cctest/test-api.cc v8::Handle<v8::Object> global0 = context0->Global(); v8 15118 test/cctest/test-api.cc v8::Handle<v8::Value> result = CompileRun("other.x = new Object()"); v8 15158 test/cctest/test-api.cc v8::V8::SetFailedAccessCheckCallbackFunction(NULL); v8 15162 test/cctest/test-api.cc CHECK(v8::Isolate::GetCurrent() != NULL); v8 15163 test/cctest/test-api.cc v8::Isolate* isolate = v8::Isolate::GetCurrent(); v8 15169 test/cctest/test-api.cc v8::Isolate* current_isolate = v8::Isolate::GetCurrent(); v8 15170 test/cctest/test-api.cc v8::Isolate* isolate = v8::Isolate::New(); v8 15174 test/cctest/test-api.cc CHECK(current_isolate == v8::Isolate::GetCurrent()); v8 15176 test/cctest/test-api.cc v8::V8::SetFatalErrorHandler(StoringErrorCallback); v8 15184 test/cctest/test-api.cc v8::HandleScope scope; v8 15186 test/cctest/test-api.cc v8::Isolate* current_isolate = v8::Isolate::GetCurrent(); v8 15195 test/cctest/test-api.cc CHECK_EQ(v8::Isolate::GetCurrent(), current_isolate); v8 15202 test/cctest/test-api.cc v8::V8::SetFatalErrorHandler(StoringErrorCallback); v8 15205 test/cctest/test-api.cc v8::HandleScope scope; v8 15209 test/cctest/test-api.cc v8::Isolate* isolate = v8::Isolate::GetCurrent(); v8 15219 test/cctest/test-api.cc v8::HandleScope scope; v8 15223 test/cctest/test-api.cc v8::Isolate* isolate = v8::Isolate::New(); v8 15228 test/cctest/test-api.cc v8::HandleScope scope_new; v8 15250 test/cctest/test-api.cc v8::V8::SetFatalErrorHandler(StoringErrorCallback); v8 15261 test/cctest/test-api.cc v8::Isolate* isolate = v8::Isolate::New(); v8 15264 test/cctest/test-api.cc v8::HandleScope scope; v8 15268 test/cctest/test-api.cc v8::V8::SetFatalErrorHandler(StoringErrorCallback); v8 15278 test/cctest/test-api.cc v8::Isolate* isolate1 = v8::Isolate::New(); v8 15280 test/cctest/test-api.cc v8::Persistent<v8::Context> context1 = v8::Context::New(); v8 15283 test/cctest/test-api.cc v8::Context::Scope cscope(context1); v8 15284 test/cctest/test-api.cc v8::HandleScope scope; v8 15291 test/cctest/test-api.cc v8::Isolate* isolate2 = v8::Isolate::New(); v8 15292 test/cctest/test-api.cc v8::Persistent<v8::Context> context2; v8 15295 test/cctest/test-api.cc v8::Isolate::Scope iscope(isolate2); v8 15296 test/cctest/test-api.cc context2 = v8::Context::New(); v8 15297 test/cctest/test-api.cc v8::Context::Scope cscope(context2); v8 15298 test/cctest/test-api.cc v8::HandleScope scope; v8 15306 test/cctest/test-api.cc v8::Context::Scope cscope(context1); v8 15307 test/cctest/test-api.cc v8::HandleScope scope; v8 15315 test/cctest/test-api.cc v8::Persistent<v8::Context> context_default = v8::Context::New(); v8 15318 test/cctest/test-api.cc v8::Context::Scope cscope(context_default); v8 15319 test/cctest/test-api.cc v8::HandleScope scope; v8 15337 test/cctest/test-api.cc v8::Isolate::Scope iscope(isolate2); v8 15338 test/cctest/test-api.cc v8::Context::Scope cscope(context2); v8 15339 test/cctest/test-api.cc v8::HandleScope scope; v8 15344 test/cctest/test-api.cc v8::Context::Scope cscope(context1); v8 15345 test/cctest/test-api.cc v8::HandleScope scope; v8 15350 test/cctest/test-api.cc v8::Isolate::Scope iscope(isolate2); v8 15357 test/cctest/test-api.cc v8::V8::SetFatalErrorHandler(StoringErrorCallback); v8 15370 test/cctest/test-api.cc v8::Context::Scope cscope(context_default); v8 15371 test/cctest/test-api.cc v8::HandleScope scope; v8 15377 test/cctest/test-api.cc v8::Isolate::Scope isolate_scope(isolate); v8 15378 test/cctest/test-api.cc v8::HandleScope scope; v8 15391 test/cctest/test-api.cc class IsolateThread : public v8::internal::Thread { v8 15406 test/cctest/test-api.cc v8::Isolate* isolate_; v8 15412 test/cctest/test-api.cc v8::Isolate* isolate1 = v8::Isolate::New(); v8 15413 test/cctest/test-api.cc v8::Isolate* isolate2 = v8::Isolate::New(); v8 15422 test/cctest/test-api.cc int result1 = CalcFibonacci(v8::Isolate::GetCurrent(), 21); v8 15423 test/cctest/test-api.cc int result2 = CalcFibonacci(v8::Isolate::GetCurrent(), 12); v8 15440 test/cctest/test-api.cc v8::Isolate* isolate = v8::Isolate::New(); v8 15441 test/cctest/test-api.cc Persistent<v8::Context> context; v8 15443 test/cctest/test-api.cc v8::Isolate::Scope isolate_scope(isolate); v8 15444 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 15445 test/cctest/test-api.cc context = v8::Context::New(); v8 15446 test/cctest/test-api.cc v8::Context::Scope context_scope(context); v8 15452 test/cctest/test-api.cc v8::Isolate::Scope isolate_scope(isolate); v8 15453 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 15454 test/cctest/test-api.cc context = v8::Context::New(); v8 15455 test/cctest/test-api.cc v8::Context::Scope context_scope(context); v8 15462 test/cctest/test-api.cc class InitDefaultIsolateThread : public v8::internal::Thread { v8 15481 test/cctest/test-api.cc v8::V8::IgnoreOutOfMemoryException(); v8 15486 test/cctest/test-api.cc v8::ResourceConstraints constraints; v8 15489 test/cctest/test-api.cc v8::SetResourceConstraints(&constraints); v8 15494 test/cctest/test-api.cc v8::V8::SetFatalErrorHandler(NULL); v8 15498 test/cctest/test-api.cc v8::V8::SetCounterFunction(NULL); v8 15502 test/cctest/test-api.cc v8::V8::SetCreateHistogramFunction(NULL); v8 15506 test/cctest/test-api.cc v8::V8::SetAddHistogramSampleFunction(NULL); v8 15558 test/cctest/test-api.cc v8::HandleScope scope; v8 15567 test/cctest/test-api.cc v8::HandleScope scope; v8 15581 test/cctest/test-api.cc v8::HandleScope scope; v8 15590 test/cctest/test-api.cc v8::HandleScope scope; v8 15604 test/cctest/test-api.cc v8::HandleScope scope; v8 15613 test/cctest/test-api.cc v8::HandleScope scope; v8 15628 test/cctest/test-api.cc v8::HandleScope scope; v8 15639 test/cctest/test-api.cc v8::HandleScope scope; v8 15667 test/cctest/test-api.cc v8::HandleScope scope; v8 15695 test/cctest/test-api.cc v8::HandleScope scope; v8 15697 test/cctest/test-api.cc context->Global()->Set(v8_str("cell"), v8_str("value"), v8::DontDelete); v8 15718 test/cctest/test-api.cc v8::HandleScope scope; v8 15721 test/cctest/test-api.cc v8::Handle<v8::RegExp> re = v8::RegExp::New(v8_str("foo"), v8::RegExp::kNone); v8 15724 test/cctest/test-api.cc CHECK_EQ(v8::RegExp::kNone, re->GetFlags()); v8 15726 test/cctest/test-api.cc re = v8::RegExp::New(v8_str("bar"), v8 15727 test/cctest/test-api.cc static_cast<v8::RegExp::Flags>(v8::RegExp::kIgnoreCase | v8 15728 test/cctest/test-api.cc v8::RegExp::kGlobal)); v8 15731 test/cctest/test-api.cc CHECK_EQ(v8::RegExp::kIgnoreCase | v8::RegExp::kGlobal, v8 15734 test/cctest/test-api.cc re = v8::RegExp::New(v8_str("baz"), v8 15735 test/cctest/test-api.cc static_cast<v8::RegExp::Flags>(v8::RegExp::kIgnoreCase | v8 15736 test/cctest/test-api.cc v8::RegExp::kMultiline)); v8 15739 test/cctest/test-api.cc CHECK_EQ(v8::RegExp::kIgnoreCase | v8::RegExp::kMultiline, v8 15742 test/cctest/test-api.cc re = CompileRun("/quux/").As<v8::RegExp>(); v8 15745 test/cctest/test-api.cc CHECK_EQ(v8::RegExp::kNone, re->GetFlags()); v8 15747 test/cctest/test-api.cc re = CompileRun("/quux/gm").As<v8::RegExp>(); v8 15750 test/cctest/test-api.cc CHECK_EQ(v8::RegExp::kGlobal | v8::RegExp::kMultiline, v8 15757 test/cctest/test-api.cc re = v8::RegExp::New(v8_str("foobar"), v8::RegExp::kNone); v8 15760 test/cctest/test-api.cc CHECK_EQ(v8::RegExp::kNone, re->GetFlags()); v8 15762 test/cctest/test-api.cc re = v8::RegExp::New(v8_str("foobarbaz"), v8 15763 test/cctest/test-api.cc static_cast<v8::RegExp::Flags>(v8::RegExp::kIgnoreCase | v8 15764 test/cctest/test-api.cc v8::RegExp::kMultiline)); v8 15767 test/cctest/test-api.cc CHECK_EQ(v8::RegExp::kIgnoreCase | v8::RegExp::kMultiline, v8 15774 test/cctest/test-api.cc re->Set(v8_str("property"), v8::Integer::New(32)); v8 15775 test/cctest/test-api.cc v8::Handle<v8::Value> value(CompileRun("re.property")); v8 15778 test/cctest/test-api.cc v8::TryCatch try_catch; v8 15779 test/cctest/test-api.cc re = v8::RegExp::New(v8_str("foo["), v8::RegExp::kNone); v8 15788 test/cctest/test-api.cc v8::HandleScope handleScope; v8 15791 test/cctest/test-api.cc v8::Handle<v8::Object> globalProxy = localContext->Global(); v8 15792 test/cctest/test-api.cc v8::Handle<Value> global = globalProxy->GetPrototype(); v8 15806 test/cctest/test-api.cc static v8::Handle<v8::Value> Getter(v8::Local<v8::String> property, v8 15812 test/cctest/test-api.cc static v8::Handle<v8::Array> Enumerator(const v8::AccessorInfo& info) { v8 15813 test/cctest/test-api.cc v8::Handle<v8::Array> result = v8::Array::New(); v8 15820 test/cctest/test-api.cc v8::HandleScope handle_scope; v8 15822 test/cctest/test-api.cc v8::Context::Scope context_scope(context.local()); v8 15824 test/cctest/test-api.cc v8::Handle<v8::ObjectTemplate> tmpl = v8::ObjectTemplate::New(); v8 15827 test/cctest/test-api.cc v8::Handle<v8::Array> result = v8::Handle<v8::Array>::Cast(CompileRun( v8 15835 test/cctest/test-api.cc v8::HandleScope scope; v8 15837 test/cctest/test-api.cc v8::Handle<v8::Object> proxy = context->Global(); v8 15838 test/cctest/test-api.cc v8::Handle<v8::Function> define_property = v8 15853 test/cctest/test-api.cc Set(v8_str("context_id"), v8::Integer::New(id)); v8 15871 test/cctest/test-api.cc Local<v8::FunctionTemplate> tmpl = v8::FunctionTemplate::New(); v8 15970 test/cctest/test-api.cc return Handle<v8::Integer>(); v8 15981 test/cctest/test-api.cc Handle<v8::Integer> HasOwnPropertyIndexedPropertyQuery( v8 15983 test/cctest/test-api.cc if (index == 42) return v8_num(1).As<v8::Integer>(); v8 15984 test/cctest/test-api.cc return Handle<v8::Integer>(); v8 15988 test/cctest/test-api.cc Handle<v8::Integer> HasOwnPropertyNamedPropertyQuery( v8 15990 test/cctest/test-api.cc if (property->Equals(v8_str("foo"))) return v8_num(1).As<v8::Integer>(); v8 15991 test/cctest/test-api.cc return Handle<v8::Integer>(); v8 15995 test/cctest/test-api.cc Handle<v8::Integer> HasOwnPropertyNamedPropertyQuery2( v8 15997 test/cctest/test-api.cc if (property->Equals(v8_str("bar"))) return v8_num(1).As<v8::Integer>(); v8 15998 test/cctest/test-api.cc return Handle<v8::Integer>(); v8 16009 test/cctest/test-api.cc v8::HandleScope scope; v8 16123 test/cctest/test-api.cc v8::HandleScope scope; v8 16152 test/cctest/test-api.cc static v8::Handle<Value> NonObjectThis(const v8::Arguments& args) { v8 16153 test/cctest/test-api.cc return v8::Undefined(); v8 16158 test/cctest/test-api.cc v8::HandleScope scope; v8 16160 test/cctest/test-api.cc Handle<FunctionTemplate> templ = v8::FunctionTemplate::New(NonObjectThis); v8 16170 test/cctest/test-api.cc v8::HandleScope scope; v8 16174 test/cctest/test-api.cc Local<v8::Object> obj = templ->NewInstance(); v8 16176 test/cctest/test-api.cc obj->Set(v8_str("1"), v8_str("DONT_CHANGE"), v8::ReadOnly); v8 16179 test/cctest/test-api.cc obj->Set(v8_num(2), v8_str("DONT_CHANGE"), v8::ReadOnly); v8 16184 test/cctest/test-api.cc obj->Set(v8_str("2000000000"), v8_str("DONT_CHANGE"), v8::ReadOnly); v8 16191 test/cctest/test-api.cc v8::HandleScope scope; v8 16194 test/cctest/test-api.cc { v8::HandleScope temp_scope; v8 16221 test/cctest/test-api.cc if (type == v8::ACCESS_GET && v8 16238 test/cctest/test-api.cc Local<ObjectTemplate> no_proto_template = v8::ObjectTemplate::New(); v8 16245 test/cctest/test-api.cc Local<FunctionTemplate> hidden_proto_template = v8::FunctionTemplate::New(); v8 16249 test/cctest/test-api.cc v8::FunctionTemplate::New(); v8 16256 test/cctest/test-api.cc Persistent<Context> context = v8::Context::New(); v8 16326 test/cctest/test-api.cc v8::HandleScope scope; v8 16367 test/cctest/test-api.cc Persistent<Context> foreign_context = v8::Context::New(); v8 16488 test/cctest/test-api.cc v8::HandleScope scope; v8 16490 test/cctest/test-api.cc v8::Handle<v8::FunctionTemplate> recursive_runtime = v8 16491 test/cctest/test-api.cc v8::FunctionTemplate::New(RecursiveCall); v8 16495 test/cctest/test-api.cc v8::V8::AddCallCompletedCallback(CallCompletedCallback1); v8 16496 test/cctest/test-api.cc v8::V8::AddCallCompletedCallback(CallCompletedCallback1); v8 16497 test/cctest/test-api.cc v8::V8::AddCallCompletedCallback(CallCompletedCallback2); v8 16500 test/cctest/test-api.cc v8::Script::Compile(v8::String::New("recursion(0)")); v8 16506 test/cctest/test-api.cc v8::V8::RemoveCallCompletedCallback(CallCompletedCallback1); v8 16514 test/cctest/test-api.cc v8::Handle<Value> args[] = { v8_num(0) }; v8 16521 test/cctest/test-api.cc v8::HandleScope scope; v8 16527 test/cctest/test-api.cc v8::HandleScope scope; v8 16533 test/cctest/test-api.cc v8::HandleScope scope; v8 16535 test/cctest/test-api.cc v8::V8::AddCallCompletedCallback(CallCompletedCallbackNoException); v8 16541 test/cctest/test-api.cc v8::HandleScope scope; v8 16543 test/cctest/test-api.cc v8::V8::AddCallCompletedCallback(CallCompletedCallbackException); v8 16590 test/cctest/test-api.cc v8::HandleScope scope; v8 16624 test/cctest/test-api.cc v8::HandleScope scope; v8 16626 test/cctest/test-api.cc v8::Isolate* isolate = v8::Isolate::GetCurrent(); v8 16628 test/cctest/test-api.cc CHECK(*v8::Utils::OpenHandle(*v8::Undefined()) == *undefined_value); v8 16629 test/cctest/test-api.cc CHECK(*v8::Utils::OpenHandle(*v8::Undefined(isolate)) == *undefined_value); v8 16631 test/cctest/test-api.cc CHECK(*v8::Utils::OpenHandle(*v8::Null()) == *null_value); v8 16632 test/cctest/test-api.cc CHECK(*v8::Utils::OpenHandle(*v8::Null(isolate)) == *null_value); v8 16634 test/cctest/test-api.cc CHECK(*v8::Utils::OpenHandle(*v8::True()) == *true_value); v8 16635 test/cctest/test-api.cc CHECK(*v8::Utils::OpenHandle(*v8::True(isolate)) == *true_value); v8 16637 test/cctest/test-api.cc CHECK(*v8::Utils::OpenHandle(*v8::False()) == *false_value); v8 16638 test/cctest/test-api.cc CHECK(*v8::Utils::OpenHandle(*v8::False(isolate)) == *false_value); v8 16643 test/cctest/test-api.cc v8::V8::SetFatalErrorHandler(CountingErrorCallback); v8 16644 test/cctest/test-api.cc v8::Utils::ReportApiFailure("StaticGetters()", "Kill V8"); v8 16648 test/cctest/test-api.cc CHECK(v8::Undefined().IsEmpty()); v8 16650 test/cctest/test-api.cc CHECK(v8::Undefined(isolate).IsEmpty()); v8 16652 test/cctest/test-api.cc CHECK(v8::Null().IsEmpty()); v8 16654 test/cctest/test-api.cc CHECK(v8::Null(isolate).IsEmpty()); v8 16656 test/cctest/test-api.cc CHECK(v8::True().IsEmpty()); v8 16658 test/cctest/test-api.cc CHECK(v8::True(isolate).IsEmpty()); v8 16660 test/cctest/test-api.cc CHECK(v8::False().IsEmpty()); v8 16662 test/cctest/test-api.cc CHECK(v8::False(isolate).IsEmpty()); v8 16668 test/cctest/test-api.cc v8::Isolate* isolate = v8::Isolate::GetCurrent(); v8 16686 test/cctest/test-api.cc v8::HandleScope scope; v8 16688 test/cctest/test-api.cc v8::Isolate* isolate = v8::Isolate::GetCurrent(); v8 16690 test/cctest/test-api.cc CHECK(*v8::Utils::OpenHandle(*v8::String::Empty()) == *empty_string); v8 16691 test/cctest/test-api.cc CHECK(*v8::Utils::OpenHandle(*v8::String::Empty(isolate)) == *empty_string); v8 16696 test/cctest/test-api.cc v8::V8::SetFatalErrorHandler(CountingErrorCallback); v8 16697 test/cctest/test-api.cc v8::Utils::ReportApiFailure("StringEmpty()", "Kill V8"); v8 16701 test/cctest/test-api.cc CHECK(v8::String::Empty().IsEmpty()); v8 16703 test/cctest/test-api.cc CHECK(v8::String::Empty(isolate).IsEmpty()); v8 16788 test/cctest/test-api.cc v8::internal::FLAG_allow_natives_syntax = true; v8 16789 test/cctest/test-api.cc v8::HandleScope scope; v8 16797 test/cctest/test-api.cc v8::DEFAULT, v8 16798 test/cctest/test-api.cc v8::None, v8 16799 test/cctest/test-api.cc v8::AccessorSignature::New(templ)); v8 16816 test/cctest/test-api.cc v8::internal::FLAG_allow_natives_syntax = true; v8 16817 test/cctest/test-api.cc v8::HandleScope scope; v8 16826 test/cctest/test-api.cc v8::DEFAULT, v8 16827 test/cctest/test-api.cc v8::None, v8 16828 test/cctest/test-api.cc v8::AccessorSignature::New(templ)); v8 16845 test/cctest/test-api.cc v8::internal::FLAG_allow_natives_syntax = true; v8 16846 test/cctest/test-api.cc v8::HandleScope scope; v8 16854 test/cctest/test-api.cc v8::DEFAULT, v8 16855 test/cctest/test-api.cc v8::None, v8 16856 test/cctest/test-api.cc v8::AccessorSignature::New(templ)); v8 16881 test/cctest/test-api.cc v8::HandleScope scope; v8 16925 test/cctest/test-api.cc v8::HandleScope scope; v8 16947 test/cctest/test-api.cc v8::HandleScope scope; v8 16968 test/cctest/test-api.cc v8::HandleScope scope; v8 36 test/cctest/test-assembler-arm.cc using namespace v8::internal; v8 46 test/cctest/test-assembler-arm.cc static v8::Persistent<v8::Context> env; v8 51 test/cctest/test-assembler-arm.cc env = v8::Context::New(); v8 60 test/cctest/test-assembler-arm.cc v8::HandleScope scope; v8 86 test/cctest/test-assembler-arm.cc v8::HandleScope scope; v8 123 test/cctest/test-assembler-arm.cc v8::HandleScope scope; v8 169 test/cctest/test-assembler-arm.cc v8::HandleScope scope; v8 224 test/cctest/test-assembler-arm.cc v8::HandleScope scope; v8 359 test/cctest/test-assembler-arm.cc v8::HandleScope scope; v8 395 test/cctest/test-assembler-arm.cc v8::HandleScope scope; v8 438 test/cctest/test-assembler-arm.cc v8::HandleScope scope; v8 615 test/cctest/test-assembler-arm.cc v8::HandleScope scope; v8 726 test/cctest/test-assembler-arm.cc v8::HandleScope scope; v8 841 test/cctest/test-assembler-arm.cc v8::HandleScope scope; v8 952 test/cctest/test-assembler-arm.cc v8::HandleScope scope; v8 1017 test/cctest/test-assembler-arm.cc v8::HandleScope scope; v8 39 test/cctest/test-assembler-ia32.cc using namespace v8::internal; v8 47 test/cctest/test-assembler-ia32.cc static v8::Persistent<v8::Context> env; v8 52 test/cctest/test-assembler-ia32.cc env = v8::Context::New(); v8 61 test/cctest/test-assembler-ia32.cc v8::HandleScope scope; v8 63 test/cctest/test-assembler-ia32.cc v8::internal::byte buffer[256]; v8 89 test/cctest/test-assembler-ia32.cc v8::HandleScope scope; v8 91 test/cctest/test-assembler-ia32.cc v8::internal::byte buffer[256]; v8 127 test/cctest/test-assembler-ia32.cc v8::HandleScope scope; v8 129 test/cctest/test-assembler-ia32.cc v8::internal::byte buffer[256]; v8 173 test/cctest/test-assembler-ia32.cc v8::HandleScope scope; v8 175 test/cctest/test-assembler-ia32.cc v8::internal::byte buffer[256]; v8 208 test/cctest/test-assembler-ia32.cc v8::HandleScope scope; v8 210 test/cctest/test-assembler-ia32.cc v8::internal::byte buffer[256]; v8 239 test/cctest/test-assembler-ia32.cc v8::HandleScope scope; v8 241 test/cctest/test-assembler-ia32.cc v8::internal::byte buffer[256]; v8 265 test/cctest/test-assembler-ia32.cc v8::HandleScope scope; v8 268 test/cctest/test-assembler-ia32.cc v8::internal::byte buffer[256]; v8 311 test/cctest/test-assembler-ia32.cc v8::HandleScope scope; v8 314 test/cctest/test-assembler-ia32.cc v8::internal::byte buffer[256]; v8 346 test/cctest/test-assembler-ia32.cc v8::HandleScope scope; v8 347 test/cctest/test-assembler-ia32.cc v8::internal::byte buffer[256]; v8 401 test/cctest/test-assembler-ia32.cc v8::HandleScope scope; v8 414 test/cctest/test-assembler-ia32.cc v8::HandleScope scope; v8 415 test/cctest/test-assembler-ia32.cc v8::internal::byte buffer[1024]; v8 38 test/cctest/test-assembler-mips.cc using namespace v8::internal; v8 47 test/cctest/test-assembler-mips.cc static v8::Persistent<v8::Context> env; v8 55 test/cctest/test-assembler-mips.cc env = v8::Context::New(); v8 65 test/cctest/test-assembler-mips.cc v8::HandleScope scope; v8 90 test/cctest/test-assembler-mips.cc v8::HandleScope scope; v8 128 test/cctest/test-assembler-mips.cc v8::HandleScope scope; v8 269 test/cctest/test-assembler-mips.cc v8::HandleScope scope; v8 348 test/cctest/test-assembler-mips.cc v8::HandleScope scope; v8 408 test/cctest/test-assembler-mips.cc v8::HandleScope scope; v8 479 test/cctest/test-assembler-mips.cc v8::HandleScope scope; v8 551 test/cctest/test-assembler-mips.cc v8::HandleScope scope; v8 632 test/cctest/test-assembler-mips.cc v8::HandleScope scope; v8 736 test/cctest/test-assembler-mips.cc v8::HandleScope scope; v8 765 test/cctest/test-assembler-mips.cc v8::HandleScope scope; v8 839 test/cctest/test-assembler-mips.cc v8::HandleScope scope; v8 982 test/cctest/test-assembler-mips.cc v8::HandleScope scope; v8 1073 test/cctest/test-assembler-mips.cc v8::HandleScope scope; v8 1135 test/cctest/test-assembler-mips.cc v8::HandleScope scope; v8 1271 test/cctest/test-assembler-mips.cc v8::HandleScope scope; v8 81 test/cctest/test-assembler-x64.cc static const v8::internal::Register arg1 = rcx; v8 82 test/cctest/test-assembler-x64.cc static const v8::internal::Register arg2 = rdx; v8 84 test/cctest/test-assembler-x64.cc static const v8::internal::Register arg1 = rdi; v8 85 test/cctest/test-assembler-x64.cc static const v8::internal::Register arg2 = rsi; v8 91 test/cctest/test-assembler-x64.cc static v8::Persistent<v8::Context> env; v8 96 test/cctest/test-assembler-x64.cc env = v8::Context::New(); v8 364 test/cctest/test-assembler-x64.cc v8::HandleScope scope; v8 377 test/cctest/test-assembler-x64.cc v8::HandleScope scope; v8 378 test/cctest/test-assembler-x64.cc v8::internal::byte buffer[1024]; v8 431 test/cctest/test-assembler-x64.cc v8::internal::Handle<v8::internal::Object>( v8 35 test/cctest/test-ast.cc using namespace v8::internal; v8 38 test/cctest/test-ast.cc v8::internal::V8::Initialize(NULL); v8 41 test/cctest/test-bignum-dtoa.cc using namespace v8::internal; v8 36 test/cctest/test-bignum.cc using namespace v8::internal; v8 41 test/cctest/test-compiler.cc using namespace v8::internal; v8 43 test/cctest/test-compiler.cc static v8::Persistent<v8::Context> env; v8 47 test/cctest/test-compiler.cc class PrintExtension : public v8::Extension { v8 50 test/cctest/test-compiler.cc virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction( v8 52 test/cctest/test-compiler.cc static v8::Handle<v8::Value> Print(const v8::Arguments& args); v8 61 test/cctest/test-compiler.cc v8::Handle<v8::FunctionTemplate> PrintExtension::GetNativeFunction( v8 63 test/cctest/test-compiler.cc return v8::FunctionTemplate::New(PrintExtension::Print); v8 67 test/cctest/test-compiler.cc v8::Handle<v8::Value> PrintExtension::Print(const v8::Arguments& args) { v8 70 test/cctest/test-compiler.cc v8::HandleScope scope; v8 71 test/cctest/test-compiler.cc v8::Handle<v8::Value> arg = args[i]; v8 72 test/cctest/test-compiler.cc v8::Handle<v8::String> string_obj = arg->ToString(); v8 82 test/cctest/test-compiler.cc return v8::Undefined(); v8 87 test/cctest/test-compiler.cc v8::DeclareExtension kPrintExtensionDeclaration(&kPrintExtension); v8 92 test/cctest/test-compiler.cc v8::HandleScope scope; v8 94 test/cctest/test-compiler.cc v8::ExtensionConfiguration config(2, extensions); v8 95 test/cctest/test-compiler.cc env = v8::Context::New(&config); v8 97 test/cctest/test-compiler.cc v8::HandleScope scope; v8 150 test/cctest/test-compiler.cc v8::HandleScope scope; v8 171 test/cctest/test-compiler.cc v8::HandleScope scope; v8 191 test/cctest/test-compiler.cc v8::HandleScope scope; v8 212 test/cctest/test-compiler.cc v8::HandleScope scope; v8 219 test/cctest/test-compiler.cc v8::HandleScope scope; v8 234 test/cctest/test-compiler.cc v8::HandleScope scope; v8 266 test/cctest/test-compiler.cc v8::HandleScope scope; v8 288 test/cctest/test-compiler.cc v8::HandleScope scope; v8 321 test/cctest/test-compiler.cc v8::HandleScope scope; v8 333 test/cctest/test-compiler.cc v8::HandleScope scope; v8 334 test/cctest/test-compiler.cc v8::ScriptOrigin origin = v8::ScriptOrigin(v8::String::New("test")); v8 346 test/cctest/test-compiler.cc v8::Handle<v8::String> script_body = v8::String::New(buffer.start()); v8 347 test/cctest/test-compiler.cc v8::Script::Compile(script_body, &origin)->Run(); v8 348 test/cctest/test-compiler.cc v8::Local<v8::Function> f = v8::Local<v8::Function>::Cast( v8 349 test/cctest/test-compiler.cc env->Global()->Get(v8::String::New("f"))); v8 363 test/cctest/test-compiler.cc v8::HandleScope scope; v8 366 test/cctest/test-compiler.cc env->Global()->Set(v8::String::New("x"), v8::Integer::New(i)); v8 376 test/cctest/test-compiler.cc Handle<JSFunction> fun1 = v8::Utils::OpenHandle( v8 377 test/cctest/test-compiler.cc *v8::Local<v8::Function>::Cast(env->Global()->Get(v8_str("closure1")))); v8 378 test/cctest/test-compiler.cc Handle<JSFunction> fun2 = v8::Utils::OpenHandle( v8 379 test/cctest/test-compiler.cc *v8::Local<v8::Function>::Cast(env->Global()->Get(v8_str("closure2")))); v8 390 test/cctest/test-compiler.cc v8::Local<v8::Function> fun = v8 391 test/cctest/test-compiler.cc v8::Local<v8::Function>::Cast(obj->Get(v8_str(property_name))); v8 392 test/cctest/test-compiler.cc return v8::Utils::OpenHandle(*fun); v8 408 test/cctest/test-compiler.cc v8::internal::EmbeddedVector<char, 128> decode_buffer; v8 409 test/cctest/test-compiler.cc v8::internal::EmbeddedVector<char, 128> smi_hex_buffer; v8 426 test/cctest/test-compiler.cc v8::HandleScope scope; v8 10 test/cctest/test-conversions.cc using namespace v8::internal; v8 29 test/cctest/test-cpu-profiler.cc static v8::Persistent<v8::Context> env; v8 32 test/cctest/test-cpu-profiler.cc if (env.IsEmpty()) env = v8::Context::New(); v8 33 test/cctest/test-cpu-profiler.cc v8::HandleScope scope; v8 301 test/cctest/test-cpu-profiler.cc v8::HandleScope scope; v8 304 test/cctest/test-cpu-profiler.cc CHECK_EQ(0, v8::CpuProfiler::GetProfilesCount()); v8 305 test/cctest/test-cpu-profiler.cc v8::Local<v8::String> name1 = v8::String::New("1"); v8 306 test/cctest/test-cpu-profiler.cc v8::CpuProfiler::StartProfiling(name1); v8 307 test/cctest/test-cpu-profiler.cc const v8::CpuProfile* p1 = v8::CpuProfiler::StopProfiling(name1); v8 309 test/cctest/test-cpu-profiler.cc CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); v8 311 test/cctest/test-cpu-profiler.cc CHECK_EQ(p1, v8::CpuProfiler::FindProfile(uid1)); v8 312 test/cctest/test-cpu-profiler.cc const_cast<v8::CpuProfile*>(p1)->Delete(); v8 314 test/cctest/test-cpu-profiler.cc CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1)); v8 316 test/cctest/test-cpu-profiler.cc v8::Local<v8::String> name2 = v8::String::New("2"); v8 317 test/cctest/test-cpu-profiler.cc v8::CpuProfiler::StartProfiling(name2); v8 318 test/cctest/test-cpu-profiler.cc const v8::CpuProfile* p2 = v8::CpuProfiler::StopProfiling(name2); v8 320 test/cctest/test-cpu-profiler.cc CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); v8 323 test/cctest/test-cpu-profiler.cc CHECK_EQ(p2, v8::CpuProfiler::FindProfile(uid2)); v8 324 test/cctest/test-cpu-profiler.cc CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1)); v8 325 test/cctest/test-cpu-profiler.cc v8::Local<v8::String> name3 = v8::String::New("3"); v8 326 test/cctest/test-cpu-profiler.cc v8::CpuProfiler::StartProfiling(name3); v8 327 test/cctest/test-cpu-profiler.cc const v8::CpuProfile* p3 = v8::CpuProfiler::StopProfiling(name3); v8 329 test/cctest/test-cpu-profiler.cc CHECK_EQ(2, v8::CpuProfiler::GetProfilesCount()); v8 332 test/cctest/test-cpu-profiler.cc CHECK_EQ(p3, v8::CpuProfiler::FindProfile(uid3)); v8 333 test/cctest/test-cpu-profiler.cc CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1)); v8 334 test/cctest/test-cpu-profiler.cc const_cast<v8::CpuProfile*>(p2)->Delete(); v8 335 test/cctest/test-cpu-profiler.cc CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); v8 336 test/cctest/test-cpu-profiler.cc CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid2)); v8 337 test/cctest/test-cpu-profiler.cc CHECK_EQ(p3, v8::CpuProfiler::FindProfile(uid3)); v8 338 test/cctest/test-cpu-profiler.cc const_cast<v8::CpuProfile*>(p3)->Delete(); v8 340 test/cctest/test-cpu-profiler.cc CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid3)); v8 341 test/cctest/test-cpu-profiler.cc CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid2)); v8 342 test/cctest/test-cpu-profiler.cc CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1)); v8 347 test/cctest/test-cpu-profiler.cc v8::HandleScope scope; v8 350 test/cctest/test-cpu-profiler.cc CHECK_EQ(0, v8::CpuProfiler::GetProfilesCount()); v8 351 test/cctest/test-cpu-profiler.cc v8::Local<v8::String> name1 = v8::String::New("1"); v8 352 test/cctest/test-cpu-profiler.cc v8::CpuProfiler::StartProfiling(name1); v8 353 test/cctest/test-cpu-profiler.cc const v8::CpuProfile* p1 = v8::CpuProfiler::StopProfiling(name1); v8 355 test/cctest/test-cpu-profiler.cc CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); v8 357 test/cctest/test-cpu-profiler.cc CHECK_EQ(p1, v8::CpuProfiler::FindProfile(uid1)); v8 358 test/cctest/test-cpu-profiler.cc v8::Local<v8::String> token1 = v8::String::New("token1"); v8 359 test/cctest/test-cpu-profiler.cc const v8::CpuProfile* p1_t1 = v8::CpuProfiler::FindProfile(uid1, token1); v8 362 test/cctest/test-cpu-profiler.cc CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); v8 363 test/cctest/test-cpu-profiler.cc const_cast<v8::CpuProfile*>(p1)->Delete(); v8 365 test/cctest/test-cpu-profiler.cc CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1)); v8 366 test/cctest/test-cpu-profiler.cc CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid1, token1)); v8 367 test/cctest/test-cpu-profiler.cc const_cast<v8::CpuProfile*>(p1_t1)->Delete(); v8 370 test/cctest/test-cpu-profiler.cc v8::Local<v8::String> name2 = v8::String::New("2"); v8 371 test/cctest/test-cpu-profiler.cc v8::CpuProfiler::StartProfiling(name2); v8 372 test/cctest/test-cpu-profiler.cc v8::Local<v8::String> token2 = v8::String::New("token2"); v8 373 test/cctest/test-cpu-profiler.cc const v8::CpuProfile* p2_t2 = v8::CpuProfiler::StopProfiling(name2, token2); v8 375 test/cctest/test-cpu-profiler.cc CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); v8 378 test/cctest/test-cpu-profiler.cc const v8::CpuProfile* p2 = v8::CpuProfiler::FindProfile(uid2); v8 380 test/cctest/test-cpu-profiler.cc v8::Local<v8::String> name3 = v8::String::New("3"); v8 381 test/cctest/test-cpu-profiler.cc v8::CpuProfiler::StartProfiling(name3); v8 382 test/cctest/test-cpu-profiler.cc const v8::CpuProfile* p3 = v8::CpuProfiler::StopProfiling(name3); v8 384 test/cctest/test-cpu-profiler.cc CHECK_EQ(2, v8::CpuProfiler::GetProfilesCount()); v8 387 test/cctest/test-cpu-profiler.cc CHECK_EQ(p3, v8::CpuProfiler::FindProfile(uid3)); v8 388 test/cctest/test-cpu-profiler.cc const_cast<v8::CpuProfile*>(p2_t2)->Delete(); v8 389 test/cctest/test-cpu-profiler.cc CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); v8 390 test/cctest/test-cpu-profiler.cc CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid2)); v8 391 test/cctest/test-cpu-profiler.cc CHECK_EQ(p3, v8::CpuProfiler::FindProfile(uid3)); v8 392 test/cctest/test-cpu-profiler.cc const_cast<v8::CpuProfile*>(p2)->Delete(); v8 393 test/cctest/test-cpu-profiler.cc CHECK_EQ(1, v8::CpuProfiler::GetProfilesCount()); v8 394 test/cctest/test-cpu-profiler.cc CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid2)); v8 395 test/cctest/test-cpu-profiler.cc CHECK_EQ(p3, v8::CpuProfiler::FindProfile(uid3)); v8 396 test/cctest/test-cpu-profiler.cc const_cast<v8::CpuProfile*>(p3)->Delete(); v8 398 test/cctest/test-cpu-profiler.cc CHECK_EQ(NULL, v8::CpuProfiler::FindProfile(uid3)); v8 35 test/cctest/test-dataflow.cc using namespace v8::internal; v8 38 test/cctest/test-dataflow.cc v8::internal::V8::Initialize(NULL); v8 34 test/cctest/test-date.cc using namespace v8::internal; v8 122 test/cctest/test-date.cc v8::HandleScope scope; v8 142 test/cctest/test-debug.cc inline v8::Context* operator->() { return *context_; } v8 143 test/cctest/test-debug.cc inline v8::Context* operator*() { return *context_; } v8 146 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 150 test/cctest/test-debug.cc v8::Utils::OpenHandle(*context_)->security_token()); v8 153 test/cctest/test-debug.cc v8::Utils::OpenHandle(*context_->Global()))); v8 154 test/cctest/test-debug.cc Handle<v8::internal::String> debug_string = v8 158 test/cctest/test-debug.cc ::v8::internal::kNonStrictMode); v8 162 test/cctest/test-debug.cc v8::Persistent<v8::Context> context_; v8 170 test/cctest/test-debug.cc static v8::Local<v8::Function> CompileFunction(DebugLocalContext* env, v8 173 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(source))->Run(); v8 174 test/cctest/test-debug.cc return v8::Local<v8::Function>::Cast( v8 175 test/cctest/test-debug.cc (*env)->Global()->Get(v8::String::New(function_name))); v8 180 test/cctest/test-debug.cc static v8::Local<v8::Function> CompileFunction(const char* source, v8 182 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(source))->Run(); v8 183 test/cctest/test-debug.cc return v8::Local<v8::Function>::Cast( v8 184 test/cctest/test-debug.cc v8::Context::GetCurrent()->Global()->Get(v8::String::New(function_name))); v8 190 test/cctest/test-debug.cc Handle<v8::internal::JSFunction> f = v8::Utils::OpenHandle(*fun); v8 191 test/cctest/test-debug.cc Handle<v8::internal::SharedFunctionInfo> shared(f->shared()); v8 200 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 203 test/cctest/test-debug.cc Handle<Object>(v8::internal::Smi::FromInt(++break_point)), v8 212 test/cctest/test-debug.cc return SetBreakPoint(v8::Utils::OpenHandle(*fun), position); v8 225 test/cctest/test-debug.cc v8::Handle<v8::String> str = v8::String::New(buffer.start()); v8 226 test/cctest/test-debug.cc return v8::Script::Compile(str)->Run()->Int32Value(); v8 246 test/cctest/test-debug.cc v8::TryCatch try_catch; v8 247 test/cctest/test-debug.cc v8::Handle<v8::String> str = v8::String::New(buffer.start()); v8 248 test/cctest/test-debug.cc v8::Handle<v8::Value> value = v8::Script::Compile(str)->Run(); v8 273 test/cctest/test-debug.cc v8::TryCatch try_catch; v8 274 test/cctest/test-debug.cc v8::Handle<v8::String> str = v8::String::New(buffer.start()); v8 275 test/cctest/test-debug.cc v8::Handle<v8::Value> value = v8::Script::Compile(str)->Run(); v8 284 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 286 test/cctest/test-debug.cc Handle<Object>(v8::internal::Smi::FromInt(break_point))); v8 297 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(buffer.start()))->Run(); v8 307 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(buffer.start()))->Run(); v8 317 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(buffer.start()))->Run(); v8 328 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(buffer.start()))->Run(); v8 339 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(buffer.start()))->Run(); v8 345 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 346 test/cctest/test-debug.cc debug->ChangeBreakOnException(v8::internal::BreakException, caught); v8 347 test/cctest/test-debug.cc debug->ChangeBreakOnException(v8::internal::BreakUncaughtException, uncaught); v8 354 test/cctest/test-debug.cc v8::Script::Compile( v8 355 test/cctest/test-debug.cc v8::String::New("debug.Debug.setBreakOnException()"))->Run(); v8 357 test/cctest/test-debug.cc v8::Script::Compile( v8 358 test/cctest/test-debug.cc v8::String::New("debug.Debug.clearBreakOnException()"))->Run(); v8 361 test/cctest/test-debug.cc v8::Script::Compile( v8 362 test/cctest/test-debug.cc v8::String::New("debug.Debug.setBreakOnUncaughtException()"))->Run(); v8 364 test/cctest/test-debug.cc v8::Script::Compile( v8 365 test/cctest/test-debug.cc v8::String::New("debug.Debug.clearBreakOnUncaughtException()"))->Run(); v8 372 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 386 test/cctest/test-debug.cc v8::internal::DebugInfoListNode* node = debug->debug_info_list_; v8 464 test/cctest/test-debug.cc v8::Debug::ProcessDebugMessages(); v8 466 test/cctest/test-debug.cc v8::internal::CheckDebuggerUnloaded(check_functions); v8 472 test/cctest/test-debug.cc class TestBreakLocationIterator: public v8::internal::BreakLocationIterator { v8 476 test/cctest/test-debug.cc v8::internal::RelocIterator* it() { return reloc_iterator_; } v8 477 test/cctest/test-debug.cc v8::internal::RelocIterator* it_original() { v8 489 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 492 test/cctest/test-debug.cc Handle<v8::internal::JSFunction> fun = v8::Utils::OpenHandle( v8 497 test/cctest/test-debug.cc Handle<v8::internal::SharedFunctionInfo> shared(fun->shared()); v8 501 test/cctest/test-debug.cc v8::internal::RelocInfo::Mode actual_mode = it1.it()->rinfo()->rmode(); v8 502 test/cctest/test-debug.cc if (actual_mode == v8::internal::RelocInfo::CODE_TARGET_WITH_ID) { v8 503 test/cctest/test-debug.cc actual_mode = v8::internal::RelocInfo::CODE_TARGET; v8 506 test/cctest/test-debug.cc if (mode != v8::internal::RelocInfo::JS_RETURN) { v8 521 test/cctest/test-debug.cc if (actual_mode == v8::internal::RelocInfo::CODE_TARGET_WITH_ID) { v8 522 test/cctest/test-debug.cc actual_mode = v8::internal::RelocInfo::CODE_TARGET; v8 525 test/cctest/test-debug.cc if (mode == v8::internal::RelocInfo::JS_RETURN) { v8 543 test/cctest/test-debug.cc v8::Local<v8::Function> frame_function_name; v8 552 test/cctest/test-debug.cc v8::Local<v8::Function> frame_argument_name; v8 561 test/cctest/test-debug.cc v8::Local<v8::Function> frame_argument_value; v8 570 test/cctest/test-debug.cc v8::Local<v8::Function> frame_local_name; v8 579 test/cctest/test-debug.cc v8::Local<v8::Function> frame_local_value; v8 588 test/cctest/test-debug.cc v8::Local<v8::Function> frame_source_line; v8 597 test/cctest/test-debug.cc v8::Local<v8::Function> frame_source_column; v8 606 test/cctest/test-debug.cc v8::Local<v8::Function> frame_script_name; v8 615 test/cctest/test-debug.cc v8::Local<v8::Function> frame_script_data; v8 624 test/cctest/test-debug.cc v8::Local<v8::Function> compiled_script_data; v8 632 test/cctest/test-debug.cc v8::Handle<v8::Function> frame_count; v8 654 test/cctest/test-debug.cc Debug* debug = v8::internal::Isolate::Current()->debug(); v8 659 test/cctest/test-debug.cc if (event == v8::Break) { v8 664 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[argc] = { exec_state, v8::Integer::New(0) }; v8 665 test/cctest/test-debug.cc v8::Handle<v8::Value> result = frame_function_name->Call(exec_state, v8 671 test/cctest/test-debug.cc v8::Handle<v8::String> function_name(result->ToString()); v8 679 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[argc] = { exec_state }; v8 680 test/cctest/test-debug.cc v8::Handle<v8::Value> result = frame_source_line->Call(exec_state, v8 689 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[argc] = { exec_state }; v8 690 test/cctest/test-debug.cc v8::Handle<v8::Value> result = frame_source_column->Call(exec_state, v8 699 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[argc] = { exec_state }; v8 700 test/cctest/test-debug.cc v8::Handle<v8::Value> result = frame_script_name->Call(exec_state, v8 706 test/cctest/test-debug.cc v8::Handle<v8::String> script_name(result->ToString()); v8 714 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[argc] = { exec_state }; v8 715 test/cctest/test-debug.cc v8::Handle<v8::Value> result = frame_script_data->Call(exec_state, v8 722 test/cctest/test-debug.cc v8::Handle<v8::String> script_data(result->ToString()); v8 732 test/cctest/test-debug.cc } else if (event == v8::AfterCompile && !compiled_script_data.IsEmpty()) { v8 734 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[argc] = { event_data }; v8 735 test/cctest/test-debug.cc v8::Handle<v8::Value> result = compiled_script_data->Call(exec_state, v8 742 test/cctest/test-debug.cc v8::Handle<v8::String> script_data(result->ToString()); v8 765 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 771 test/cctest/test-debug.cc if (event == v8::Break) { v8 773 test/cctest/test-debug.cc } else if (event == v8::Exception) { v8 777 test/cctest/test-debug.cc v8::Local<v8::String> fun_name = v8::String::New("uncaught"); v8 778 test/cctest/test-debug.cc v8::Local<v8::Function> fun = v8 779 test/cctest/test-debug.cc v8::Function::Cast(*event_data->Get(fun_name)); v8 780 test/cctest/test-debug.cc v8::Local<v8::Value> result = *fun->Call(event_data, 0, NULL); v8 790 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[kArgc] = { exec_state }; v8 792 test/cctest/test-debug.cc v8::Handle<v8::Value> result = frame_count->Call(exec_state, kArgc, argv); v8 808 test/cctest/test-debug.cc v8::Handle<v8::Value> expected; // The expected result. v8 818 test/cctest/test-debug.cc v8::Local<v8::Function> evaluate_check_function; v8 825 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 829 test/cctest/test-debug.cc if (event == v8::Break) { v8 832 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[argc] = { exec_state, v8 833 test/cctest/test-debug.cc v8::String::New(checks[i].expr), v8 835 test/cctest/test-debug.cc v8::Handle<v8::Value> result = v8 838 test/cctest/test-debug.cc v8::String::AsciiValue ascii(checks[i].expected->ToString()); v8 852 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 856 test/cctest/test-debug.cc if (event == v8::Break) { v8 871 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 875 test/cctest/test-debug.cc if (event == v8::Break) { v8 898 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 902 test/cctest/test-debug.cc if (event == v8::Break || event == v8::Exception) { v8 907 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[argc] = { exec_state, v8::Integer::New(0) }; v8 908 test/cctest/test-debug.cc v8::Handle<v8::Value> result = frame_function_name->Call(exec_state, v8 911 test/cctest/test-debug.cc v8::String::AsciiValue function_name(result->ToString()); v8 929 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 936 test/cctest/test-debug.cc if (event == v8::Break) { v8 940 test/cctest/test-debug.cc HEAP->CollectGarbage(v8::internal::NEW_SPACE); v8 955 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 959 test/cctest/test-debug.cc if (event == v8::Break) { v8 965 test/cctest/test-debug.cc HEAP->CollectGarbage(v8::internal::NEW_SPACE); v8 968 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 981 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 985 test/cctest/test-debug.cc if (event == v8::Break) { v8 994 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[kArgc] = { exec_state }; v8 996 test/cctest/test-debug.cc v8::Handle<v8::Value> result = v8 1002 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 1006 test/cctest/test-debug.cc v8::V8::TerminateExecution(); v8 1042 test/cctest/test-debug.cc v8::HandleScope scope; v8 1048 test/cctest/test-debug.cc v8::internal::RelocInfo::JS_RETURN, v8 1053 test/cctest/test-debug.cc v8::internal::RelocInfo::CODE_TARGET_CONTEXT, v8 1059 test/cctest/test-debug.cc v8::internal::RelocInfo::CODE_TARGET_CONTEXT, v8 1073 test/cctest/test-debug.cc v8::internal::RelocInfo::CODE_TARGET, v8 1081 test/cctest/test-debug.cc v8::internal::RelocInfo::CODE_TARGET, v8 1088 test/cctest/test-debug.cc Handle<Code> debug_break_0 = v8::internal::ComputeCallDebugBreak(0); v8 1089 test/cctest/test-debug.cc Handle<Code> debug_break_1 = v8::internal::ComputeCallDebugBreak(1); v8 1090 test/cctest/test-debug.cc Handle<Code> debug_break_4 = v8::internal::ComputeCallDebugBreak(4); v8 1095 test/cctest/test-debug.cc v8::internal::RelocInfo::CODE_TARGET_CONTEXT, v8 1101 test/cctest/test-debug.cc v8::internal::RelocInfo::CODE_TARGET_CONTEXT, v8 1107 test/cctest/test-debug.cc v8::internal::RelocInfo::CODE_TARGET_CONTEXT, v8 1115 test/cctest/test-debug.cc v8::HandleScope scope; v8 1118 test/cctest/test-debug.cc v8::Local<v8::Function> foo = v8 1120 test/cctest/test-debug.cc v8::Local<v8::Function> bar = v8 1123 test/cctest/test-debug.cc CHECK_EQ(0, v8::internal::GetDebuggedFunctions()->length()); v8 1128 test/cctest/test-debug.cc CHECK_EQ(1, v8::internal::GetDebuggedFunctions()->length()); v8 1133 test/cctest/test-debug.cc CHECK_EQ(2, v8::internal::GetDebuggedFunctions()->length()); v8 1138 test/cctest/test-debug.cc CHECK_EQ(1, v8::internal::GetDebuggedFunctions()->length()); v8 1143 test/cctest/test-debug.cc CHECK_EQ(0, v8::internal::GetDebuggedFunctions()->length()); v8 1152 test/cctest/test-debug.cc v8::HandleScope scope; v8 1155 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 1156 test/cctest/test-debug.cc v8::Undefined()); v8 1157 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("function foo(){bar=0;}"))->Run(); v8 1158 test/cctest/test-debug.cc v8::Local<v8::Function> foo = v8 1159 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("foo"))); v8 1177 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 1185 test/cctest/test-debug.cc v8::HandleScope scope; v8 1187 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 1188 test/cctest/test-debug.cc v8::Undefined()); v8 1189 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("bar=1"))->Run(); v8 1190 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("function foo(){var x=bar;}"))->Run(); v8 1191 test/cctest/test-debug.cc v8::Local<v8::Function> foo = v8 1192 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("foo"))); v8 1210 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 1218 test/cctest/test-debug.cc v8::HandleScope scope; v8 1220 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 1221 test/cctest/test-debug.cc v8::Undefined()); v8 1222 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("function bar(){}"))->Run(); v8 1223 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("function foo(){bar();}"))->Run(); v8 1224 test/cctest/test-debug.cc v8::Local<v8::Function> foo = v8 1225 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("foo"))); v8 1243 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 1251 test/cctest/test-debug.cc v8::HandleScope scope; v8 1253 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointCollectGarbage, v8 1254 test/cctest/test-debug.cc v8::Undefined()); v8 1255 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("function bar(){return 1;}"))->Run(); v8 1256 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("function foo(){return bar();}"))->Run(); v8 1257 test/cctest/test-debug.cc v8::Local<v8::Function> foo = v8 1258 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("foo"))); v8 1276 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 1284 test/cctest/test-debug.cc v8::HandleScope scope; v8 1286 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointCollectGarbage, v8 1287 test/cctest/test-debug.cc v8::Undefined()); v8 1288 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("function bar(){ this.x = 1;}"))->Run(); v8 1289 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New( v8 1291 test/cctest/test-debug.cc v8::Local<v8::Function> foo = v8 1292 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("foo"))); v8 1310 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 1318 test/cctest/test-debug.cc v8::HandleScope scope; v8 1331 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 1332 test/cctest/test-debug.cc v8::Undefined()); v8 1333 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("function foo(){}"))->Run(); v8 1334 test/cctest/test-debug.cc v8::Local<v8::Function> foo = v8 1335 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("foo"))); v8 1357 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 1376 test/cctest/test-debug.cc v8::HandleScope scope; v8 1379 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointCollectGarbage, v8 1380 test/cctest/test-debug.cc v8::Undefined()); v8 1381 test/cctest/test-debug.cc v8::Local<v8::Function> foo; v8 1408 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 1425 test/cctest/test-debug.cc HEAP->CollectGarbage(v8::internal::NEW_SPACE); v8 1440 test/cctest/test-debug.cc v8::HandleScope scope; v8 1443 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 1444 test/cctest/test-debug.cc v8::Undefined()); v8 1445 test/cctest/test-debug.cc v8::Local<v8::Function> foo; v8 1490 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 1498 test/cctest/test-debug.cc v8::HandleScope scope; v8 1502 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 1503 test/cctest/test-debug.cc v8::Undefined()); v8 1504 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("function bar(){}"))->Run(); v8 1505 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("function foo(){bar();bar();}"))->Run(); v8 1509 test/cctest/test-debug.cc v8::Local<v8::Script> foo = v8::Script::Compile(v8::String::New("foo()")); v8 1541 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 1554 test/cctest/test-debug.cc v8::HandleScope scope; v8 1558 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 1559 test/cctest/test-debug.cc v8::Undefined()); v8 1561 test/cctest/test-debug.cc v8::Local<v8::String> script = v8::String::New( v8 1581 test/cctest/test-debug.cc v8::ScriptOrigin origin = v8 1582 test/cctest/test-debug.cc v8::ScriptOrigin(v8::String::New("test")); v8 1583 test/cctest/test-debug.cc v8::Script::Compile(script, &origin)->Run(); v8 1584 test/cctest/test-debug.cc v8::Local<v8::Function> f = v8 1585 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 1586 test/cctest/test-debug.cc v8::Local<v8::Function> g = v8 1587 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("g"))); v8 1643 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 1658 test/cctest/test-debug.cc v8::HandleScope scope; v8 1662 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 1663 test/cctest/test-debug.cc v8::Undefined()); v8 1665 test/cctest/test-debug.cc v8::Local<v8::String> source = v8::String::New( v8 1685 test/cctest/test-debug.cc v8::ScriptOrigin origin = v8 1686 test/cctest/test-debug.cc v8::ScriptOrigin(v8::String::New("test")); v8 1687 test/cctest/test-debug.cc v8::Local<v8::Script> script = v8::Script::Compile(source, &origin); v8 1689 test/cctest/test-debug.cc v8::Local<v8::Function> f = v8 1690 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 1691 test/cctest/test-debug.cc v8::Local<v8::Function> g = v8 1692 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("g"))); v8 1751 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 1767 test/cctest/test-debug.cc v8::HandleScope scope; v8 1771 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 1772 test/cctest/test-debug.cc v8::Undefined()); v8 1774 test/cctest/test-debug.cc v8::Local<v8::String> script = v8::String::New( v8 1780 test/cctest/test-debug.cc v8::ScriptOrigin origin = v8 1781 test/cctest/test-debug.cc v8::ScriptOrigin(v8::String::New("test")); v8 1782 test/cctest/test-debug.cc v8::Script::Compile(script, &origin)->Run(); v8 1783 test/cctest/test-debug.cc v8::Local<v8::Function> f = v8 1784 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 1807 test/cctest/test-debug.cc v8::Script::Compile(script, &origin)->Run(); v8 1808 test/cctest/test-debug.cc f = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 1816 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 1824 test/cctest/test-debug.cc v8::HandleScope scope; v8 1828 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 1829 test/cctest/test-debug.cc v8::Undefined()); v8 1831 test/cctest/test-debug.cc v8::Local<v8::String> script = v8::String::New( v8 1841 test/cctest/test-debug.cc v8::ScriptOrigin origin = v8 1842 test/cctest/test-debug.cc v8::ScriptOrigin(v8::String::New("test")); v8 1843 test/cctest/test-debug.cc v8::Script::Compile(script, &origin)->Run(); v8 1844 test/cctest/test-debug.cc v8::Local<v8::Function> f = v8 1845 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 1869 test/cctest/test-debug.cc v8::Script::Compile(script, &origin)->Run(); v8 1870 test/cctest/test-debug.cc f = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 1878 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 1886 test/cctest/test-debug.cc v8::HandleScope scope; v8 1890 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 1891 test/cctest/test-debug.cc v8::Undefined()); v8 1893 test/cctest/test-debug.cc v8::Local<v8::String> script = v8::String::New( v8 1899 test/cctest/test-debug.cc v8::ScriptOrigin origin = v8 1900 test/cctest/test-debug.cc v8::ScriptOrigin(v8::String::New("test")); v8 1901 test/cctest/test-debug.cc v8::Script::Compile(script, &origin)->Run(); v8 1902 test/cctest/test-debug.cc v8::Local<v8::Function> f = v8 1903 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 1924 test/cctest/test-debug.cc v8::Script::Compile(script, &origin)->Run(); v8 1925 test/cctest/test-debug.cc f = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 1933 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 1941 test/cctest/test-debug.cc v8::HandleScope scope; v8 1945 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 1946 test/cctest/test-debug.cc v8::Undefined()); v8 1948 test/cctest/test-debug.cc v8::Local<v8::Function> f; v8 1949 test/cctest/test-debug.cc v8::Local<v8::String> script = v8::String::New( v8 1958 test/cctest/test-debug.cc v8::ScriptOrigin origin_1 = v8::ScriptOrigin(v8::String::New("1")); v8 1959 test/cctest/test-debug.cc v8::ScriptOrigin origin_2 = v8::ScriptOrigin(v8::String::New("2")); v8 1965 test/cctest/test-debug.cc v8::Script::Compile(script, &origin_1)->Run(); v8 1966 test/cctest/test-debug.cc f = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 1975 test/cctest/test-debug.cc v8::Script::Compile(script, &origin_2)->Run(); v8 1976 test/cctest/test-debug.cc f = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 1984 test/cctest/test-debug.cc v8::Script::Compile(script, &origin_1)->Run(); v8 1985 test/cctest/test-debug.cc f = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 1992 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2000 test/cctest/test-debug.cc v8::HandleScope scope; v8 2004 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 2005 test/cctest/test-debug.cc v8::Undefined()); v8 2007 test/cctest/test-debug.cc v8::Local<v8::Function> f; v8 2008 test/cctest/test-debug.cc v8::Local<v8::String> script_f = v8::String::New( v8 2013 test/cctest/test-debug.cc v8::Local<v8::Function> g; v8 2014 test/cctest/test-debug.cc v8::Local<v8::String> script_g = v8::String::New( v8 2019 test/cctest/test-debug.cc v8::ScriptOrigin origin = v8 2020 test/cctest/test-debug.cc v8::ScriptOrigin(v8::String::New("test")); v8 2026 test/cctest/test-debug.cc v8::Script::Compile(script_f, &origin)->Run(); v8 2027 test/cctest/test-debug.cc f = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 2028 test/cctest/test-debug.cc v8::Script::Compile(script_g, &origin)->Run(); v8 2029 test/cctest/test-debug.cc g = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("g"))); v8 2058 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2066 test/cctest/test-debug.cc v8::HandleScope scope; v8 2070 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 2071 test/cctest/test-debug.cc v8::Undefined()); v8 2073 test/cctest/test-debug.cc v8::Local<v8::Function> f; v8 2074 test/cctest/test-debug.cc v8::Local<v8::String> script = v8::String::New( v8 2081 test/cctest/test-debug.cc v8::ScriptOrigin origin(v8::String::New("test.html"), v8 2082 test/cctest/test-debug.cc v8::Integer::New(7)); v8 2089 test/cctest/test-debug.cc v8::Script::Compile(script, &origin)->Run(); v8 2090 test/cctest/test-debug.cc f = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 2114 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2121 test/cctest/test-debug.cc v8::HandleScope scope; v8 2130 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 2131 test/cctest/test-debug.cc v8::Undefined()); v8 2133 test/cctest/test-debug.cc v8::Local<v8::Function> f; v8 2134 test/cctest/test-debug.cc v8::Local<v8::Function> g; v8 2135 test/cctest/test-debug.cc v8::Local<v8::String> script = v8::String::New( v8 2157 test/cctest/test-debug.cc v8::ScriptOrigin origin(v8::String::New("test.html"), v8::Integer::New(0)); v8 2158 test/cctest/test-debug.cc v8::Script::Compile(script, &origin)->Run(); v8 2159 test/cctest/test-debug.cc f = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 2160 test/cctest/test-debug.cc g = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("g"))); v8 2198 test/cctest/test-debug.cc v8::Script::Compile(script, &origin)->Run(); v8 2207 test/cctest/test-debug.cc v8::Script::Compile(script, &origin)->Run(); v8 2217 test/cctest/test-debug.cc v8::Script::Compile(script, &origin)->Run(); v8 2220 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2227 test/cctest/test-debug.cc v8::HandleScope scope; v8 2231 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 2232 test/cctest/test-debug.cc v8::Undefined()); v8 2234 test/cctest/test-debug.cc v8::Local<v8::String> script = v8::String::New( v8 2239 test/cctest/test-debug.cc v8::Local<v8::Function> f; v8 2241 test/cctest/test-debug.cc v8::HandleScope scope; v8 2242 test/cctest/test-debug.cc v8::Script::Compile(script, v8::String::New("test.html"))->Run(); v8 2244 test/cctest/test-debug.cc f = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 2257 test/cctest/test-debug.cc v8::Script::Compile(script, v8::String::New("test.html"))->Run(); v8 2262 test/cctest/test-debug.cc f = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 2265 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2273 test/cctest/test-debug.cc v8::HandleScope scope; v8 2277 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 2278 test/cctest/test-debug.cc v8::Undefined()); v8 2280 test/cctest/test-debug.cc v8::Local<v8::String> script_source = v8::String::New( v8 2288 test/cctest/test-debug.cc v8::HandleScope scope; v8 2290 test/cctest/test-debug.cc v8::Script::Compile(script_source, v8::String::New("test.html"))->Run(); v8 2298 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2306 test/cctest/test-debug.cc v8::HandleScope scope; v8 2309 test/cctest/test-debug.cc v8::Local<v8::Function> foo = v8 2314 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventRemoveBreakPoint, foo); v8 2324 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2332 test/cctest/test-debug.cc v8::HandleScope scope; v8 2334 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 2335 test/cctest/test-debug.cc v8::Undefined()); v8 2336 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("function bar(){debugger}"))->Run(); v8 2337 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New( v8 2339 test/cctest/test-debug.cc v8::Local<v8::Function> foo = v8 2340 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("foo"))); v8 2341 test/cctest/test-debug.cc v8::Local<v8::Function> bar = v8 2342 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("bar"))); v8 2352 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2360 test/cctest/test-debug.cc v8::HandleScope scope; v8 2362 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 2363 test/cctest/test-debug.cc v8::Undefined()); v8 2364 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("function foo(){debugger;}"))->Run(); v8 2365 test/cctest/test-debug.cc v8::Local<v8::Function> foo = v8 2366 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("foo"))); v8 2379 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2387 test/cctest/test-debug.cc v8::HandleScope scope; v8 2396 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventEvaluate); v8 2401 test/cctest/test-debug.cc {"x", v8::Undefined()}, v8 2402 test/cctest/test-debug.cc {"a", v8::Undefined()}, v8 2403 test/cctest/test-debug.cc {NULL, v8::Handle<v8::Value>()} v8 2406 test/cctest/test-debug.cc {"x", v8::String::New("Hello, world!")}, v8 2407 test/cctest/test-debug.cc {"a", v8::Undefined()}, v8 2408 test/cctest/test-debug.cc {NULL, v8::Handle<v8::Value>()} v8 2411 test/cctest/test-debug.cc {"x", v8::String::New("Hello, world!")}, v8 2412 test/cctest/test-debug.cc {"a", v8::String::New("Hello, world!")}, v8 2413 test/cctest/test-debug.cc {NULL, v8::Handle<v8::Value>()} v8 2420 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction(&env, v8 2432 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_foo[1] = { v8::String::New("Hello, world!") }; v8 2453 test/cctest/test-debug.cc v8::Local<v8::Function> bar = CompileFunction(&env, v8 2472 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_bar_1[2] = { v8 2473 test/cctest/test-debug.cc v8::Undefined(), v8 2474 test/cctest/test-debug.cc v8::Number::New(barbar_break_position) v8 2481 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_bar_2[2] = { v8 2482 test/cctest/test-debug.cc v8::String::New("Hello, world!"), v8 2483 test/cctest/test-debug.cc v8::Number::New(barbar_break_position) v8 2490 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_bar_3[2] = { v8 2491 test/cctest/test-debug.cc v8::String::New("Hello, world!"), v8 2492 test/cctest/test-debug.cc v8::Number::New(barbar_break_position + 1) v8 2496 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2603 test/cctest/test-debug.cc v8::Debug::SetMessageHandler(DebugProcessDebugMessagesHandler); v8 2605 test/cctest/test-debug.cc v8::HandleScope scope; v8 2611 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(source))->Run(); v8 2613 test/cctest/test-debug.cc v8::Debug::ProcessDebugMessages(); v8 2626 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_111, buffer)); v8 2636 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_112, buffer)); v8 2646 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_113, buffer)); v8 2648 test/cctest/test-debug.cc v8::Debug::ProcessDebugMessages(); v8 2657 test/cctest/test-debug.cc v8::Debug::SetMessageHandler(NULL); v8 2658 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2665 test/cctest/test-debug.cc v8::HandleScope scope; v8 2669 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction(&env, v8 2679 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 2688 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2692 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount); v8 2701 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2708 test/cctest/test-debug.cc v8::HandleScope scope; v8 2712 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 2716 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction( v8 2730 test/cctest/test-debug.cc v8::Local<v8::Array> a = v8::Array::New(10); v8 2732 test/cctest/test-debug.cc a->Set(v8::Number::New(i), v8::Number::New(i)); v8 2737 test/cctest/test-debug.cc v8::Handle<v8::Value> args[kArgc] = { a }; v8 2749 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2756 test/cctest/test-debug.cc v8::HandleScope scope; v8 2760 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 2764 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction( v8 2777 test/cctest/test-debug.cc v8::Local<v8::Array> a = v8::Array::New(10); v8 2779 test/cctest/test-debug.cc a->Set(v8::Number::New(i), v8::Number::New(i)); v8 2784 test/cctest/test-debug.cc v8::Handle<v8::Value> args[kArgc] = { a }; v8 2796 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2803 test/cctest/test-debug.cc v8::HandleScope scope; v8 2807 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 2810 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction( v8 2840 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2846 test/cctest/test-debug.cc v8::HandleScope scope; v8 2850 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 2853 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction( v8 2875 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2888 test/cctest/test-debug.cc v8::HandleScope scope; v8 2892 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 2895 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction(&env, v8 2915 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2919 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount); v8 2928 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2934 test/cctest/test-debug.cc v8::HandleScope scope; v8 2938 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 2950 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); v8 2961 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 2967 test/cctest/test-debug.cc v8::HandleScope scope; v8 2971 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 2983 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); v8 2994 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3000 test/cctest/test-debug.cc v8::HandleScope scope; v8 3004 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 3019 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); v8 3025 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_true[argc] = { v8::True() }; v8 3032 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_false[argc] = { v8::False() }; v8 3037 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3043 test/cctest/test-debug.cc v8::HandleScope scope; v8 3047 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 3068 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); v8 3074 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_1[argc] = { v8::Number::New(1) }; v8 3081 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_2[argc] = { v8::Number::New(2) }; v8 3088 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_3[argc] = { v8::Number::New(3) }; v8 3093 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3099 test/cctest/test-debug.cc v8::HandleScope scope; v8 3103 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 3115 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); v8 3121 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_10[argc] = { v8::Number::New(10) }; v8 3128 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_100[argc] = { v8::Number::New(100) }; v8 3133 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3139 test/cctest/test-debug.cc v8::HandleScope scope; v8 3143 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 3155 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); v8 3161 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_10[argc] = { v8::Number::New(10) }; v8 3168 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_100[argc] = { v8::Number::New(100) }; v8 3173 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3179 test/cctest/test-debug.cc v8::HandleScope scope; v8 3183 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 3195 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); v8 3202 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_10[argc] = { v8::Number::New(10) }; v8 3209 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_100[argc] = { v8::Number::New(100) }; v8 3214 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3220 test/cctest/test-debug.cc v8::HandleScope scope; v8 3224 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 3242 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); v8 3243 test/cctest/test-debug.cc v8::Handle<v8::Value> result; v8 3251 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_10[argc] = { v8::Number::New(10) }; v8 3259 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_100[argc] = { v8::Number::New(100) }; v8 3265 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3271 test/cctest/test-debug.cc v8::HandleScope scope; v8 3275 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 3293 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); v8 3294 test/cctest/test-debug.cc v8::Handle<v8::Value> result; v8 3303 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_10[argc] = { v8::Number::New(10) }; v8 3311 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_100[argc] = { v8::Number::New(100) }; v8 3317 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3323 test/cctest/test-debug.cc v8::HandleScope scope; v8 3327 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 3331 test/cctest/test-debug.cc v8::Local<v8::Function> foo; v8 3365 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3371 test/cctest/test-debug.cc v8::HandleScope scope; v8 3375 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 3385 test/cctest/test-debug.cc env->Global()->Set(v8::String::New("b"), v8::Object::New()); v8 3386 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); v8 3387 test/cctest/test-debug.cc v8::Handle<v8::Value> result; v8 3396 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3402 test/cctest/test-debug.cc v8::HandleScope scope; v8 3406 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 3416 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction(&env, src, "foo"); v8 3427 test/cctest/test-debug.cc v8::Handle<v8::Value> argv_true[argc] = { v8::True() }; v8 3432 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3438 test/cctest/test-debug.cc v8::HandleScope scope; v8 3447 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStepSequence); v8 3455 test/cctest/test-debug.cc v8::Local<v8::Function> a = CompileFunction(&env, src, "a"); v8 3483 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3489 test/cctest/test-debug.cc v8::HandleScope scope; v8 3498 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStepSequence); v8 3507 test/cctest/test-debug.cc v8::Local<v8::Function> a = CompileFunction(&env, src, "a"); v8 3535 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3541 test/cctest/test-debug.cc v8::HandleScope scope; v8 3550 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStepSequence); v8 3558 test/cctest/test-debug.cc v8::Local<v8::Function> a = CompileFunction(&env, src, "a"); v8 3570 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3577 test/cctest/test-debug.cc v8::HandleScope scope; v8 3581 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction( v8 3587 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 3596 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3600 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount); v8 3608 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3615 test/cctest/test-debug.cc v8::HandleScope scope; v8 3619 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction( v8 3626 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 3635 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3639 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount); v8 3647 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3654 test/cctest/test-debug.cc v8::HandleScope scope; v8 3658 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction( v8 3671 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStep); v8 3682 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[argc] = { v8::True() }; v8 3686 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3690 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount); v8 3698 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3705 test/cctest/test-debug.cc v8::HandleScope scope; v8 3710 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventCounter); v8 3720 test/cctest/test-debug.cc v8::ScriptOrigin origin(v8::String::New(script_name), v8::Integer::New(0)); v8 3721 test/cctest/test-debug.cc v8::Handle<v8::Script> script = v8::Script::Compile(v8::String::New(src), v8 3723 test/cctest/test-debug.cc v8::Local<v8::Value> r = script->Run(); v8 3729 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3741 test/cctest/test-debug.cc v8::HandleScope scope; v8 3745 test/cctest/test-debug.cc v8::internal::Isolate::Current()->TraceException(false); v8 3749 test/cctest/test-debug.cc v8::Local<v8::Function> caught = v8 3753 test/cctest/test-debug.cc v8::Local<v8::Function> notCaught = v8 3756 test/cctest/test-debug.cc v8::V8::AddMessageListener(MessageCallbackCount); v8 3757 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventCounter); v8 3875 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 3877 test/cctest/test-debug.cc v8::V8::RemoveMessageListeners(MessageCallbackCount); v8 3885 test/cctest/test-debug.cc v8::HandleScope scope; v8 3891 test/cctest/test-debug.cc v8::internal::Isolate::Current()->TraceException(false); v8 3896 test/cctest/test-debug.cc v8::V8::AddMessageListener(MessageCallbackCount); v8 3897 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventCounter); v8 3909 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("+++")); v8 3916 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("x x")); v8 3923 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("eval('+++')"))->Run(); v8 3930 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("eval('x x')"))->Run(); v8 3939 test/cctest/test-debug.cc v8::HandleScope scope; v8 3951 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStepSequence); v8 3964 test/cctest/test-debug.cc v8::Local<v8::Function> a = CompileFunction(&env, src, "a"); v8 3974 test/cctest/test-debug.cc v8::Local<v8::Function> b = CompileFunction(&env, src, "b"); v8 3983 test/cctest/test-debug.cc v8::Local<v8::Function> d = CompileFunction(&env, src, "d"); v8 4003 test/cctest/test-debug.cc v8::Local<v8::Function> f = CompileFunction(&env, src, "f"); v8 4023 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 4029 test/cctest/test-debug.cc v8::HandleScope scope; v8 4035 test/cctest/test-debug.cc CHECK(v8::internal::FLAG_verify_heap); v8 4039 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreak); v8 4046 test/cctest/test-debug.cc v8::Local<v8::Function> f0 = CompileFunction(&env, src, "f0"); v8 4047 test/cctest/test-debug.cc v8::Local<v8::Function> f1 = CompileFunction(&env, src, "f1"); v8 4048 test/cctest/test-debug.cc v8::Local<v8::Function> f2 = CompileFunction(&env, src, "f2"); v8 4049 test/cctest/test-debug.cc v8::Local<v8::Function> f3 = CompileFunction(&env, src, "f3"); v8 4052 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[] = { v8::Number::New(1), v8 4053 test/cctest/test-debug.cc v8::Number::New(1), v8 4054 test/cctest/test-debug.cc v8::Number::New(1), v8 4055 test/cctest/test-debug.cc v8::Number::New(1) }; v8 4064 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 4079 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 4087 test/cctest/test-debug.cc v8::HandleScope scope; v8 4091 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventCounter); v8 4095 test/cctest/test-debug.cc v8::Local<v8::Function> f = CompileFunction(&env, src, "f"); v8 4098 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 4106 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 4107 test/cctest/test-debug.cc v8::internal::DisableBreak disable_break(true); v8 4116 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 4128 test/cctest/test-debug.cc v8::HandleScope scope; v8 4131 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventCounter); v8 4134 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 4139 test/cctest/test-debug.cc v8::RegisterExtension(new v8::Extension("simpletest", v8 4142 test/cctest/test-debug.cc v8::ExtensionConfiguration extensions(1, extension_names); v8 4143 test/cctest/test-debug.cc v8::Persistent<v8::Context> context = v8::Context::New(&extensions); v8 4150 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 4154 test/cctest/test-debug.cc static v8::Handle<v8::Array> NamedEnum(const v8::AccessorInfo&) { v8 4155 test/cctest/test-debug.cc v8::Handle<v8::Array> result = v8::Array::New(3); v8 4156 test/cctest/test-debug.cc result->Set(v8::Integer::New(0), v8::String::New("a")); v8 4157 test/cctest/test-debug.cc result->Set(v8::Integer::New(1), v8::String::New("b")); v8 4158 test/cctest/test-debug.cc result->Set(v8::Integer::New(2), v8::String::New("c")); v8 4163 test/cctest/test-debug.cc static v8::Handle<v8::Array> IndexedEnum(const v8::AccessorInfo&) { v8 4164 test/cctest/test-debug.cc v8::Handle<v8::Array> result = v8::Array::New(2); v8 4165 test/cctest/test-debug.cc result->Set(v8::Integer::New(0), v8::Number::New(1)); v8 4166 test/cctest/test-debug.cc result->Set(v8::Integer::New(1), v8::Number::New(10)); v8 4171 test/cctest/test-debug.cc static v8::Handle<v8::Value> NamedGetter(v8::Local<v8::String> name, v8 4173 test/cctest/test-debug.cc v8::String::AsciiValue n(name); v8 4175 test/cctest/test-debug.cc return v8::String::New("AA"); v8 4177 test/cctest/test-debug.cc return v8::String::New("BB"); v8 4179 test/cctest/test-debug.cc return v8::String::New("CC"); v8 4181 test/cctest/test-debug.cc return v8::Undefined(); v8 4188 test/cctest/test-debug.cc static v8::Handle<v8::Value> IndexedGetter(uint32_t index, v8 4190 test/cctest/test-debug.cc return v8::Number::New(index + 1); v8 4196 test/cctest/test-debug.cc v8::HandleScope scope; v8 4201 test/cctest/test-debug.cc v8::Handle<v8::ObjectTemplate> named = v8::ObjectTemplate::New(); v8 4203 test/cctest/test-debug.cc env->Global()->Set(v8::String::New("intercepted_named"), v8 4207 test/cctest/test-debug.cc v8::Handle<v8::ObjectTemplate> indexed = v8::ObjectTemplate::New(); v8 4213 test/cctest/test-debug.cc env->Global()->Set(v8::String::New("intercepted_indexed"), v8 4217 test/cctest/test-debug.cc v8::Handle<v8::ObjectTemplate> both = v8::ObjectTemplate::New(); v8 4220 test/cctest/test-debug.cc env->Global()->Set(v8::String::New("intercepted_both"), both->NewInstance()); v8 4277 test/cctest/test-debug.cc CHECK_EQ(v8::internal::INTERCEPTOR, v8 4327 test/cctest/test-debug.cc v8::HandleScope scope; v8 4331 test/cctest/test-debug.cc v8::Handle<v8::FunctionTemplate> t0 = v8::FunctionTemplate::New(); v8 4332 test/cctest/test-debug.cc t0->InstanceTemplate()->Set(v8::String::New("x"), v8::Number::New(0)); v8 4333 test/cctest/test-debug.cc v8::Handle<v8::FunctionTemplate> t1 = v8::FunctionTemplate::New(); v8 4335 test/cctest/test-debug.cc t1->InstanceTemplate()->Set(v8::String::New("y"), v8::Number::New(1)); v8 4336 test/cctest/test-debug.cc v8::Handle<v8::FunctionTemplate> t2 = v8::FunctionTemplate::New(); v8 4338 test/cctest/test-debug.cc t2->InstanceTemplate()->Set(v8::String::New("z"), v8::Number::New(2)); v8 4339 test/cctest/test-debug.cc v8::Handle<v8::FunctionTemplate> t3 = v8::FunctionTemplate::New(); v8 4340 test/cctest/test-debug.cc t3->InstanceTemplate()->Set(v8::String::New("u"), v8::Number::New(3)); v8 4343 test/cctest/test-debug.cc v8::Handle<v8::Object> o0 = t0->GetFunction()->NewInstance(); v8 4344 test/cctest/test-debug.cc env->Global()->Set(v8::String::New("o0"), o0); v8 4345 test/cctest/test-debug.cc v8::Handle<v8::Object> o1 = t1->GetFunction()->NewInstance(); v8 4346 test/cctest/test-debug.cc env->Global()->Set(v8::String::New("o1"), o1); v8 4347 test/cctest/test-debug.cc v8::Handle<v8::Object> o2 = t2->GetFunction()->NewInstance(); v8 4348 test/cctest/test-debug.cc env->Global()->Set(v8::String::New("o2"), o2); v8 4349 test/cctest/test-debug.cc v8::Handle<v8::Object> o3 = t3->GetFunction()->NewInstance(); v8 4350 test/cctest/test-debug.cc env->Global()->Set(v8::String::New("o3"), o3); v8 4375 test/cctest/test-debug.cc o0->Set(v8::String::New("__proto__"), o1); v8 4386 test/cctest/test-debug.cc o0->Set(v8::String::New("__proto__"), o2); v8 4402 test/cctest/test-debug.cc o0->Set(v8::String::New("__proto__"), o3); v8 4420 test/cctest/test-debug.cc static v8::Handle<v8::Value> ProtperyXNativeGetter( v8 4422 test/cctest/test-debug.cc return v8::Integer::New(10); v8 4428 test/cctest/test-debug.cc v8::HandleScope scope; v8 4432 test/cctest/test-debug.cc v8::Handle<v8::String> name = v8::String::New("x"); v8 4434 test/cctest/test-debug.cc v8::Handle<v8::ObjectTemplate> named = v8::ObjectTemplate::New(); v8 4436 test/cctest/test-debug.cc v8::Handle<v8::Value>(), v8::DEFAULT, v8::None); v8 4439 test/cctest/test-debug.cc env->Global()->Set(v8::String::New("instance"), named->NewInstance()); v8 4457 test/cctest/test-debug.cc static v8::Handle<v8::Value> ProtperyXNativeGetterThrowingError( v8 4465 test/cctest/test-debug.cc v8::HandleScope scope; v8 4469 test/cctest/test-debug.cc v8::Handle<v8::String> name = v8::String::New("x"); v8 4471 test/cctest/test-debug.cc v8::Handle<v8::ObjectTemplate> named = v8::ObjectTemplate::New(); v8 4473 test/cctest/test-debug.cc v8::Handle<v8::Value>(), v8::DEFAULT, v8::None); v8 4476 test/cctest/test-debug.cc env->Global()->Set(v8::String::New("instance"), named->NewInstance()); v8 4500 test/cctest/test-debug.cc v8::HandleScope scope; v8 4506 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(source))->Run(); v8 4507 test/cctest/test-debug.cc v8::Local<v8::Object> obj = v8::Local<v8::Object>::Cast( v8 4508 test/cctest/test-debug.cc env->Global()->Get(v8::String::New("obj"))); v8 4510 test/cctest/test-debug.cc obj->SetHiddenValue(v8::String::New("v8::test-debug::a"), v8 4511 test/cctest/test-debug.cc v8::Int32::New(11)); v8 4527 test/cctest/test-debug.cc v8::Handle<v8::FunctionTemplate> t0 = v8::FunctionTemplate::New(); v8 4528 test/cctest/test-debug.cc t0->InstanceTemplate()->Set(v8::String::New("b"), v8::Number::New(2)); v8 4530 test/cctest/test-debug.cc v8::Handle<v8::FunctionTemplate> t1 = v8::FunctionTemplate::New(); v8 4531 test/cctest/test-debug.cc t1->InstanceTemplate()->Set(v8::String::New("c"), v8::Number::New(3)); v8 4535 test/cctest/test-debug.cc v8::Handle<v8::Object> protoObj = t0->GetFunction()->NewInstance(); v8 4536 test/cctest/test-debug.cc protoObj->SetHiddenValue(v8::String::New("v8::test-debug::b"), v8 4537 test/cctest/test-debug.cc v8::Int32::New(12)); v8 4538 test/cctest/test-debug.cc env->Global()->Set(v8::String::New("protoObj"), protoObj); v8 4539 test/cctest/test-debug.cc v8::Handle<v8::Object> grandProtoObj = t1->GetFunction()->NewInstance(); v8 4540 test/cctest/test-debug.cc grandProtoObj->SetHiddenValue(v8::String::New("v8::test-debug::c"), v8 4541 test/cctest/test-debug.cc v8::Int32::New(13)); v8 4542 test/cctest/test-debug.cc env->Global()->Set(v8::String::New("grandProtoObj"), grandProtoObj); v8 4545 test/cctest/test-debug.cc protoObj->Set(v8::String::New("__proto__"), grandProtoObj); v8 4546 test/cctest/test-debug.cc obj->Set(v8::String::New("__proto__"), protoObj); v8 4581 test/cctest/test-debug.cc v8::internal::Mutex* lock_; v8 4582 test/cctest/test-debug.cc v8::internal::Semaphore* sem_; v8 4630 test/cctest/test-debug.cc v8::internal::Semaphore* semaphore_1; v8 4631 test/cctest/test-debug.cc v8::internal::Semaphore* semaphore_2; v8 4738 test/cctest/test-debug.cc class MessageQueueDebuggerThread : public v8::internal::Thread { v8 4798 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer_1, AsciiToUtf16(command_1, buffer_1)); v8 4799 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer_2, AsciiToUtf16(command_2, buffer_2)); v8 4800 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer_2, AsciiToUtf16(command_3, buffer_2)); v8 4801 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer_2, AsciiToUtf16(command_3, buffer_2)); v8 4802 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer_2, AsciiToUtf16(command_3, buffer_2)); v8 4822 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer_1, AsciiToUtf16(command_1, buffer_1)); v8 4823 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer_2, AsciiToUtf16(command_2, buffer_2)); v8 4824 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer_2, AsciiToUtf16(command_3, buffer_2)); v8 4825 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer_2, AsciiToUtf16(command_single_step, buffer_2)); v8 4832 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer_1, AsciiToUtf16(command_2, buffer_1)); v8 4833 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer_2, AsciiToUtf16(command_continue, buffer_2)); v8 4847 test/cctest/test-debug.cc v8::HandleScope scope; v8 4850 test/cctest/test-debug.cc v8::Debug::SetMessageHandler(MessageHandler); v8 4870 test/cctest/test-debug.cc class TestClientData : public v8::Debug::ClientData { v8 4939 test/cctest/test-debug.cc v8::HandleScope scope; v8 4943 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(MessageHandlerCountingClientData); v8 4962 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_1, buffer), v8 4964 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_2, buffer), NULL); v8 4965 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_2, buffer), v8 4967 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_2, buffer), v8 4971 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_continue, buffer)); v8 4989 test/cctest/test-debug.cc class V8Thread : public v8::internal::Thread { v8 4995 test/cctest/test-debug.cc class DebuggerThread : public v8::internal::Thread { v8 5002 test/cctest/test-debug.cc static v8::Handle<v8::Value> ThreadedAtBarrier1(const v8::Arguments& args) { v8 5004 test/cctest/test-debug.cc return v8::Undefined(); v8 5010 test/cctest/test-debug.cc v8::String::Value json(message.GetJSON()); v8 5044 test/cctest/test-debug.cc v8::V8::Initialize(); v8 5045 test/cctest/test-debug.cc v8::HandleScope scope; v8 5047 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(&ThreadedMessageHandler); v8 5048 test/cctest/test-debug.cc v8::Handle<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New(); v8 5049 test/cctest/test-debug.cc global_template->Set(v8::String::New("ThreadedAtBarrier1"), v8 5050 test/cctest/test-debug.cc v8::FunctionTemplate::New(ThreadedAtBarrier1)); v8 5051 test/cctest/test-debug.cc v8::Handle<v8::Context> context = v8::Context::New(NULL, global_template); v8 5052 test/cctest/test-debug.cc v8::Context::Scope context_scope(context); v8 5070 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 5072 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_1, buffer)); v8 5073 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_2, buffer)); v8 5098 test/cctest/test-debug.cc class BreakpointsV8Thread : public v8::internal::Thread { v8 5104 test/cctest/test-debug.cc class BreakpointsDebuggerThread : public v8::internal::Thread { v8 5122 test/cctest/test-debug.cc v8::String::Value json(message.GetJSON()); v8 5157 test/cctest/test-debug.cc v8::V8::Initialize(); v8 5158 test/cctest/test-debug.cc v8::HandleScope scope; v8 5160 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(&BreakpointsMessageHandler); v8 5234 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_1, buffer)); v8 5236 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_2, buffer)); v8 5248 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_3, buffer)); v8 5254 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_4, buffer)); v8 5260 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_5, buffer)); v8 5267 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_6, buffer)); v8 5273 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_7, buffer)); v8 5279 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_8, buffer)); v8 5317 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DummyDebugEventListener); v8 5326 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(DummyMessageHandler); v8 5331 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 5339 test/cctest/test-debug.cc v8::Debug::SendCommand(dummy_buffer, dummy_length); v8 5351 test/cctest/test-debug.cc v8::Handle<v8::Function> debugger_call_with_data; v8 5364 test/cctest/test-debug.cc v8::Handle<v8::Function> debugger_call_with_closure; v8 5368 test/cctest/test-debug.cc static v8::Handle<v8::Value> CheckFrameCount(const v8::Arguments& args) { v8 5369 test/cctest/test-debug.cc CHECK(v8::Debug::Call(frame_count)->IsNumber()); v8 5371 test/cctest/test-debug.cc v8::Debug::Call(frame_count)->Int32Value()); v8 5372 test/cctest/test-debug.cc return v8::Undefined(); v8 5378 test/cctest/test-debug.cc static v8::Handle<v8::Value> CheckSourceLine(const v8::Arguments& args) { v8 5379 test/cctest/test-debug.cc CHECK(v8::Debug::Call(frame_source_line)->IsNumber()); v8 5381 test/cctest/test-debug.cc v8::Debug::Call(frame_source_line)->Int32Value()); v8 5382 test/cctest/test-debug.cc return v8::Undefined(); v8 5389 test/cctest/test-debug.cc static v8::Handle<v8::Value> CheckDataParameter(const v8::Arguments& args) { v8 5390 test/cctest/test-debug.cc v8::Handle<v8::String> data = v8::String::New("Test"); v8 5391 test/cctest/test-debug.cc CHECK(v8::Debug::Call(debugger_call_with_data, data)->IsString()); v8 5393 test/cctest/test-debug.cc CHECK(v8::Debug::Call(debugger_call_with_data).IsEmpty()); v8 5394 test/cctest/test-debug.cc CHECK(v8::Debug::Call(debugger_call_with_data).IsEmpty()); v8 5396 test/cctest/test-debug.cc v8::TryCatch catcher; v8 5397 test/cctest/test-debug.cc v8::Debug::Call(debugger_call_with_data); v8 5401 test/cctest/test-debug.cc return v8::Undefined(); v8 5406 test/cctest/test-debug.cc static v8::Handle<v8::Value> CheckClosure(const v8::Arguments& args) { v8 5407 test/cctest/test-debug.cc CHECK(v8::Debug::Call(debugger_call_with_closure)->IsNumber()); v8 5408 test/cctest/test-debug.cc CHECK_EQ(3, v8::Debug::Call(debugger_call_with_closure)->Int32Value()); v8 5409 test/cctest/test-debug.cc return v8::Undefined(); v8 5417 test/cctest/test-debug.cc v8::HandleScope scope; v8 5418 test/cctest/test-debug.cc v8::Handle<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New(); v8 5419 test/cctest/test-debug.cc global_template->Set(v8::String::New("CheckFrameCount"), v8 5420 test/cctest/test-debug.cc v8::FunctionTemplate::New(CheckFrameCount)); v8 5421 test/cctest/test-debug.cc global_template->Set(v8::String::New("CheckSourceLine"), v8 5422 test/cctest/test-debug.cc v8::FunctionTemplate::New(CheckSourceLine)); v8 5423 test/cctest/test-debug.cc global_template->Set(v8::String::New("CheckDataParameter"), v8 5424 test/cctest/test-debug.cc v8::FunctionTemplate::New(CheckDataParameter)); v8 5425 test/cctest/test-debug.cc global_template->Set(v8::String::New("CheckClosure"), v8 5426 test/cctest/test-debug.cc v8::FunctionTemplate::New(CheckClosure)); v8 5427 test/cctest/test-debug.cc v8::Handle<v8::Context> context = v8::Context::New(NULL, global_template); v8 5428 test/cctest/test-debug.cc v8::Context::Scope context_scope(context); v8 5431 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(frame_count_source))->Run(); v8 5432 test/cctest/test-debug.cc frame_count = v8::Local<v8::Function>::Cast( v8 5433 test/cctest/test-debug.cc context->Global()->Get(v8::String::New("frame_count"))); v8 5436 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(frame_source_line_source))->Run(); v8 5437 test/cctest/test-debug.cc frame_source_line = v8::Local<v8::Function>::Cast( v8 5438 test/cctest/test-debug.cc context->Global()->Get(v8::String::New("frame_source_line"))); v8 5441 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(debugger_call_with_data_source))->Run(); v8 5442 test/cctest/test-debug.cc debugger_call_with_data = v8::Local<v8::Function>::Cast( v8 5443 test/cctest/test-debug.cc context->Global()->Get(v8::String::New("debugger_call_with_data"))); v8 5446 test/cctest/test-debug.cc debugger_call_with_closure = v8::Local<v8::Function>::Cast( v8 5447 test/cctest/test-debug.cc v8::Script::Compile( v8 5448 test/cctest/test-debug.cc v8::String::New(debugger_call_with_closure_source))->Run()); v8 5452 test/cctest/test-debug.cc CHECK_EQ(v8::Integer::New(0), v8::Debug::Call(frame_count)); v8 5455 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("CheckFrameCount(1)"))->Run(); v8 5456 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("function f() {" v8 5461 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("CheckSourceLine(0)"))->Run(); v8 5462 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("function f() {\n" v8 5469 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("CheckDataParameter()"))->Run(); v8 5472 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("CheckClosure()"))->Run(); v8 5476 test/cctest/test-debug.cc v8::ScriptOrigin origin(v8::String::New("test"), v8 5477 test/cctest/test-debug.cc v8::Integer::New(7)); v8 5478 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("CheckSourceLine(7)"), &origin)->Run(); v8 5479 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("function f() {\n" v8 5491 test/cctest/test-debug.cc if (message.IsEvent() && message.GetEvent() == v8::Break) { v8 5510 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 5511 test/cctest/test-debug.cc v8::Undefined()); v8 5513 test/cctest/test-debug.cc v8::HandleScope scope; v8 5515 test/cctest/test-debug.cc v8::Local<v8::Function> foo = v8 5517 test/cctest/test-debug.cc v8::Local<v8::Function> bar = v8 5536 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 5541 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(MessageHandlerBreakPointHitCount); v8 5543 test/cctest/test-debug.cc v8::HandleScope scope; v8 5546 test/cctest/test-debug.cc v8::Local<v8::Function> foo(v8::Local<v8::Function>::Cast( v8 5547 test/cctest/test-debug.cc env->Global()->Get(v8::String::New("foo")))); v8 5561 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(NULL); v8 5575 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_continue, buffer)); v8 5585 test/cctest/test-debug.cc v8::String::Value json(message.GetJSON()); v8 5596 test/cctest/test-debug.cc v8::HandleScope scope; v8 5603 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(MessageHandlerHitCount); v8 5614 test/cctest/test-debug.cc v8::Debug::SetMessageHandler(NULL); v8 5633 test/cctest/test-debug.cc v8::Debug::SetMessageHandler(NULL); v8 5639 test/cctest/test-debug.cc v8::HandleScope scope; v8 5646 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(MessageHandlerClearingMessageHandler); v8 5664 test/cctest/test-debug.cc class HostDispatchV8Thread : public v8::internal::Thread { v8 5670 test/cctest/test-debug.cc class HostDispatchDebuggerThread : public v8::internal::Thread { v8 5680 test/cctest/test-debug.cc v8::String::Value json(message.GetJSON()); v8 5702 test/cctest/test-debug.cc v8::V8::Initialize(); v8 5703 test/cctest/test-debug.cc v8::HandleScope scope; v8 5707 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(HostDispatchMessageHandler); v8 5708 test/cctest/test-debug.cc v8::Debug::SetHostDispatchHandler(HostDispatchDispatchHandler, 10 /* ms */); v8 5732 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_1, buffer)); v8 5740 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(command_2, buffer)); v8 5768 test/cctest/test-debug.cc class DebugMessageDispatchV8Thread : public v8::internal::Thread { v8 5774 test/cctest/test-debug.cc class DebugMessageDispatchDebuggerThread : public v8::internal::Thread { v8 5790 test/cctest/test-debug.cc v8::V8::Initialize(); v8 5791 test/cctest/test-debug.cc v8::HandleScope scope; v8 5795 test/cctest/test-debug.cc v8::Debug::SetDebugMessageDispatchHandler(DebugMessageHandler); v8 5832 test/cctest/test-debug.cc v8::V8::Initialize(); v8 6006 test/cctest/test-debug.cc class EmptyExternalStringResource : public v8::String::ExternalStringResource { v8 6013 test/cctest/test-debug.cc ::v8::internal::EmbeddedVector<uint16_t, 1> empty_; v8 6018 test/cctest/test-debug.cc v8::HandleScope scope; v8 6023 test/cctest/test-debug.cc v8::Local<v8::String> source = v8::String::NewExternal(&source_ext_str); v8 6024 test/cctest/test-debug.cc v8::Handle<v8::Script> evil_script(v8::Script::Compile(source)); v8 6028 test/cctest/test-debug.cc i::ExternalTwoByteString::cast(*v8::Utils::OpenHandle(*source))); v8 6045 test/cctest/test-debug.cc CHECK_GT((*env)->Global()->Get(v8::String::New("count"))->Int32Value(), 8); v8 6051 test/cctest/test-debug.cc v8::HandleScope scope; v8 6067 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakPointHitCount, v8 6068 test/cctest/test-debug.cc v8::Undefined()); v8 6071 test/cctest/test-debug.cc v8::Local<v8::String> script = v8::String::New( v8 6076 test/cctest/test-debug.cc v8::ScriptOrigin origin1 = v8::ScriptOrigin(v8::String::New("name")); v8 6077 test/cctest/test-debug.cc v8::Handle<v8::Script> script1 = v8::Script::Compile(script, &origin1); v8 6078 test/cctest/test-debug.cc script1->SetData(v8::String::New("data")); v8 6080 test/cctest/test-debug.cc v8::Local<v8::Function> f; v8 6081 test/cctest/test-debug.cc f = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 6090 test/cctest/test-debug.cc v8::Script::Compile(script, &origin1)->Run(); v8 6091 test/cctest/test-debug.cc f = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 6097 test/cctest/test-debug.cc v8::Local<v8::String> data_obj_source = v8::String::New( v8 6102 test/cctest/test-debug.cc v8::Local<v8::Value> data_obj = v8::Script::Compile(data_obj_source)->Run(); v8 6103 test/cctest/test-debug.cc v8::ScriptOrigin origin2 = v8::ScriptOrigin(v8::String::New("new name")); v8 6104 test/cctest/test-debug.cc v8::Handle<v8::Script> script2 = v8::Script::Compile(script, &origin2); v8 6107 test/cctest/test-debug.cc f = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 6113 test/cctest/test-debug.cc v8::Handle<v8::Script> script3 = v8 6114 test/cctest/test-debug.cc v8::Script::Compile(script, &origin2, NULL, v8 6115 test/cctest/test-debug.cc v8::String::New("in compile")); v8 6118 test/cctest/test-debug.cc f = v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 6125 test/cctest/test-debug.cc static v8::Persistent<v8::Context> expected_context; v8 6126 test/cctest/test-debug.cc static v8::Handle<v8::Value> expected_context_data; v8 6137 test/cctest/test-debug.cc v8::String::Value json(message.GetJSON()); v8 6151 test/cctest/test-debug.cc v8::HandleScope scope; v8 6153 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(ContextCheckMessageHandler); v8 6156 test/cctest/test-debug.cc v8::Persistent<v8::Context> context_1; v8 6157 test/cctest/test-debug.cc v8::Persistent<v8::Context> context_2; v8 6158 test/cctest/test-debug.cc v8::Handle<v8::ObjectTemplate> global_template = v8 6159 test/cctest/test-debug.cc v8::Handle<v8::ObjectTemplate>(); v8 6160 test/cctest/test-debug.cc v8::Handle<v8::Value> global_object = v8::Handle<v8::Value>(); v8 6161 test/cctest/test-debug.cc context_1 = v8::Context::New(NULL, global_template, global_object); v8 6162 test/cctest/test-debug.cc context_2 = v8::Context::New(NULL, global_template, global_object); v8 6169 test/cctest/test-debug.cc v8::Handle<v8::String> data_1 = v8::String::New("1"); v8 6170 test/cctest/test-debug.cc v8::Handle<v8::String> data_2 = v8::String::New("2"); v8 6181 test/cctest/test-debug.cc v8::Context::Scope context_scope(context_1); v8 6184 test/cctest/test-debug.cc v8::Local<v8::Function> f = CompileFunction(source, "f"); v8 6191 test/cctest/test-debug.cc v8::Context::Scope context_scope(context_2); v8 6194 test/cctest/test-debug.cc v8::Local<v8::Function> f = CompileFunction(source, "f"); v8 6201 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(NULL); v8 6210 test/cctest/test-debug.cc if (message.IsEvent() && message.GetEvent() == v8::Break) { v8 6213 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 6227 test/cctest/test-debug.cc v8::HandleScope scope; v8 6230 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(DebugBreakMessageHandler); v8 6235 test/cctest/test-debug.cc v8::Local<v8::Function> f = v8 6236 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 6237 test/cctest/test-debug.cc v8::Local<v8::Function> g = v8 6238 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("g"))); v8 6259 test/cctest/test-debug.cc if (event == v8::Break) { v8 6266 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[argc] = { exec_state, v8::Integer::New(0) }; v8 6267 test/cctest/test-debug.cc v8::Handle<v8::Value> result = frame_function_name->Call(exec_state, v8 6273 test/cctest/test-debug.cc v8::Handle<v8::String> function_name(result->ToString()); v8 6280 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 6288 test/cctest/test-debug.cc v8::HandleScope scope; v8 6302 test/cctest/test-debug.cc v8::Local<v8::Function> f = CompileFunction(script, "f"); v8 6304 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[argc] = { v8::String::New(" /* xxx */ a=0;") }; v8 6305 test/cctest/test-debug.cc v8::Local<v8::Value> result = f->Call(env->Global(), argc, argv); v8 6308 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventDebugBreak); v8 6309 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 6323 test/cctest/test-debug.cc v8::Persistent<v8::Context> context_1; v8 6324 test/cctest/test-debug.cc v8::Handle<v8::ObjectTemplate> global_template = v8 6325 test/cctest/test-debug.cc v8::Handle<v8::ObjectTemplate>(); v8 6326 test/cctest/test-debug.cc context_1 = v8::Context::New(NULL, global_template); v8 6332 test/cctest/test-debug.cc v8::Handle<v8::String> data_1 = v8::String::New("1"); v8 6341 test/cctest/test-debug.cc v8::Context::Scope context_scope(context_1); v8 6344 test/cctest/test-debug.cc v8::Local<v8::Function> f = CompileFunction(source, "f"); v8 6355 test/cctest/test-debug.cc v8::HandleScope scope; v8 6356 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(ContextCheckMessageHandler); v8 6362 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(NULL); v8 6380 test/cctest/test-debug.cc v8::String::Value json(message.GetJSON()); v8 6398 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(eval_command, buffer)); v8 6418 test/cctest/test-debug.cc v8::HandleScope scope; v8 6421 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(DebugEvalContextCheckMessageHandler); v8 6430 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(NULL); v8 6442 test/cctest/test-debug.cc if (event == v8::ScriptCollected) { v8 6450 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 6453 test/cctest/test-debug.cc v8::HandleScope scope; v8 6464 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventScriptCollectedEvent, v8 6465 test/cctest/test-debug.cc v8::Undefined()); v8 6467 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("eval('a=1')"))->Run(); v8 6468 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("eval('a=2')"))->Run(); v8 6477 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 6486 test/cctest/test-debug.cc if (message.IsEvent() && message.GetEvent() == v8::ScriptCollected) { v8 6488 test/cctest/test-debug.cc v8::Handle<v8::Context> context = message.GetEventContext(); v8 6497 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 6499 test/cctest/test-debug.cc v8::HandleScope scope; v8 6511 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(ScriptCollectedMessageHandler); v8 6513 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("eval('a=1')"))->Run(); v8 6514 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("eval('a=2')"))->Run(); v8 6524 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(NULL); v8 6533 test/cctest/test-debug.cc if (message.GetEvent() == v8::AfterCompile) { v8 6535 test/cctest/test-debug.cc } else if (message.GetEvent() == v8::Break) { v8 6545 test/cctest/test-debug.cc v8::HandleScope scope; v8 6550 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(AfterCompileMessageHandler); v8 6551 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(script))->Run(); v8 6552 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(NULL); v8 6554 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(AfterCompileMessageHandler); v8 6555 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 6556 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(script))->Run(); v8 6559 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(NULL); v8 6569 test/cctest/test-debug.cc v8::HandleScope scope; v8 6574 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(AfterCompileMessageHandler); v8 6575 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(script))->Run(); v8 6576 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(NULL); v8 6578 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(AfterCompileMessageHandler); v8 6579 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 6580 test/cctest/test-debug.cc v8::Local<v8::Function> f = v8 6581 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 6585 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(NULL); v8 6595 test/cctest/test-debug.cc if (message.IsEvent() && message.GetEvent() == v8::Exception) { v8 6604 test/cctest/test-debug.cc v8::HandleScope scope; v8 6613 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(AfterCompileMessageHandler); v8 6614 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(script))->Run(); v8 6615 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(NULL); v8 6617 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(ExceptionMessageHandler); v8 6618 test/cctest/test-debug.cc v8::Local<v8::Function> f = v8 6619 test/cctest/test-debug.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 6623 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(NULL); v8 6633 test/cctest/test-debug.cc v8::HandleScope scope; v8 6646 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(AfterCompileMessageHandler); v8 6648 test/cctest/test-debug.cc v8::ScriptOrigin origin( v8 6649 test/cctest/test-debug.cc v8::String::New(resource_name), v8 6650 test/cctest/test-debug.cc v8::Integer::New(10), v8 6651 test/cctest/test-debug.cc v8::Integer::New(1)); v8 6654 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(script), &origin)->Run(); v8 6663 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(NULL); v8 6669 test/cctest/test-debug.cc if (message.IsEvent() && message.GetEvent() == v8::Break) { v8 6673 test/cctest/test-debug.cc v8::HandleScope scope; v8 6677 test/cctest/test-debug.cc } else if (message.IsEvent() && message.GetEvent() == v8::AfterCompile) { v8 6678 test/cctest/test-debug.cc v8::HandleScope scope; v8 6700 test/cctest/test-debug.cc v8::HandleScope scope; v8 6704 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(BreakMessageHandler); v8 6707 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 6711 test/cctest/test-debug.cc v8::Local<v8::Function> f = CompileFunction(&env, src, "f"); v8 6717 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 6723 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(NULL); v8 6736 test/cctest/test-debug.cc v8::HandleScope scope; v8 6741 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(CountingMessageHandler); v8 6751 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(scripts_command, buffer)); v8 6754 test/cctest/test-debug.cc v8::Debug::ProcessDebugMessages(); v8 6760 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(scripts_command, buffer)); v8 6761 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(scripts_command, buffer)); v8 6763 test/cctest/test-debug.cc v8::Debug::ProcessDebugMessages(); v8 6768 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(NULL); v8 6775 test/cctest/test-debug.cc static void MessageHandler(const v8::Debug::Message& message) { v8 6777 test/cctest/test-debug.cc v8::String::Value json(message.GetJSON()); v8 6792 test/cctest/test-debug.cc v8::HandleScope scope; v8 6795 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(BacktraceData::MessageHandler); v8 6806 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(scripts_command, buffer)); v8 6807 test/cctest/test-debug.cc v8::Debug::ProcessDebugMessages(); v8 6810 test/cctest/test-debug.cc v8::Handle<v8::String> void0 = v8::String::New("void(0)"); v8 6811 test/cctest/test-debug.cc v8::Handle<v8::Script> script = v8::Script::Compile(void0, void0); v8 6815 test/cctest/test-debug.cc v8::Debug::SendCommand(buffer, AsciiToUtf16(scripts_command, buffer)); v8 6820 test/cctest/test-debug.cc v8::Debug::SetMessageHandler2(NULL); v8 6826 test/cctest/test-debug.cc v8::HandleScope scope; v8 6828 test/cctest/test-debug.cc v8::Handle<v8::Value> obj = v8::Debug::GetMirror(v8::String::New("hodja")); v8 6829 test/cctest/test-debug.cc v8::Handle<v8::Function> run_test = v8::Handle<v8::Function>::Cast( v8 6830 test/cctest/test-debug.cc v8::Script::New( v8 6831 test/cctest/test-debug.cc v8::String::New( v8 6837 test/cctest/test-debug.cc v8::Handle<v8::Value> result = run_test->Call(env->Global(), 1, &obj); v8 6844 test/cctest/test-debug.cc v8::HandleScope scope; v8 6848 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction( v8 6856 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakMax); v8 6859 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 6870 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 6875 test/cctest/test-debug.cc v8::Handle<v8::Context> debugee_context; v8 6876 test/cctest/test-debug.cc v8::Handle<v8::Context> debugger_context; v8 6881 test/cctest/test-debug.cc static v8::Handle<v8::Value> NamedGetterWithCallingContextCheck( v8 6884 test/cctest/test-debug.cc CHECK_EQ(0, strcmp(*v8::String::AsciiValue(name), "a")); v8 6885 test/cctest/test-debug.cc v8::Handle<v8::Context> current = v8::Context::GetCurrent(); v8 6888 test/cctest/test-debug.cc v8::Handle<v8::Context> calling = v8::Context::GetCalling(); v8 6891 test/cctest/test-debug.cc return v8::Int32::New(1); v8 6903 test/cctest/test-debug.cc if (event == v8::Break) { v8 6905 test/cctest/test-debug.cc CHECK(debugger_context == v8::Context::GetCurrent()); v8 6906 test/cctest/test-debug.cc v8::Handle<v8::Function> func(v8::Function::Cast(*CompileRun( v8 6912 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[argc] = { exec_state }; v8 6913 test/cctest/test-debug.cc v8::Handle<v8::Value> result = func->Call(exec_state, argc, argv); v8 6920 test/cctest/test-debug.cc v8::internal::Debug* debug = v8::internal::Isolate::Current()->debug(); v8 6922 test/cctest/test-debug.cc v8::HandleScope scope; v8 6928 test/cctest/test-debug.cc debugee_context = v8::Local<v8::Context>(*env); v8 6929 test/cctest/test-debug.cc debugger_context = v8::Utils::ToLocal(debug->debug_context()); v8 6932 test/cctest/test-debug.cc v8::Handle<v8::ObjectTemplate> named = v8::ObjectTemplate::New(); v8 6933 test/cctest/test-debug.cc named->SetAccessor(v8::String::New("a"), v8 6935 test/cctest/test-debug.cc env->Global()->Set(v8::String::New("obj"), v8 6939 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventGetAtgumentPropertyValue); v8 6942 test/cctest/test-debug.cc v8::Local<v8::Function> foo = CompileFunction( v8 6952 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 6953 test/cctest/test-debug.cc debugee_context = v8::Handle<v8::Context>(); v8 6954 test/cctest/test-debug.cc debugger_context = v8::Handle<v8::Context>(); v8 6960 test/cctest/test-debug.cc v8::HandleScope scope; v8 6961 test/cctest/test-debug.cc v8::Local<v8::Context> context1 = v8::Debug::GetDebugContext(); v8 6962 test/cctest/test-debug.cc v8::Local<v8::Context> context2 = v8::Debug::GetDebugContext(); v8 6967 test/cctest/test-debug.cc static v8::Handle<v8::Value> expected_callback_data; v8 6975 test/cctest/test-debug.cc v8::HandleScope scope; v8 6976 test/cctest/test-debug.cc expected_callback_data = v8::Int32::New(2010); v8 6977 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener2(DebugEventContextChecker, v8 6979 test/cctest/test-debug.cc expected_context = v8::Context::New(); v8 6980 test/cctest/test-debug.cc v8::Context::Scope context_scope(expected_context); v8 6981 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("(function(){debugger;})();"))->Run(); v8 6984 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 6985 test/cctest/test-debug.cc expected_context_data = v8::Handle<v8::Value>(); v8 6994 test/cctest/test-debug.cc if (details.GetEvent() == v8::BreakForCommand) { v8 6997 test/cctest/test-debug.cc } else if (details.GetEvent() == v8::Break) { v8 7005 test/cctest/test-debug.cc v8::HandleScope scope; v8 7007 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener2(DebugEventBreakDataChecker); v8 7015 test/cctest/test-debug.cc v8::Debug::DebugBreakForCommand(); v8 7016 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("(function(x){return x;})(1);"))->Run(); v8 7024 test/cctest/test-debug.cc v8::Debug::DebugBreakForCommand(data1); v8 7025 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("(function(x){return x+1;})(1);"))->Run(); v8 7032 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 7033 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("(function(x){return x+2;})(1);"))->Run(); v8 7041 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 7042 test/cctest/test-debug.cc v8::Debug::DebugBreakForCommand(data2); v8 7043 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("(function(x){return x+3;})(1);"))->Run(); v8 7051 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 7061 test/cctest/test-debug.cc if (event == v8::Break) { v8 7065 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[argc] = { exec_state, v8::Integer::New(0) }; v8 7066 test/cctest/test-debug.cc v8::Handle<v8::Value> result = v8 7071 test/cctest/test-debug.cc v8::Handle<v8::String> function_name(result->ToString()); v8 7080 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 7088 test/cctest/test-debug.cc v8::HandleScope scope; v8 7103 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakDeoptimize, v8 7104 test/cctest/test-debug.cc v8::Undefined()); v8 7107 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("function bar(){}; bar()"))->Run(); v8 7110 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 7111 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New("bar()"))->Run(); v8 7115 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 7123 test/cctest/test-debug.cc if (event == v8::Break) { v8 7127 test/cctest/test-debug.cc v8::Handle<v8::Value> argv[argc] = { exec_state, v8::Integer::New(i) }; v8 7129 test/cctest/test-debug.cc v8::Handle<v8::Value> result = v8 7132 test/cctest/test-debug.cc v8::Handle<v8::String> function_name(result->ToString()); v8 7133 test/cctest/test-debug.cc CHECK(function_name->Equals(v8::String::New("loop"))); v8 7137 test/cctest/test-debug.cc v8::Handle<v8::String> argument_name(result->ToString()); v8 7138 test/cctest/test-debug.cc CHECK(argument_name->Equals(v8::String::New("count"))); v8 7150 test/cctest/test-debug.cc v8::Handle<v8::String> local_name(result->ToString()); v8 7151 test/cctest/test-debug.cc CHECK(local_name->Equals(v8::String::New("local"))); v8 7166 test/cctest/test-debug.cc static v8::Handle<v8::Value> ScheduleBreak(const v8::Arguments& args) { v8 7167 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakWithOptimizedStack, v8 7168 test/cctest/test-debug.cc v8::Undefined()); v8 7169 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 7170 test/cctest/test-debug.cc return v8::Undefined(); v8 7175 test/cctest/test-debug.cc v8::HandleScope scope; v8 7190 test/cctest/test-debug.cc v8::Handle<v8::FunctionTemplate> schedule_break_template = v8 7191 test/cctest/test-debug.cc v8::FunctionTemplate::New(ScheduleBreak); v8 7192 test/cctest/test-debug.cc v8::Handle<v8::Function> schedule_break = v8 7202 test/cctest/test-debug.cc v8::Script::Compile(v8::String::New(src))->Run(); v8 7235 test/cctest/test-debug.cc v8::Debug::DebugBreak(); v8 7241 test/cctest/test-debug.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 7248 test/cctest/test-debug.cc v8::HandleScope scope; v8 7252 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventBreakMax); v8 7286 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 7291 test/cctest/test-debug.cc v8::Local<v8::Script> inline_script; v8 7297 test/cctest/test-debug.cc if (event != v8::Break) return; v8 7302 test/cctest/test-debug.cc i::Handle<i::Object> compiled_script = v8::Utils::OpenHandle(*inline_script); v8 7306 test/cctest/test-debug.cc int break_id = v8::internal::Isolate::Current()->debug()->break_id(); v8 7310 test/cctest/test-debug.cc v8::Local<v8::Value> result = CompileRun(script); v8 7319 test/cctest/test-debug.cc v8::Local<v8::Value> result = CompileRun(script); v8 7323 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 7324 test/cctest/test-debug.cc v8::V8::TerminateExecution(); v8 7330 test/cctest/test-debug.cc v8::HandleScope scope; v8 7346 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugBreakInlineListener); v8 7347 test/cctest/test-debug.cc inline_script = v8::Script::Compile(v8::String::New(source)); v8 7356 test/cctest/test-debug.cc if (event == v8::Break) { v8 7363 test/cctest/test-debug.cc v8::TryCatch try_catch; v8 7378 test/cctest/test-debug.cc v8::HandleScope scope; v8 7380 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(DebugEventStepNext); v8 7392 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 7408 test/cctest/test-debug.cc v8::HandleScope scope; v8 7412 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 7416 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NopListener); v8 7420 test/cctest/test-debug.cc v8::Debug::SetDebugEventListener(NULL); v8 35 test/cctest/test-decls.cc using namespace v8; v8 69 test/cctest/test-decls.cc virtual v8::Handle<Value> Get(Local<String> key); v8 70 test/cctest/test-decls.cc virtual v8::Handle<Value> Set(Local<String> key, Local<Value> value); v8 71 test/cctest/test-decls.cc virtual v8::Handle<Integer> Query(Local<String> key); v8 87 test/cctest/test-decls.cc static v8::Handle<Value> HandleGet(Local<String> key, v8 89 test/cctest/test-decls.cc static v8::Handle<Value> HandleSet(Local<String> key, v8 92 test/cctest/test-decls.cc static v8::Handle<Integer> HandleQuery(Local<String> key, v8 138 test/cctest/test-decls.cc HEAP->CollectGarbage(v8::internal::NEW_SPACE); v8 161 test/cctest/test-decls.cc v8::Handle<Value> DeclarationContext::HandleGet(Local<String> key, v8 169 test/cctest/test-decls.cc v8::Handle<Value> DeclarationContext::HandleSet(Local<String> key, v8 178 test/cctest/test-decls.cc v8::Handle<Integer> DeclarationContext::HandleQuery(Local<String> key, v8 191 test/cctest/test-decls.cc v8::Handle<Value> DeclarationContext::Get(Local<String> key) { v8 192 test/cctest/test-decls.cc return v8::Handle<Value>(); v8 196 test/cctest/test-decls.cc v8::Handle<Value> DeclarationContext::Set(Local<String> key, v8 198 test/cctest/test-decls.cc return v8::Handle<Value>(); v8 202 test/cctest/test-decls.cc v8::Handle<Integer> DeclarationContext::Query(Local<String> key) { v8 203 test/cctest/test-decls.cc return v8::Handle<Integer>(); v8 257 test/cctest/test-decls.cc virtual v8::Handle<Integer> Query(Local<String> key) { v8 258 test/cctest/test-decls.cc return Integer::New(v8::None); v8 312 test/cctest/test-decls.cc virtual v8::Handle<Integer> Query(Local<String> key) { v8 313 test/cctest/test-decls.cc return v8::Handle<Integer>(); v8 383 test/cctest/test-decls.cc virtual v8::Handle<Integer> Query(Local<String> key) { v8 394 test/cctest/test-decls.cc return Integer::New(v8::None); v8 400 test/cctest/test-decls.cc return v8::Handle<Integer>(); v8 468 test/cctest/test-decls.cc virtual v8::Handle<Integer> Query(Local<String> key) { v8 479 test/cctest/test-decls.cc return Integer::New(v8::None); v8 516 test/cctest/test-decls.cc virtual v8::Handle<Integer> Query(Local<String> key) { v8 518 test/cctest/test-decls.cc return Integer::New(v8::None); v8 579 test/cctest/test-decls.cc virtual v8::Handle<Integer> Query(Local<String> key) { v8 614 test/cctest/test-decls.cc virtual v8::Handle<Integer> Query(Local<String> key) { v8 616 test/cctest/test-decls.cc return Integer::New(v8::None); v8 109 test/cctest/test-deoptimization.cc v8::Local<v8::Function> fun = v8 110 test/cctest/test-deoptimization.cc v8::Local<v8::Function>::Cast(obj->Get(v8_str(property_name))); v8 111 test/cctest/test-deoptimization.cc return v8::Utils::OpenHandle(*fun); v8 116 test/cctest/test-deoptimization.cc v8::HandleScope scope; v8 154 test/cctest/test-deoptimization.cc v8::HandleScope scope; v8 193 test/cctest/test-deoptimization.cc v8::HandleScope scope; v8 218 test/cctest/test-deoptimization.cc v8::HandleScope scope; v8 238 test/cctest/test-deoptimization.cc v8::Local<v8::Function> fun = v8 239 test/cctest/test-deoptimization.cc v8::Local<v8::Function>::Cast(env->Global()->Get(v8::String::New("f"))); v8 245 test/cctest/test-deoptimization.cc v8::HandleScope scope; v8 273 test/cctest/test-deoptimization.cc v8::HandleScope scope; v8 311 test/cctest/test-deoptimization.cc v8::HandleScope scope; v8 340 test/cctest/test-deoptimization.cc v8::HandleScope scope; v8 377 test/cctest/test-deoptimization.cc v8::Handle<v8::Value> result = env->Global()->Get(v8_str("result")); v8 379 test/cctest/test-deoptimization.cc v8::String::AsciiValue ascii(result); v8 430 test/cctest/test-deoptimization.cc v8::HandleScope scope; v8 442 test/cctest/test-deoptimization.cc v8::HandleScope scope; v8 454 test/cctest/test-deoptimization.cc v8::HandleScope scope; v8 466 test/cctest/test-deoptimization.cc v8::HandleScope scope; v8 478 test/cctest/test-deoptimization.cc v8::HandleScope scope; v8 490 test/cctest/test-deoptimization.cc v8::HandleScope scope; v8 533 test/cctest/test-deoptimization.cc v8::HandleScope scope; v8 613 test/cctest/test-deoptimization.cc v8::HandleScope scope; v8 39 test/cctest/test-dictionary.cc using namespace v8::internal; v8 43 test/cctest/test-dictionary.cc v8::HandleScope scope; v8 104 test/cctest/test-dictionary.cc v8::HandleScope scope; v8 127 test/cctest/test-dictionary.cc v8::HandleScope scope; v8 40 test/cctest/test-disasm-arm.cc using namespace v8::internal; v8 43 test/cctest/test-disasm-arm.cc static v8::Persistent<v8::Context> env; v8 47 test/cctest/test-disasm-arm.cc env = v8::Context::New(); v8 77 test/cctest/test-disasm-arm.cc v8::HandleScope scope; \ v8 39 test/cctest/test-disasm-ia32.cc using namespace v8::internal; v8 41 test/cctest/test-disasm-ia32.cc static v8::Persistent<v8::Context> env; v8 45 test/cctest/test-disasm-ia32.cc env = v8::Context::New(); v8 59 test/cctest/test-disasm-ia32.cc v8::HandleScope scope; v8 60 test/cctest/test-disasm-ia32.cc v8::internal::byte buffer[2048]; v8 40 test/cctest/test-disasm-mips.cc using namespace v8::internal; v8 43 test/cctest/test-disasm-mips.cc static v8::Persistent<v8::Context> env; v8 49 test/cctest/test-disasm-mips.cc env = v8::Context::New(); v8 79 test/cctest/test-disasm-mips.cc v8::HandleScope scope; \ v8 39 test/cctest/test-disasm-x64.cc using namespace v8::internal; v8 41 test/cctest/test-disasm-x64.cc static v8::Persistent<v8::Context> env; v8 45 test/cctest/test-disasm-x64.cc env = v8::Context::New(); v8 59 test/cctest/test-disasm-x64.cc v8::HandleScope scope; v8 60 test/cctest/test-disasm-x64.cc v8::internal::byte buffer[2048]; v8 12 test/cctest/test-diy-fp.cc using namespace v8::internal; v8 13 test/cctest/test-double.cc using namespace v8::internal; v8 42 test/cctest/test-dtoa.cc using namespace v8::internal; v8 15 test/cctest/test-fast-dtoa.cc using namespace v8::internal; v8 38 test/cctest/test-fixed-dtoa.cc using namespace v8::internal; v8 33 test/cctest/test-flags.cc using namespace v8::internal; v8 49 test/cctest/test-func-name-inference.cc static v8::Persistent<v8::Context> env; v8 54 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 55 test/cctest/test-func-name-inference.cc env = v8::Context::New(); v8 57 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 66 test/cctest/test-func-name-inference.cc Handle<Object> obj = v8::Utils::OpenHandle(*script); v8 106 test/cctest/test-func-name-inference.cc static v8::Handle<v8::Script> Compile(const char* src) { v8 107 test/cctest/test-func-name-inference.cc return v8::Script::Compile(v8::String::New(src)); v8 113 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 115 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 125 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 127 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 137 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 139 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 151 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 153 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 165 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 167 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 181 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 183 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 199 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 201 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 217 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 219 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 231 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 233 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 247 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 249 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 260 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 262 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 275 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 277 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 288 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 290 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 304 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 306 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 318 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 320 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 334 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 336 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 353 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 355 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 368 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 370 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 386 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 388 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 407 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 409 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 423 test/cctest/test-func-name-inference.cc v8::HandleScope scope; v8 425 test/cctest/test-func-name-inference.cc v8::Handle<v8::Script> script = Compile( v8 42 test/cctest/test-hashing.cc using namespace v8::internal; v8 47 test/cctest/test-hashing.cc static v8::Persistent<v8::Context> env; v8 156 test/cctest/test-hashing.cc v8::HandleScope scope; v8 157 test/cctest/test-hashing.cc v8::internal::byte buffer[2048]; v8 185 test/cctest/test-hashing.cc v8::HandleScope scope; v8 186 test/cctest/test-hashing.cc v8::internal::byte buffer[2048]; v8 226 test/cctest/test-hashing.cc if (env.IsEmpty()) env = v8::Context::New(); v8 244 test/cctest/test-hashing.cc if (env.IsEmpty()) env = v8::Context::New(); v8 34 test/cctest/test-hashmap.cc using namespace v8::internal; v8 67 test/cctest/test-heap-profiler.cc static const v8::HeapGraphNode* GetGlobalObject( v8 70 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global_obj = v8 78 test/cctest/test-heap-profiler.cc static const v8::HeapGraphNode* GetProperty(const v8::HeapGraphNode* node, v8 82 test/cctest/test-heap-profiler.cc const v8::HeapGraphEdge* prop = node->GetChild(i); v8 83 test/cctest/test-heap-profiler.cc v8::String::AsciiValue prop_name(prop->GetName()); v8 93 test/cctest/test-heap-profiler.cc const v8::HeapGraphEdge* prop = node->GetChild(i); v8 94 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* node = prop->GetToNode(); v8 95 test/cctest/test-heap-profiler.cc if (node->GetType() == v8::HeapGraphNode::kString) { v8 96 test/cctest/test-heap-profiler.cc v8::String::AsciiValue node_name(node->GetName()); v8 105 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 115 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot_env2 = v8 116 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("env2")); v8 117 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global_env2 = GetGlobalObject(snapshot_env2); v8 120 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* a2_node = v8 121 test/cctest/test-heap-profiler.cc GetProperty(global_env2, v8::HeapGraphEdge::kProperty, "a2"); v8 124 test/cctest/test-heap-profiler.cc NULL, GetProperty(global_env2, v8::HeapGraphEdge::kProperty, "b2_1")); v8 126 test/cctest/test-heap-profiler.cc NULL, GetProperty(global_env2, v8::HeapGraphEdge::kProperty, "b2_2")); v8 127 test/cctest/test-heap-profiler.cc CHECK_NE(NULL, GetProperty(global_env2, v8::HeapGraphEdge::kProperty, "c2")); v8 139 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 149 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 150 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("sizes")); v8 151 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 152 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* x = v8 153 test/cctest/test-heap-profiler.cc GetProperty(global, v8::HeapGraphEdge::kProperty, "x"); v8 155 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* x1 = v8 156 test/cctest/test-heap-profiler.cc GetProperty(x, v8::HeapGraphEdge::kProperty, "a"); v8 158 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* x2 = v8 159 test/cctest/test-heap-profiler.cc GetProperty(x, v8::HeapGraphEdge::kProperty, "b"); v8 170 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 176 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 177 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("sizes")); v8 178 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 179 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* f = v8 180 test/cctest/test-heap-profiler.cc GetProperty(global, v8::HeapGraphEdge::kProperty, "boundFunction"); v8 182 test/cctest/test-heap-profiler.cc CHECK_EQ(v8::String::New("native_bind"), f->GetName()); v8 183 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* bindings = v8 184 test/cctest/test-heap-profiler.cc GetProperty(f, v8::HeapGraphEdge::kInternal, "bindings"); v8 186 test/cctest/test-heap-profiler.cc CHECK_EQ(v8::HeapGraphNode::kArray, bindings->GetType()); v8 189 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* bound_this = GetProperty( v8 190 test/cctest/test-heap-profiler.cc f, v8::HeapGraphEdge::kShortcut, "bound_this"); v8 192 test/cctest/test-heap-profiler.cc CHECK_EQ(v8::HeapGraphNode::kObject, bound_this->GetType()); v8 194 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* bound_function = GetProperty( v8 195 test/cctest/test-heap-profiler.cc f, v8::HeapGraphEdge::kShortcut, "bound_function"); v8 197 test/cctest/test-heap-profiler.cc CHECK_EQ(v8::HeapGraphNode::kClosure, bound_function->GetType()); v8 199 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* bound_argument = GetProperty( v8 200 test/cctest/test-heap-profiler.cc f, v8::HeapGraphEdge::kShortcut, "bound_argument_1"); v8 202 test/cctest/test-heap-profiler.cc CHECK_EQ(v8::HeapGraphNode::kObject, bound_argument->GetType()); v8 207 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 213 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 214 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("children")); v8 215 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 217 test/cctest/test-heap-profiler.cc const v8::HeapGraphEdge* prop = global->GetChild(i); v8 220 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* a = v8 221 test/cctest/test-heap-profiler.cc GetProperty(global, v8::HeapGraphEdge::kProperty, "a"); v8 224 test/cctest/test-heap-profiler.cc const v8::HeapGraphEdge* prop = a->GetChild(i); v8 231 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 239 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 240 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("code")); v8 242 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 243 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* compiled = v8 244 test/cctest/test-heap-profiler.cc GetProperty(global, v8::HeapGraphEdge::kProperty, "compiled"); v8 246 test/cctest/test-heap-profiler.cc CHECK_EQ(v8::HeapGraphNode::kClosure, compiled->GetType()); v8 247 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* lazy = v8 248 test/cctest/test-heap-profiler.cc GetProperty(global, v8::HeapGraphEdge::kProperty, "lazy"); v8 250 test/cctest/test-heap-profiler.cc CHECK_EQ(v8::HeapGraphNode::kClosure, lazy->GetType()); v8 251 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* anonymous = v8 252 test/cctest/test-heap-profiler.cc GetProperty(global, v8::HeapGraphEdge::kProperty, "anonymous"); v8 254 test/cctest/test-heap-profiler.cc CHECK_EQ(v8::HeapGraphNode::kClosure, anonymous->GetType()); v8 255 test/cctest/test-heap-profiler.cc v8::String::AsciiValue anonymous_name(anonymous->GetName()); v8 259 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* compiled_code = v8 260 test/cctest/test-heap-profiler.cc GetProperty(compiled, v8::HeapGraphEdge::kInternal, "shared"); v8 262 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* lazy_code = v8 263 test/cctest/test-heap-profiler.cc GetProperty(lazy, v8::HeapGraphEdge::kInternal, "shared"); v8 271 test/cctest/test-heap-profiler.cc const v8::HeapGraphEdge* prop = compiled_code->GetChild(i); v8 272 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* node = prop->GetToNode(); v8 273 test/cctest/test-heap-profiler.cc if (node->GetType() == v8::HeapGraphNode::kArray) { v8 281 test/cctest/test-heap-profiler.cc const v8::HeapGraphEdge* prop = lazy_code->GetChild(i); v8 282 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* node = prop->GetToNode(); v8 283 test/cctest/test-heap-profiler.cc if (node->GetType() == v8::HeapGraphNode::kArray) { v8 296 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 301 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 302 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("numbers")); v8 303 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 304 test/cctest/test-heap-profiler.cc CHECK_EQ(NULL, GetProperty(global, v8::HeapGraphEdge::kProperty, "a")); v8 305 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* b = v8 306 test/cctest/test-heap-profiler.cc GetProperty(global, v8::HeapGraphEdge::kProperty, "b"); v8 308 test/cctest/test-heap-profiler.cc CHECK_EQ(v8::HeapGraphNode::kHeapNumber, b->GetType()); v8 312 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 320 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 321 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("strings")); v8 322 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 323 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* parent_string = v8 324 test/cctest/test-heap-profiler.cc GetProperty(global, v8::HeapGraphEdge::kProperty, "parent_string"); v8 326 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* child_string = v8 327 test/cctest/test-heap-profiler.cc GetProperty(global, v8::HeapGraphEdge::kProperty, "child_string"); v8 329 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* parent = v8 330 test/cctest/test-heap-profiler.cc GetProperty(child_string, v8::HeapGraphEdge::kInternal, "parent"); v8 335 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 336 test/cctest/test-heap-profiler.cc v8::Local<v8::ObjectTemplate> global_template = v8::ObjectTemplate::New(); v8 339 test/cctest/test-heap-profiler.cc v8::Handle<v8::Object> global_proxy = env->Global(); v8 340 test/cctest/test-heap-profiler.cc v8::Handle<v8::Object> global = global_proxy->GetPrototype().As<v8::Object>(); v8 342 test/cctest/test-heap-profiler.cc v8::Local<v8::Object> obj = v8::Object::New(); v8 345 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 346 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("internals")); v8 347 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global_node = GetGlobalObject(snapshot); v8 349 test/cctest/test-heap-profiler.cc CHECK_EQ(NULL, GetProperty(global_node, v8::HeapGraphEdge::kInternal, "0")); v8 351 test/cctest/test-heap-profiler.cc CHECK_NE(NULL, GetProperty(global_node, v8::HeapGraphEdge::kInternal, "1")); v8 364 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 375 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot1 = v8 376 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("s1")); v8 384 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot2 = v8 385 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("s2")); v8 387 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global1 = GetGlobalObject(snapshot1); v8 388 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global2 = GetGlobalObject(snapshot2); v8 392 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* a1 = v8 393 test/cctest/test-heap-profiler.cc GetProperty(global1, v8::HeapGraphEdge::kProperty, "a"); v8 395 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* k1 = v8 396 test/cctest/test-heap-profiler.cc GetProperty(a1, v8::HeapGraphEdge::kInternal, "elements"); v8 398 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* a2 = v8 399 test/cctest/test-heap-profiler.cc GetProperty(global2, v8::HeapGraphEdge::kProperty, "a"); v8 401 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* k2 = v8 402 test/cctest/test-heap-profiler.cc GetProperty(a2, v8::HeapGraphEdge::kInternal, "elements"); v8 410 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 418 test/cctest/test-heap-profiler.cc v8::Local<v8::String> s1_str = v8_str("s1"); v8 419 test/cctest/test-heap-profiler.cc v8::Local<v8::String> s2_str = v8_str("s2"); v8 420 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot1 = v8 421 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(s1_str); v8 425 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot2 = v8 426 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(s2_str); v8 432 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global1 = GetGlobalObject(snapshot1); v8 433 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global2 = GetGlobalObject(snapshot2); v8 436 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* A1 = v8 437 test/cctest/test-heap-profiler.cc GetProperty(global1, v8::HeapGraphEdge::kProperty, "A"); v8 439 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* A2 = v8 440 test/cctest/test-heap-profiler.cc GetProperty(global2, v8::HeapGraphEdge::kProperty, "A"); v8 444 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* B1 = v8 445 test/cctest/test-heap-profiler.cc GetProperty(global1, v8::HeapGraphEdge::kProperty, "B"); v8 447 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* B2 = v8 448 test/cctest/test-heap-profiler.cc GetProperty(global2, v8::HeapGraphEdge::kProperty, "B"); v8 452 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* a1 = v8 453 test/cctest/test-heap-profiler.cc GetProperty(global1, v8::HeapGraphEdge::kProperty, "a"); v8 455 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* a2 = v8 456 test/cctest/test-heap-profiler.cc GetProperty(global2, v8::HeapGraphEdge::kProperty, "a"); v8 460 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* b1 = v8 461 test/cctest/test-heap-profiler.cc GetProperty(global1, v8::HeapGraphEdge::kProperty, "b"); v8 463 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* b2 = v8 464 test/cctest/test-heap-profiler.cc GetProperty(global2, v8::HeapGraphEdge::kProperty, "b"); v8 472 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 474 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 475 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("s")); v8 476 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* root1 = snapshot->GetRoot(); v8 479 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* root2 = snapshot->GetRoot(); v8 486 test/cctest/test-heap-profiler.cc class TestJSONStream : public v8::OutputStream { v8 515 test/cctest/test-heap-profiler.cc class AsciiResource: public v8::String::ExternalAsciiStringResource { v8 530 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 540 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 541 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("json")); v8 543 test/cctest/test-heap-profiler.cc snapshot->Serialize(&stream, v8::HeapSnapshot::kJSON); v8 551 test/cctest/test-heap-profiler.cc v8::Local<v8::String> json_string = v8::String::NewExternal(&json_res); v8 553 test/cctest/test-heap-profiler.cc v8::Local<v8::Value> snapshot_parse_result = CompileRun( v8 558 test/cctest/test-heap-profiler.cc v8::Local<v8::Object> parsed_snapshot = v8 566 test/cctest/test-heap-profiler.cc v8::Local<v8::Value> meta_analysis_result = CompileRun( v8 604 test/cctest/test-heap-profiler.cc v8::Local<v8::Value> string_obj_pos_val = CompileRun( v8 615 test/cctest/test-heap-profiler.cc v8::Local<v8::Object> nodes_array = v8 620 test/cctest/test-heap-profiler.cc v8::Local<v8::Object> strings_array = v8 622 test/cctest/test-heap-profiler.cc v8::Local<v8::String> string = strings_array->Get(string_index)->ToString(); v8 623 test/cctest/test-heap-profiler.cc v8::Local<v8::String> ref_string = v8 626 test/cctest/test-heap-profiler.cc CHECK_EQ(*v8::String::Utf8Value(ref_string), v8 627 test/cctest/test-heap-profiler.cc *v8::String::Utf8Value(string)); v8 632 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 634 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 635 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("abort")); v8 637 test/cctest/test-heap-profiler.cc snapshot->Serialize(&stream, v8::HeapSnapshot::kJSON); v8 644 test/cctest/test-heap-profiler.cc class TestStatsStream : public v8::OutputStream { v8 703 test/cctest/test-heap-profiler.cc v8::SnapshotObjectId last_seen_id = v8 704 test/cctest/test-heap-profiler.cc v8::HeapProfiler::PushHeapObjectsStats(&stream); v8 713 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 716 test/cctest/test-heap-profiler.cc v8::HeapProfiler::StartHeapObjectsTracking(); v8 723 test/cctest/test-heap-profiler.cc v8::SnapshotObjectId initial_id; v8 734 test/cctest/test-heap-profiler.cc v8::SnapshotObjectId same_id; v8 739 test/cctest/test-heap-profiler.cc v8::SnapshotObjectId additional_string_id; v8 740 test/cctest/test-heap-profiler.cc v8::HandleScope inner_scope_1; v8 754 test/cctest/test-heap-profiler.cc v8::SnapshotObjectId last_id; v8 759 test/cctest/test-heap-profiler.cc v8::HandleScope inner_scope_2; v8 764 test/cctest/test-heap-profiler.cc v8::HandleScope inner_scope_3; v8 813 test/cctest/test-heap-profiler.cc v8::Local<v8::Array> array = v8::Array::New(); v8 845 test/cctest/test-heap-profiler.cc v8::HeapProfiler::StopHeapObjectsTracking(); v8 855 test/cctest/test-heap-profiler.cc const v8::HeapGraphEdge* prop = node->GetChild(i); v8 856 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* child = v8 866 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 869 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 870 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("id")); v8 871 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* root = snapshot->GetRoot(); v8 879 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 882 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 883 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("get_snapshot_object_id")); v8 884 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 885 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global_object = v8 886 test/cctest/test-heap-profiler.cc GetProperty(global, v8::HeapGraphEdge::kProperty, "globalObject"); v8 889 test/cctest/test-heap-profiler.cc v8::Local<v8::Value> globalObjectHandle = v8 890 test/cctest/test-heap-profiler.cc env->Global()->Get(v8::String::New("globalObject")); v8 894 test/cctest/test-heap-profiler.cc v8::SnapshotObjectId id = v8 895 test/cctest/test-heap-profiler.cc v8::HeapProfiler::GetSnapshotObjectId(globalObjectHandle); v8 896 test/cctest/test-heap-profiler.cc CHECK_NE(static_cast<int>(v8::HeapProfiler::kUnknownObjectId), v8 903 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 906 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 907 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("unknown_object_id")); v8 908 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* node = v8 909 test/cctest/test-heap-profiler.cc snapshot->GetNodeById(v8::HeapProfiler::kUnknownObjectId); v8 916 test/cctest/test-heap-profiler.cc class TestActivityControl : public v8::ActivityControl { v8 936 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 939 test/cctest/test-heap-profiler.cc const int snapshots_count = v8::HeapProfiler::GetSnapshotsCount(); v8 941 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* no_snapshot = v8 942 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("abort"), v8 943 test/cctest/test-heap-profiler.cc v8::HeapSnapshot::kFull, v8 946 test/cctest/test-heap-profiler.cc CHECK_EQ(snapshots_count, v8::HeapProfiler::GetSnapshotsCount()); v8 950 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 951 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("full"), v8 952 test/cctest/test-heap-profiler.cc v8::HeapSnapshot::kFull, v8 955 test/cctest/test-heap-profiler.cc CHECK_EQ(snapshots_count + 1, v8::HeapProfiler::GetSnapshotsCount()); v8 963 test/cctest/test-heap-profiler.cc class TestRetainedObjectInfo : public v8::RetainedObjectInfo { v8 993 test/cctest/test-heap-profiler.cc static v8::RetainedObjectInfo* WrapperInfoCallback( v8 997 test/cctest/test-heap-profiler.cc v8::String::AsciiValue ascii(wrapper); v8 1005 test/cctest/test-heap-profiler.cc v8::String::AsciiValue ascii(wrapper); v8 1031 test/cctest/test-heap-profiler.cc static const v8::HeapGraphNode* GetNode(const v8::HeapGraphNode* parent, v8 1035 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* node = parent->GetChild(i)->GetToNode(); v8 1047 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1050 test/cctest/test-heap-profiler.cc v8::HeapProfiler::DefineWrapperClass( v8 1052 test/cctest/test-heap-profiler.cc v8::HeapProfiler::DefineWrapperClass( v8 1054 test/cctest/test-heap-profiler.cc v8::Persistent<v8::String> p_AAA = v8 1055 test/cctest/test-heap-profiler.cc v8::Persistent<v8::String>::New(v8_str("AAA")); v8 1057 test/cctest/test-heap-profiler.cc v8::Persistent<v8::String> p_BBB = v8 1058 test/cctest/test-heap-profiler.cc v8::Persistent<v8::String>::New(v8_str("BBB")); v8 1060 test/cctest/test-heap-profiler.cc v8::Persistent<v8::String> p_CCC = v8 1061 test/cctest/test-heap-profiler.cc v8::Persistent<v8::String>::New(v8_str("CCC")); v8 1064 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 1065 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("retained")); v8 1073 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* native_group_aaa = GetNode( v8 1074 test/cctest/test-heap-profiler.cc snapshot->GetRoot(), v8::HeapGraphNode::kSynthetic, "aaa-group"); v8 1077 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* aaa = GetNode( v8 1078 test/cctest/test-heap-profiler.cc native_group_aaa, v8::HeapGraphNode::kNative, "aaa / 100 entries"); v8 1082 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* native_group_ccc = GetNode( v8 1083 test/cctest/test-heap-profiler.cc snapshot->GetRoot(), v8::HeapGraphNode::kSynthetic, "ccc-group"); v8 1084 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* ccc = GetNode( v8 1085 test/cctest/test-heap-profiler.cc native_group_ccc, v8::HeapGraphNode::kNative, "ccc"); v8 1088 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* n_AAA = GetNode( v8 1089 test/cctest/test-heap-profiler.cc aaa, v8::HeapGraphNode::kString, "AAA"); v8 1091 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* n_BBB = GetNode( v8 1092 test/cctest/test-heap-profiler.cc aaa, v8::HeapGraphNode::kString, "BBB"); v8 1095 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* n_CCC = GetNode( v8 1096 test/cctest/test-heap-profiler.cc ccc, v8::HeapGraphNode::kString, "CCC"); v8 1099 test/cctest/test-heap-profiler.cc CHECK_EQ(aaa, GetProperty(n_AAA, v8::HeapGraphEdge::kInternal, "native")); v8 1100 test/cctest/test-heap-profiler.cc CHECK_EQ(aaa, GetProperty(n_BBB, v8::HeapGraphEdge::kInternal, "native")); v8 1101 test/cctest/test-heap-profiler.cc CHECK_EQ(ccc, GetProperty(n_CCC, v8::HeapGraphEdge::kInternal, "native")); v8 1112 test/cctest/test-heap-profiler.cc objects_[i] = v8::Persistent<v8::Object>::New(v8::Object::New()); v8 1127 test/cctest/test-heap-profiler.cc v8::V8::AddImplicitReferences( v8 1128 test/cctest/test-heap-profiler.cc v8::Persistent<v8::Object>::Cast(objects_[0]), &objects_[1], 1); v8 1130 test/cctest/test-heap-profiler.cc v8::V8::AddImplicitReferences( v8 1131 test/cctest/test-heap-profiler.cc v8::Persistent<v8::Object>::Cast(objects_[1]), &objects_[2], 2); v8 1134 test/cctest/test-heap-profiler.cc v8::Persistent<v8::Value> objects_[kObjectsCount]; v8 1142 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1146 test/cctest/test-heap-profiler.cc v8::V8::SetGlobalGCPrologueCallback(&GraphWithImplicitRefs::gcPrologue); v8 1148 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 1149 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("implicit_refs")); v8 1151 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global_object = GetGlobalObject(snapshot); v8 1152 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* obj0 = GetProperty( v8 1153 test/cctest/test-heap-profiler.cc global_object, v8::HeapGraphEdge::kProperty, "root_object"); v8 1155 test/cctest/test-heap-profiler.cc CHECK_EQ(v8::HeapGraphNode::kObject, obj0->GetType()); v8 1156 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* obj1 = GetProperty( v8 1157 test/cctest/test-heap-profiler.cc obj0, v8::HeapGraphEdge::kInternal, "native"); v8 1161 test/cctest/test-heap-profiler.cc const v8::HeapGraphEdge* prop = obj1->GetChild(i); v8 1162 test/cctest/test-heap-profiler.cc v8::String::AsciiValue prop_name(prop->GetName()); v8 1163 test/cctest/test-heap-profiler.cc if (prop->GetType() == v8::HeapGraphEdge::kInternal && v8 1169 test/cctest/test-heap-profiler.cc v8::V8::SetGlobalGCPrologueCallback(NULL); v8 1174 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1177 test/cctest/test-heap-profiler.cc CHECK_EQ(0, v8::HeapProfiler::GetSnapshotsCount()); v8 1178 test/cctest/test-heap-profiler.cc v8::HeapProfiler::DeleteAllSnapshots(); v8 1179 test/cctest/test-heap-profiler.cc CHECK_EQ(0, v8::HeapProfiler::GetSnapshotsCount()); v8 1180 test/cctest/test-heap-profiler.cc CHECK_NE(NULL, v8::HeapProfiler::TakeSnapshot(v8_str("1"))); v8 1181 test/cctest/test-heap-profiler.cc CHECK_EQ(1, v8::HeapProfiler::GetSnapshotsCount()); v8 1182 test/cctest/test-heap-profiler.cc v8::HeapProfiler::DeleteAllSnapshots(); v8 1183 test/cctest/test-heap-profiler.cc CHECK_EQ(0, v8::HeapProfiler::GetSnapshotsCount()); v8 1184 test/cctest/test-heap-profiler.cc CHECK_NE(NULL, v8::HeapProfiler::TakeSnapshot(v8_str("1"))); v8 1185 test/cctest/test-heap-profiler.cc CHECK_NE(NULL, v8::HeapProfiler::TakeSnapshot(v8_str("2"))); v8 1186 test/cctest/test-heap-profiler.cc CHECK_EQ(2, v8::HeapProfiler::GetSnapshotsCount()); v8 1187 test/cctest/test-heap-profiler.cc v8::HeapProfiler::DeleteAllSnapshots(); v8 1188 test/cctest/test-heap-profiler.cc CHECK_EQ(0, v8::HeapProfiler::GetSnapshotsCount()); v8 1193 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1196 test/cctest/test-heap-profiler.cc CHECK_EQ(0, v8::HeapProfiler::GetSnapshotsCount()); v8 1197 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* s1 = v8 1198 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("1")); v8 1200 test/cctest/test-heap-profiler.cc CHECK_EQ(1, v8::HeapProfiler::GetSnapshotsCount()); v8 1202 test/cctest/test-heap-profiler.cc CHECK_EQ(s1, v8::HeapProfiler::FindSnapshot(uid1)); v8 1203 test/cctest/test-heap-profiler.cc const_cast<v8::HeapSnapshot*>(s1)->Delete(); v8 1204 test/cctest/test-heap-profiler.cc CHECK_EQ(0, v8::HeapProfiler::GetSnapshotsCount()); v8 1205 test/cctest/test-heap-profiler.cc CHECK_EQ(NULL, v8::HeapProfiler::FindSnapshot(uid1)); v8 1207 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* s2 = v8 1208 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("2")); v8 1210 test/cctest/test-heap-profiler.cc CHECK_EQ(1, v8::HeapProfiler::GetSnapshotsCount()); v8 1213 test/cctest/test-heap-profiler.cc CHECK_EQ(s2, v8::HeapProfiler::FindSnapshot(uid2)); v8 1214 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* s3 = v8 1215 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("3")); v8 1217 test/cctest/test-heap-profiler.cc CHECK_EQ(2, v8::HeapProfiler::GetSnapshotsCount()); v8 1220 test/cctest/test-heap-profiler.cc CHECK_EQ(s3, v8::HeapProfiler::FindSnapshot(uid3)); v8 1221 test/cctest/test-heap-profiler.cc const_cast<v8::HeapSnapshot*>(s2)->Delete(); v8 1222 test/cctest/test-heap-profiler.cc CHECK_EQ(1, v8::HeapProfiler::GetSnapshotsCount()); v8 1223 test/cctest/test-heap-profiler.cc CHECK_EQ(NULL, v8::HeapProfiler::FindSnapshot(uid2)); v8 1224 test/cctest/test-heap-profiler.cc CHECK_EQ(s3, v8::HeapProfiler::FindSnapshot(uid3)); v8 1225 test/cctest/test-heap-profiler.cc const_cast<v8::HeapSnapshot*>(s3)->Delete(); v8 1226 test/cctest/test-heap-profiler.cc CHECK_EQ(0, v8::HeapProfiler::GetSnapshotsCount()); v8 1227 test/cctest/test-heap-profiler.cc CHECK_EQ(NULL, v8::HeapProfiler::FindSnapshot(uid3)); v8 1232 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1237 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 1238 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("document")); v8 1239 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 1248 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1253 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 1254 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("document")); v8 1255 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 1264 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1271 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 1272 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("document")); v8 1273 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 1282 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1287 test/cctest/test-heap-profiler.cc v8::Handle<v8::String> name(v8_str("leakz")); v8 1289 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(name); v8 1296 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1298 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 1299 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("iteration")); v8 1300 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 1314 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1318 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 1319 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("value")); v8 1320 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 1322 test/cctest/test-heap-profiler.cc v8::Local<v8::Object> js_global = v8 1323 test/cctest/test-heap-profiler.cc env->Global()->GetPrototype().As<v8::Object>(); v8 1325 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* obj = GetProperty( v8 1326 test/cctest/test-heap-profiler.cc global, v8::HeapGraphEdge::kProperty, "a"); v8 1328 test/cctest/test-heap-profiler.cc v8::Local<v8::Object> js_obj = js_global->Get(v8_str("a")).As<v8::Object>(); v8 1330 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* s_prop = v8 1331 test/cctest/test-heap-profiler.cc GetProperty(obj, v8::HeapGraphEdge::kProperty, "s_prop"); v8 1332 test/cctest/test-heap-profiler.cc v8::Local<v8::String> js_s_prop = v8 1333 test/cctest/test-heap-profiler.cc js_obj->Get(v8_str("s_prop")).As<v8::String>(); v8 1335 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* n_prop = v8 1336 test/cctest/test-heap-profiler.cc GetProperty(obj, v8::HeapGraphEdge::kProperty, "n_prop"); v8 1337 test/cctest/test-heap-profiler.cc v8::Local<v8::Number> js_n_prop = v8 1338 test/cctest/test-heap-profiler.cc js_obj->Get(v8_str("n_prop")).As<v8::Number>(); v8 1344 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1351 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 1352 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("snapshot")); v8 1353 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 1354 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* obj = GetProperty( v8 1355 test/cctest/test-heap-profiler.cc global, v8::HeapGraphEdge::kProperty, "a"); v8 1356 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* prop = GetProperty( v8 1357 test/cctest/test-heap-profiler.cc obj, v8::HeapGraphEdge::kProperty, "p"); v8 1361 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1379 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1396 test/cctest/test-heap-profiler.cc v8::Local<v8::Object> js_global = v8 1397 test/cctest/test-heap-profiler.cc env->Global()->GetPrototype().As<v8::Object>(); v8 1398 test/cctest/test-heap-profiler.cc v8::Local<v8::Object> obj1 = js_global->Get(v8_str("obj1")).As<v8::Object>(); v8 1399 test/cctest/test-heap-profiler.cc i::Handle<i::JSObject> js_obj1 = v8::Utils::OpenHandle(*obj1); v8 1402 test/cctest/test-heap-profiler.cc v8::Local<v8::Object> obj2 = js_global->Get(v8_str("obj2")).As<v8::Object>(); v8 1403 test/cctest/test-heap-profiler.cc i::Handle<i::JSObject> js_obj2 = v8::Utils::OpenHandle(*obj2); v8 1406 test/cctest/test-heap-profiler.cc v8::Local<v8::Object> obj3 = js_global->Get(v8_str("obj3")).As<v8::Object>(); v8 1407 test/cctest/test-heap-profiler.cc i::Handle<i::JSObject> js_obj3 = v8::Utils::OpenHandle(*obj3); v8 1410 test/cctest/test-heap-profiler.cc v8::Local<v8::Object> obj4 = js_global->Get(v8_str("obj4")).As<v8::Object>(); v8 1411 test/cctest/test-heap-profiler.cc i::Handle<i::JSObject> js_obj4 = v8::Utils::OpenHandle(*obj4); v8 1414 test/cctest/test-heap-profiler.cc v8::Local<v8::Object> obj5 = js_global->Get(v8_str("obj5")).As<v8::Object>(); v8 1415 test/cctest/test-heap-profiler.cc i::Handle<i::JSObject> js_obj5 = v8::Utils::OpenHandle(*obj5); v8 1418 test/cctest/test-heap-profiler.cc v8::Local<v8::Object> obj6 = js_global->Get(v8_str("obj6")).As<v8::Object>(); v8 1419 test/cctest/test-heap-profiler.cc i::Handle<i::JSObject> js_obj6 = v8::Utils::OpenHandle(*obj6); v8 1426 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1436 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 1437 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("fastCaseGetter")); v8 1439 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 1441 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* obj1 = v8 1442 test/cctest/test-heap-profiler.cc GetProperty(global, v8::HeapGraphEdge::kProperty, "obj1"); v8 1444 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* getterFunction = v8 1445 test/cctest/test-heap-profiler.cc GetProperty(obj1, v8::HeapGraphEdge::kProperty, "get-propWithGetter"); v8 1447 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* setterFunction = v8 1448 test/cctest/test-heap-profiler.cc GetProperty(obj1, v8::HeapGraphEdge::kProperty, "set-propWithSetter"); v8 1453 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1459 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 1460 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("HiddenPropertiesFastCase1")); v8 1461 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 1462 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* c = v8 1463 test/cctest/test-heap-profiler.cc GetProperty(global, v8::HeapGraphEdge::kProperty, "c"); v8 1465 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* hidden_props = v8 1466 test/cctest/test-heap-profiler.cc GetProperty(c, v8::HeapGraphEdge::kInternal, "hidden_properties"); v8 1469 test/cctest/test-heap-profiler.cc v8::Handle<v8::Value> cHandle = env->Global()->Get(v8::String::New("c")); v8 1473 test/cctest/test-heap-profiler.cc snapshot = v8::HeapProfiler::TakeSnapshot( v8 1476 test/cctest/test-heap-profiler.cc c = GetProperty(global, v8::HeapGraphEdge::kProperty, "c"); v8 1478 test/cctest/test-heap-profiler.cc hidden_props = GetProperty(c, v8::HeapGraphEdge::kInternal, v8 1485 test/cctest/test-heap-profiler.cc const v8::HeapGraphEdge* handle_edge = node->GetChild(i); v8 1486 test/cctest/test-heap-profiler.cc if (handle_edge->GetType() == v8::HeapGraphEdge::kWeak) return true; v8 1493 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 1494 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("weaks")); v8 1495 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* gc_roots = GetNode( v8 1496 test/cctest/test-heap-profiler.cc snapshot->GetRoot(), v8::HeapGraphNode::kObject, "(GC roots)"); v8 1498 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global_handles = GetNode( v8 1499 test/cctest/test-heap-profiler.cc gc_roots, v8::HeapGraphNode::kObject, "(Global handles)"); v8 1511 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1516 test/cctest/test-heap-profiler.cc v8::Persistent<v8::Object> handle = v8 1517 test/cctest/test-heap-profiler.cc v8::Persistent<v8::Object>::New(v8::Object::New()); v8 1525 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1528 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 1529 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("weaks")); v8 1530 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* gc_roots = GetNode( v8 1531 test/cctest/test-heap-profiler.cc snapshot->GetRoot(), v8::HeapGraphNode::kObject, "(GC roots)"); v8 1533 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global_handles = GetNode( v8 1534 test/cctest/test-heap-profiler.cc gc_roots, v8::HeapGraphNode::kObject, "(Global handles)"); v8 1536 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global_context = GetNode( v8 1537 test/cctest/test-heap-profiler.cc global_handles, v8::HeapGraphNode::kHidden, "system / GlobalContext"); v8 1544 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1549 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 1550 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("fun")); v8 1551 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 1553 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* fun = v8 1554 test/cctest/test-heap-profiler.cc GetProperty(global, v8::HeapGraphEdge::kProperty, "fun"); v8 1556 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* shared = v8 1557 test/cctest/test-heap-profiler.cc GetProperty(fun, v8::HeapGraphEdge::kInternal, "shared"); v8 1564 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1567 test/cctest/test-heap-profiler.cc v8::internal::Isolate::Current()->debug()->Load(); v8 1569 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 1570 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("snapshot")); v8 1571 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* root = snapshot->GetRoot(); v8 1574 test/cctest/test-heap-profiler.cc const v8::HeapGraphEdge* edge = root->GetChild(i); v8 1575 test/cctest/test-heap-profiler.cc if (edge->GetType() == v8::HeapGraphEdge::kShortcut) { v8 1577 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = edge->GetToNode(); v8 1578 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* foo = v8 1579 test/cctest/test-heap-profiler.cc GetProperty(global, v8::HeapGraphEdge::kProperty, "foo"); v8 1589 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1594 test/cctest/test-heap-profiler.cc int global_handle_count = v8::HeapProfiler::GetPersistentHandleCount(); v8 1597 test/cctest/test-heap-profiler.cc v8::Persistent<v8::String> p_AAA = v8 1598 test/cctest/test-heap-profiler.cc v8::Persistent<v8::String>::New(v8_str("AAA")); v8 1600 test/cctest/test-heap-profiler.cc v8::HeapProfiler::GetPersistentHandleCount()); v8 1601 test/cctest/test-heap-profiler.cc v8::Persistent<v8::String> p_BBB = v8 1602 test/cctest/test-heap-profiler.cc v8::Persistent<v8::String>::New(v8_str("BBB")); v8 1604 test/cctest/test-heap-profiler.cc v8::HeapProfiler::GetPersistentHandleCount()); v8 1605 test/cctest/test-heap-profiler.cc v8::Persistent<v8::String> p_CCC = v8 1606 test/cctest/test-heap-profiler.cc v8::Persistent<v8::String>::New(v8_str("CCC")); v8 1608 test/cctest/test-heap-profiler.cc v8::HeapProfiler::GetPersistentHandleCount()); v8 1613 test/cctest/test-heap-profiler.cc v8::HeapProfiler::GetPersistentHandleCount()); v8 1616 test/cctest/test-heap-profiler.cc v8::HeapProfiler::GetPersistentHandleCount()); v8 1618 test/cctest/test-heap-profiler.cc CHECK_EQ(global_handle_count, v8::HeapProfiler::GetPersistentHandleCount()); v8 1623 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1627 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 1628 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("snapshot")); v8 1629 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* gc_roots = GetNode( v8 1630 test/cctest/test-heap-profiler.cc snapshot->GetRoot(), v8::HeapGraphNode::kObject, "(GC roots)"); v8 1632 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* strong_roots = GetNode( v8 1633 test/cctest/test-heap-profiler.cc gc_roots, v8::HeapGraphNode::kObject, "(Strong roots)"); v8 1636 test/cctest/test-heap-profiler.cc const v8::HeapGraphEdge* edge = strong_roots->GetChild(i); v8 1637 test/cctest/test-heap-profiler.cc CHECK_EQ(v8::HeapGraphEdge::kInternal, edge->GetType()); v8 1638 test/cctest/test-heap-profiler.cc v8::String::AsciiValue name(edge->GetName()); v8 1645 test/cctest/test-heap-profiler.cc v8::HandleScope scope; v8 1648 test/cctest/test-heap-profiler.cc const v8::HeapSnapshot* snapshot = v8 1649 test/cctest/test-heap-profiler.cc v8::HeapProfiler::TakeSnapshot(v8_str("snapshot")); v8 1650 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global = GetGlobalObject(snapshot); v8 1651 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* global_object = v8 1652 test/cctest/test-heap-profiler.cc GetProperty(global, v8::HeapGraphEdge::kProperty, "global_object"); v8 1654 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* properties = v8 1655 test/cctest/test-heap-profiler.cc GetProperty(global_object, v8::HeapGraphEdge::kInternal, "properties"); v8 1657 test/cctest/test-heap-profiler.cc const v8::HeapGraphNode* elements = v8 1658 test/cctest/test-heap-profiler.cc GetProperty(global_object, v8::HeapGraphEdge::kInternal, "elements"); v8 13 test/cctest/test-heap.cc using namespace v8::internal; v8 15 test/cctest/test-heap.cc static v8::Persistent<v8::Context> env; v8 18 test/cctest/test-heap.cc if (env.IsEmpty()) env = v8::Context::New(); v8 19 test/cctest/test-heap.cc v8::HandleScope scope; v8 108 test/cctest/test-heap.cc v8::HandleScope sc; v8 199 test/cctest/test-heap.cc v8::HandleScope sc; v8 209 test/cctest/test-heap.cc v8::HandleScope inner_scope; v8 263 test/cctest/test-heap.cc v8::HandleScope scope; v8 286 test/cctest/test-heap.cc v8::HandleScope scope; v8 539 test/cctest/test-heap.cc v8::HandleScope sc; v8 562 test/cctest/test-heap.cc v8::HandleScope sc; v8 635 test/cctest/test-heap.cc v8::HandleScope sc; v8 659 test/cctest/test-heap.cc v8::HandleScope sc; v8 706 test/cctest/test-heap.cc v8::HandleScope sc; v8 757 test/cctest/test-heap.cc v8::HandleScope scope; v8 805 test/cctest/test-heap.cc v8::HandleScope scope; v8 844 test/cctest/test-heap.cc v8::HandleScope scope; v8 848 test/cctest/test-heap.cc v8::HandleScope nested; v8 869 test/cctest/test-heap.cc v8::HandleScope scope; v8 942 test/cctest/test-heap.cc v8::HandleScope scope; v8 952 test/cctest/test-heap.cc { v8::HandleScope scope; v8 1002 test/cctest/test-heap.cc Handle<Context> icontext = v8::Utils::OpenHandle(*context); v8 1013 test/cctest/test-heap.cc v8::V8::Initialize(); v8 1017 test/cctest/test-heap.cc v8::HandleScope scope; v8 1018 test/cctest/test-heap.cc v8::Persistent<v8::Context> ctx[kNumTestContexts]; v8 1024 test/cctest/test-heap.cc ctx[i] = v8::Context::New(); v8 1034 test/cctest/test-heap.cc v8::HandleScope scope; v8 1129 test/cctest/test-heap.cc Handle<Context> icontext = v8::Utils::OpenHandle(*context); v8 1143 test/cctest/test-heap.cc v8::V8::Initialize(); v8 1147 test/cctest/test-heap.cc v8::HandleScope scope; v8 1148 test/cctest/test-heap.cc v8::Persistent<v8::Context> ctx[kNumTestContexts]; v8 1155 test/cctest/test-heap.cc ctx[i] = v8::Context::New(); v8 1193 test/cctest/test-heap.cc v8::V8::Initialize(); v8 1269 test/cctest/test-heap.cc v8::HandleScope scope; v8 1338 test/cctest/test-heap.cc v8::HandleScope scope; v8 1366 test/cctest/test-heap.cc v8::HandleScope outer_scope; v8 1367 test/cctest/test-heap.cc v8::Persistent<v8::Context> ctx1 = v8::Context::New(); v8 1368 test/cctest/test-heap.cc v8::Persistent<v8::Context> ctx2 = v8::Context::New(); v8 1375 test/cctest/test-heap.cc v8::HandleScope inner_scope; v8 1377 test/cctest/test-heap.cc v8::Local<v8::Value> v = ctx1->Global()->Get(v8_str("v")); v8 1380 test/cctest/test-heap.cc v8::Local<v8::Value> res = CompileRun( v8 1386 test/cctest/test-heap.cc ctx2->Global()->Set(v8_str("o"), v8::Int32::New(0)); v8 1403 test/cctest/test-heap.cc v8::HandleScope outer_scope; v8 1404 test/cctest/test-heap.cc v8::Persistent<v8::Context> ctx1 = v8::Context::New(); v8 1405 test/cctest/test-heap.cc v8::Persistent<v8::Context> ctx2 = v8::Context::New(); v8 1412 test/cctest/test-heap.cc v8::HandleScope inner_scope; v8 1414 test/cctest/test-heap.cc v8::Local<v8::Value> v = ctx1->Global()->Get(v8_str("v")); v8 1417 test/cctest/test-heap.cc v8::Local<v8::Value> res = CompileRun( v8 1423 test/cctest/test-heap.cc ctx2->Global()->Set(v8_str("o"), v8::Int32::New(0)); v8 1438 test/cctest/test-heap.cc v8::HandleScope outer_scope; v8 1439 test/cctest/test-heap.cc v8::Persistent<v8::Context> ctx1 = v8::Context::New(); v8 1440 test/cctest/test-heap.cc v8::Persistent<v8::Context> ctx2 = v8::Context::New(); v8 1447 test/cctest/test-heap.cc v8::HandleScope inner_scope; v8 1449 test/cctest/test-heap.cc v8::Local<v8::Value> v = ctx1->Global()->Get(v8_str("v")); v8 1452 test/cctest/test-heap.cc v8::Local<v8::Value> res = CompileRun( v8 1458 test/cctest/test-heap.cc ctx2->Global()->Set(v8_str("o"), v8::Int32::New(0)); v8 1473 test/cctest/test-heap.cc v8::HandleScope outer_scope; v8 1474 test/cctest/test-heap.cc v8::Persistent<v8::Context> ctx1 = v8::Context::New(); v8 1475 test/cctest/test-heap.cc v8::Persistent<v8::Context> ctx2 = v8::Context::New(); v8 1482 test/cctest/test-heap.cc v8::HandleScope inner_scope; v8 1484 test/cctest/test-heap.cc v8::Local<v8::Value> v = ctx1->Global()->Get(v8_str("v")); v8 1487 test/cctest/test-heap.cc v8::Local<v8::Value> res = CompileRun( v8 1497 test/cctest/test-heap.cc ctx2->Global()->Set(v8_str("o"), v8::Int32::New(0)); v8 1517 test/cctest/test-heap.cc v8::HandleScope outer_scope; v8 1520 test/cctest/test-heap.cc v8::HandleScope scope; v8 1536 test/cctest/test-heap.cc v8::Utils::OpenHandle( v8 1537 test/cctest/test-heap.cc *v8::Handle<v8::Function>::Cast( v8 1538 test/cctest/test-heap.cc v8::Context::GetCurrent()->Global()->Get(v8_str("f")))); v8 1552 test/cctest/test-heap.cc v8::HandleScope scope; v8 1553 test/cctest/test-heap.cc v8::Handle<v8::Object> global = v8::Context::GetCurrent()->Global(); v8 1554 test/cctest/test-heap.cc v8::Handle<v8::Function> g = v8 1555 test/cctest/test-heap.cc v8::Handle<v8::Function>::Cast(global->Get(v8_str("g"))); v8 1566 test/cctest/test-heap.cc v8::HandleScope scope; v8 1579 test/cctest/test-heap.cc v8::Utils::OpenHandle( v8 1580 test/cctest/test-heap.cc *v8::Handle<v8::Object>::Cast( v8 1581 test/cctest/test-heap.cc v8::Context::GetCurrent()->Global()->Get(v8_str("base")))); v8 1628 test/cctest/test-heap.cc v8::HandleScope outer_scope; v8 1631 test/cctest/test-heap.cc v8::HandleScope scope; v8 1643 test/cctest/test-heap.cc v8::Utils::OpenHandle( v8 1644 test/cctest/test-heap.cc *v8::Handle<v8::Function>::Cast( v8 1645 test/cctest/test-heap.cc v8::Context::GetCurrent()->Global()->Get(v8_str("f")))); v8 1654 test/cctest/test-heap.cc v8::V8::ContextDisposedNotification(); v8 1655 test/cctest/test-heap.cc v8::V8::IdleNotification(kLongIdlePauseInMs); v8 1683 test/cctest/test-heap.cc v8::HandleScope outer_scope; v8 1686 test/cctest/test-heap.cc v8::HandleScope scope; v8 1698 test/cctest/test-heap.cc v8::Utils::OpenHandle( v8 1699 test/cctest/test-heap.cc *v8::Handle<v8::Function>::Cast( v8 1700 test/cctest/test-heap.cc v8::Context::GetCurrent()->Global()->Get(v8_str("f")))); v8 1708 test/cctest/test-heap.cc v8::V8::ContextDisposedNotification(); v8 1709 test/cctest/test-heap.cc v8::V8::IdleNotification(kLongIdlePauseInMs); v8 1722 test/cctest/test-heap.cc v8::HandleScope scope; v8 1726 test/cctest/test-heap.cc v8::Local<v8::Value> res = CompileRun( v8 1740 test/cctest/test-heap.cc v8::Utils::OpenHandle(*v8::Handle<v8::Object>::Cast(res)); v8 1757 test/cctest/test-heap.cc v8::HandleScope scope; v8 1767 test/cctest/test-heap.cc v8::Utils::OpenHandle( v8 1768 test/cctest/test-heap.cc *v8::Handle<v8::Object>::Cast( v8 1769 test/cctest/test-heap.cc v8::Context::GetCurrent()->Global()->Get(v8_str("root")))); v8 1800 test/cctest/test-heap.cc v8::HandleScope scope; v8 1835 test/cctest/test-heap.cc v8::Utils::OpenHandle( v8 1836 test/cctest/test-heap.cc *v8::Handle<v8::Object>::Cast( v8 1837 test/cctest/test-heap.cc v8::Context::GetCurrent()->Global()->Get(v8_str("root")))); v8 1850 test/cctest/test-heap.cc v8::HandleScope scope; v8 1888 test/cctest/test-heap.cc v8::Utils::OpenHandle( v8 1889 test/cctest/test-heap.cc *v8::Handle<v8::Object>::Cast( v8 1890 test/cctest/test-heap.cc v8::Context::GetCurrent()->Global()->Get(v8_str("root")))); v8 1905 test/cctest/test-heap.cc v8::HandleScope scope; v8 33 test/cctest/test-list.cc using namespace v8::internal; v8 38 test/cctest/test-liveedit.cc using namespace v8::internal; v8 162 test/cctest/test-liveedit.cc v8::internal::V8::Initialize(NULL); v8 13 test/cctest/test-lock.cc using namespace ::v8::internal; v8 59 test/cctest/test-lockers.cc class KangarooThread : public v8::internal::Thread { v8 69 test/cctest/test-lockers.cc v8::Locker locker(isolate_); v8 70 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate_); v8 71 test/cctest/test-lockers.cc CHECK_EQ(isolate_, v8::internal::Isolate::Current()); v8 72 test/cctest/test-lockers.cc v8::HandleScope scope; v8 73 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context_); v8 79 test/cctest/test-lockers.cc v8::Locker locker(isolate_); v8 80 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate_); v8 81 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context_); v8 82 test/cctest/test-lockers.cc v8::HandleScope scope; v8 91 test/cctest/test-lockers.cc v8::Isolate* isolate_; v8 92 test/cctest/test-lockers.cc Persistent<v8::Context> context_; v8 98 test/cctest/test-lockers.cc v8::Isolate* isolate = v8::Isolate::New(); v8 99 test/cctest/test-lockers.cc Persistent<v8::Context> context; v8 101 test/cctest/test-lockers.cc v8::Locker locker(isolate); v8 102 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate); v8 103 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 104 test/cctest/test-lockers.cc context = v8::Context::New(); v8 105 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context); v8 106 test/cctest/test-lockers.cc CHECK_EQ(isolate, v8::internal::Isolate::Current()); v8 181 test/cctest/test-lockers.cc v8::Locker locker(isolate_); v8 182 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate_); v8 183 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 185 test/cctest/test-lockers.cc CHECK_EQ(isolate_, v8::internal::Isolate::Current()); v8 189 test/cctest/test-lockers.cc v8::Isolate* isolate_; v8 213 test/cctest/test-lockers.cc v8::Isolate* isolate = v8::Isolate::New(); v8 228 test/cctest/test-lockers.cc v8::Isolate* isolate = v8::Isolate::New(); v8 230 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate); v8 231 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 232 test/cctest/test-lockers.cc v8::Handle<v8::Context> context = v8::Context::New(); v8 233 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context); v8 234 test/cctest/test-lockers.cc CHECK_EQ(isolate, v8::internal::Isolate::Current()); v8 263 test/cctest/test-lockers.cc v8::Locker lock(isolate_); v8 264 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate_); v8 265 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 268 test/cctest/test-lockers.cc v8::Locker another_lock(isolate_); v8 272 test/cctest/test-lockers.cc v8::Locker another_lock(isolate_); v8 277 test/cctest/test-lockers.cc v8::Isolate* isolate_; v8 287 test/cctest/test-lockers.cc v8::Isolate* isolate = v8::Isolate::New(); v8 305 test/cctest/test-lockers.cc v8::Locker lock(isolate1_); v8 306 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate1_); v8 307 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 316 test/cctest/test-lockers.cc v8::Isolate* isolate1_; v8 317 test/cctest/test-lockers.cc v8::Isolate* isolate2_; v8 327 test/cctest/test-lockers.cc v8::Isolate* isolate1 = v8::Isolate::New(); v8 328 test/cctest/test-lockers.cc v8::Isolate* isolate2 = v8::Isolate::New(); v8 349 test/cctest/test-lockers.cc v8::Locker lock(isolate_); v8 350 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate_); v8 352 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context_); v8 356 test/cctest/test-lockers.cc v8::Isolate* isolate_; v8 357 test/cctest/test-lockers.cc Persistent<v8::Context> context_; v8 368 test/cctest/test-lockers.cc v8::Locker lock(isolate_); v8 369 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate_); v8 370 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 371 test/cctest/test-lockers.cc v8::Handle<v8::Context> context = v8::Context::New(); v8 373 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context); v8 378 test/cctest/test-lockers.cc v8::Unlocker unlocker(isolate_); v8 385 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context); v8 391 test/cctest/test-lockers.cc v8::Isolate* isolate_; v8 402 test/cctest/test-lockers.cc v8::Isolate* isolate = v8::Isolate::New(); v8 418 test/cctest/test-lockers.cc v8::Locker lock(isolate_); v8 419 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate_); v8 420 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 421 test/cctest/test-lockers.cc v8::Handle<v8::Context> context = v8::Context::New(); v8 423 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context); v8 427 test/cctest/test-lockers.cc v8::Locker second_lock(isolate_); v8 430 test/cctest/test-lockers.cc v8::Unlocker unlocker(isolate_); v8 438 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context); v8 444 test/cctest/test-lockers.cc v8::Isolate* isolate_; v8 455 test/cctest/test-lockers.cc v8::Isolate* isolate = v8::Isolate::New(); v8 473 test/cctest/test-lockers.cc Persistent<v8::Context> context1; v8 474 test/cctest/test-lockers.cc Persistent<v8::Context> context2; v8 475 test/cctest/test-lockers.cc v8::Locker lock1(isolate1_); v8 476 test/cctest/test-lockers.cc CHECK(v8::Locker::IsLocked(isolate1_)); v8 477 test/cctest/test-lockers.cc CHECK(!v8::Locker::IsLocked(isolate2_)); v8 479 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate1_); v8 480 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 481 test/cctest/test-lockers.cc context1 = v8::Context::New(); v8 483 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context1); v8 487 test/cctest/test-lockers.cc v8::Locker lock2(isolate2_); v8 488 test/cctest/test-lockers.cc CHECK(v8::Locker::IsLocked(isolate1_)); v8 489 test/cctest/test-lockers.cc CHECK(v8::Locker::IsLocked(isolate2_)); v8 491 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate2_); v8 492 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 493 test/cctest/test-lockers.cc context2 = v8::Context::New(); v8 495 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context2); v8 500 test/cctest/test-lockers.cc v8::Unlocker unlock1(isolate1_); v8 501 test/cctest/test-lockers.cc CHECK(!v8::Locker::IsLocked(isolate1_)); v8 502 test/cctest/test-lockers.cc CHECK(v8::Locker::IsLocked(isolate2_)); v8 503 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate2_); v8 504 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 505 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context2); v8 514 test/cctest/test-lockers.cc v8::Isolate* isolate1_; v8 515 test/cctest/test-lockers.cc v8::Isolate* isolate2_; v8 520 test/cctest/test-lockers.cc v8::Isolate* isolate1 = v8::Isolate::New(); v8 521 test/cctest/test-lockers.cc v8::Isolate* isolate2 = v8::Isolate::New(); v8 538 test/cctest/test-lockers.cc v8::Locker lock1(isolate_); v8 539 test/cctest/test-lockers.cc CHECK(v8::Locker::IsLocked(isolate_)); v8 540 test/cctest/test-lockers.cc CHECK(!v8::Locker::IsLocked()); v8 542 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate_); v8 543 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 544 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context_); v8 548 test/cctest/test-lockers.cc v8::Unlocker unlock1(isolate_); v8 549 test/cctest/test-lockers.cc CHECK(!v8::Locker::IsLocked(isolate_)); v8 550 test/cctest/test-lockers.cc CHECK(!v8::Locker::IsLocked()); v8 552 test/cctest/test-lockers.cc v8::Locker lock2(isolate_); v8 553 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate_); v8 554 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 555 test/cctest/test-lockers.cc CHECK(v8::Locker::IsLocked(isolate_)); v8 556 test/cctest/test-lockers.cc CHECK(!v8::Locker::IsLocked()); v8 557 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context_); v8 564 test/cctest/test-lockers.cc v8::Isolate* isolate_; v8 565 test/cctest/test-lockers.cc v8::Persistent<v8::Context> context_; v8 575 test/cctest/test-lockers.cc v8::Isolate* isolate = v8::Isolate::New(); v8 576 test/cctest/test-lockers.cc Persistent<v8::Context> context; v8 578 test/cctest/test-lockers.cc v8::Locker locker_(isolate); v8 579 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate); v8 580 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 581 test/cctest/test-lockers.cc context = v8::Context::New(); v8 598 test/cctest/test-lockers.cc v8::Locker lock1; v8 600 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 601 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context_); v8 605 test/cctest/test-lockers.cc v8::Unlocker unlock1; v8 607 test/cctest/test-lockers.cc v8::Locker lock2; v8 608 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 609 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context_); v8 616 test/cctest/test-lockers.cc v8::Persistent<v8::Context> context_; v8 626 test/cctest/test-lockers.cc Persistent<v8::Context> context; v8 628 test/cctest/test-lockers.cc v8::Locker locker_; v8 629 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 630 test/cctest/test-lockers.cc context = v8::Context::New(); v8 642 test/cctest/test-lockers.cc v8::Isolate* isolate = v8::Isolate::New(); v8 644 test/cctest/test-lockers.cc v8::Locker lock(isolate); v8 645 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate); v8 646 test/cctest/test-lockers.cc v8::HandleScope handle_scope; v8 647 test/cctest/test-lockers.cc v8::Persistent<Context> context = v8::Context::New(); v8 648 test/cctest/test-lockers.cc v8::Context::Scope context_scope(context); v8 649 test/cctest/test-lockers.cc v8::Handle<String> source = v8::String::New("1+1"); v8 650 test/cctest/test-lockers.cc v8::Handle<Script> script = v8::Script::Compile(source); v8 651 test/cctest/test-lockers.cc v8::Handle<Value> result = script->Run(); v8 652 test/cctest/test-lockers.cc v8::String::AsciiValue ascii(result); v8 674 test/cctest/test-lockers.cc v8::Isolate* isolate = v8::Isolate::New(); v8 676 test/cctest/test-lockers.cc v8::Isolate::Scope isolate_scope(isolate); v8 678 test/cctest/test-lockers.cc v8::ExtensionConfiguration extensions(count_, extension_names_); v8 679 test/cctest/test-lockers.cc v8::Persistent<v8::Context> context = v8::Context::New(&extensions); v8 698 test/cctest/test-lockers.cc v8::RegisterExtension(new v8::Extension("test0", v8 700 test/cctest/test-lockers.cc v8::RegisterExtension(new v8::Extension("test1", v8 702 test/cctest/test-lockers.cc v8::RegisterExtension(new v8::Extension("test2", v8 704 test/cctest/test-lockers.cc v8::RegisterExtension(new v8::Extension("test3", v8 706 test/cctest/test-lockers.cc v8::RegisterExtension(new v8::Extension("test4", v8 708 test/cctest/test-lockers.cc v8::RegisterExtension(new v8::Extension("test5", v8 710 test/cctest/test-lockers.cc v8::RegisterExtension(new v8::Extension("test6", v8 712 test/cctest/test-lockers.cc v8::RegisterExtension(new v8::Extension("test7", v8 58 test/cctest/test-log-stack-tracer.cc static v8::Persistent<v8::Context> env; v8 83 test/cctest/test-log-stack-tracer.cc v8::internal::Address saved_c_frame_fp = v8 94 test/cctest/test-log-stack-tracer.cc class TraceExtension : public v8::Extension { v8 97 test/cctest/test-log-stack-tracer.cc virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction( v8 99 test/cctest/test-log-stack-tracer.cc static v8::Handle<v8::Value> Trace(const v8::Arguments& args); v8 100 test/cctest/test-log-stack-tracer.cc static v8::Handle<v8::Value> JSTrace(const v8::Arguments& args); v8 101 test/cctest/test-log-stack-tracer.cc static v8::Handle<v8::Value> JSEntrySP(const v8::Arguments& args); v8 102 test/cctest/test-log-stack-tracer.cc static v8::Handle<v8::Value> JSEntrySPLevel2(const v8::Arguments& args); v8 115 test/cctest/test-log-stack-tracer.cc v8::Handle<v8::FunctionTemplate> TraceExtension::GetNativeFunction( v8 118 test/cctest/test-log-stack-tracer.cc return v8::FunctionTemplate::New(TraceExtension::Trace); v8 120 test/cctest/test-log-stack-tracer.cc return v8::FunctionTemplate::New(TraceExtension::JSTrace); v8 122 test/cctest/test-log-stack-tracer.cc return v8::FunctionTemplate::New(TraceExtension::JSEntrySP); v8 124 test/cctest/test-log-stack-tracer.cc return v8::FunctionTemplate::New(TraceExtension::JSEntrySPLevel2); v8 127 test/cctest/test-log-stack-tracer.cc return v8::Handle<v8::FunctionTemplate>(); v8 149 test/cctest/test-log-stack-tracer.cc v8::Handle<v8::Value> TraceExtension::Trace(const v8::Arguments& args) { v8 151 test/cctest/test-log-stack-tracer.cc return v8::Undefined(); v8 155 test/cctest/test-log-stack-tracer.cc v8::Handle<v8::Value> TraceExtension::JSTrace(const v8::Arguments& args) { v8 157 test/cctest/test-log-stack-tracer.cc return v8::Undefined(); v8 167 test/cctest/test-log-stack-tracer.cc v8::Handle<v8::Value> TraceExtension::JSEntrySP(const v8::Arguments& args) { v8 169 test/cctest/test-log-stack-tracer.cc return v8::Undefined(); v8 173 test/cctest/test-log-stack-tracer.cc v8::Handle<v8::Value> TraceExtension::JSEntrySPLevel2( v8 175 test/cctest/test-log-stack-tracer.cc v8::HandleScope scope; v8 180 test/cctest/test-log-stack-tracer.cc return v8::Undefined(); v8 185 test/cctest/test-log-stack-tracer.cc v8::DeclareExtension kTraceExtensionDeclaration(&kTraceExtension); v8 190 test/cctest/test-log-stack-tracer.cc v8::HandleScope scope; v8 192 test/cctest/test-log-stack-tracer.cc v8::ExtensionConfiguration config(1, extensions); v8 193 test/cctest/test-log-stack-tracer.cc env = v8::Context::New(&config); v8 195 test/cctest/test-log-stack-tracer.cc v8::HandleScope scope; v8 206 test/cctest/test-log-stack-tracer.cc v8::Local<v8::Value> func = env->Global()->Get(v8_str(func_name)); v8 208 test/cctest/test-log-stack-tracer.cc JSFunction* js_func = JSFunction::cast(*v8::Utils::OpenHandle(*func)); v8 216 test/cctest/test-log-stack-tracer.cc static v8::Handle<Value> construct_call(const v8::Arguments& args) { v8 243 test/cctest/test-log-stack-tracer.cc Local<v8::FunctionTemplate> constructor_template = v8 244 test/cctest/test-log-stack-tracer.cc v8::FunctionTemplate::New(construct_call); v8 285 test/cctest/test-log-stack-tracer.cc v8::HandleScope scope; v8 330 test/cctest/test-log-stack-tracer.cc v8::HandleScope scope; v8 404 test/cctest/test-log-stack-tracer.cc v8::HandleScope scope; v8 54 test/cctest/test-log.cc v8::Handle<v8::Context>& env() { return env_; } v8 80 test/cctest/test-log.cc v8::HandleScope scope_; v8 81 test/cctest/test-log.cc v8::Handle<v8::Context> env_; v8 107 test/cctest/test-log.cc v8::V8::ResumeProfiler(); v8 113 test/cctest/test-log.cc v8::V8::PauseProfiler(); v8 118 test/cctest/test-log.cc v8::V8::ResumeProfiler(); v8 124 test/cctest/test-log.cc v8::V8::PauseProfiler(); v8 167 test/cctest/test-log.cc class LoopingThread : public v8::internal::Thread { v8 194 test/cctest/test-log.cc v8_thread_id_ = v8::V8::GetCurrentThreadId(); v8 200 test/cctest/test-log.cc v8::internal::Semaphore* semaphore_; v8 212 test/cctest/test-log.cc v8::Locker locker; v8 217 test/cctest/test-log.cc v8::HandleScope scope; v8 218 test/cctest/test-log.cc v8::Persistent<v8::Context> context = v8::Context::New(); v8 221 test/cctest/test-log.cc v8::Context::Scope context_scope(context); v8 238 test/cctest/test-log.cc v8::Locker locker; v8 239 test/cctest/test-log.cc v8::Unlocker unlocker; v8 253 test/cctest/test-log.cc class TestSampler : public v8::internal::Sampler { v8 276 test/cctest/test-log.cc v8::internal::Semaphore* semaphore_; v8 286 test/cctest/test-log.cc v8::Locker locker; v8 287 test/cctest/test-log.cc sampler = new TestSampler(v8::internal::Isolate::Current()); v8 292 test/cctest/test-log.cc LoopingJsThread jsThread(v8::internal::Isolate::Current()); v8 294 test/cctest/test-log.cc LoopingNonJsThread nonJsThread(v8::internal::Isolate::Current()); v8 326 test/cctest/test-log.cc class SimpleExternalString : public v8::String::ExternalStringResource { v8 343 test/cctest/test-log.cc v8::HandleScope scope; v8 344 test/cctest/test-log.cc v8::Handle<v8::Context> env = v8::Context::New(); v8 348 test/cctest/test-log.cc v8::Local<v8::String> source = v8::String::NewExternal(&source_ext_str); v8 350 test/cctest/test-log.cc v8::Handle<v8::String> origin = v8::String::New("issue-23768-test"); v8 351 test/cctest/test-log.cc v8::Handle<v8::Script> evil_script = v8::Script::Compile(source, origin); v8 355 test/cctest/test-log.cc i::ExternalTwoByteString::cast(*v8::Utils::OpenHandle(*source))); v8 365 test/cctest/test-log.cc static v8::Handle<v8::Value> ObjMethod1(const v8::Arguments& args) { v8 366 test/cctest/test-log.cc return v8::Handle<v8::Value>(); v8 372 test/cctest/test-log.cc v8::Persistent<v8::FunctionTemplate> obj = v8 373 test/cctest/test-log.cc v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New()); v8 375 test/cctest/test-log.cc v8::Handle<v8::ObjectTemplate> proto = obj->PrototypeTemplate(); v8 376 test/cctest/test-log.cc v8::Local<v8::Signature> signature = v8::Signature::New(obj); v8 378 test/cctest/test-log.cc v8::FunctionTemplate::New(ObjMethod1, v8 379 test/cctest/test-log.cc v8::Handle<v8::Value>(), v8 381 test/cctest/test-log.cc static_cast<v8::PropertyAttribute>(v8::DontDelete)); v8 404 test/cctest/test-log.cc static v8::Handle<v8::Value> Prop1Getter(v8::Local<v8::String> property, v8 406 test/cctest/test-log.cc return v8::Handle<v8::Value>(); v8 414 test/cctest/test-log.cc static v8::Handle<v8::Value> Prop2Getter(v8::Local<v8::String> property, v8 416 test/cctest/test-log.cc return v8::Handle<v8::Value>(); v8 422 test/cctest/test-log.cc v8::Persistent<v8::FunctionTemplate> obj = v8 423 test/cctest/test-log.cc v8::Persistent<v8::FunctionTemplate>::New(v8::FunctionTemplate::New()); v8 425 test/cctest/test-log.cc v8::Handle<v8::ObjectTemplate> inst = obj->InstanceTemplate(); v8 496 test/cctest/test-log.cc v8::V8::PauseProfiler(); v8 508 test/cctest/test-log.cc v8::Handle<v8::String> log_str = v8::String::New(log.start(), log.length()); v8 512 test/cctest/test-log.cc v8::Handle<v8::String> source_str = v8::String::New( v8 514 test/cctest/test-log.cc v8::TryCatch try_catch; v8 515 test/cctest/test-log.cc v8::Handle<v8::Script> script = v8::Script::Compile(source_str, v8_str("")); v8 517 test/cctest/test-log.cc v8::String::Utf8Value exception(try_catch.Exception()); v8 521 test/cctest/test-log.cc v8::Handle<v8::Value> result = script->Run(); v8 523 test/cctest/test-log.cc v8::String::Utf8Value exception(try_catch.Exception()); v8 529 test/cctest/test-log.cc v8::Local<v8::String> s = result->ToString(); v8 98 test/cctest/test-macro-assembler-x64.cc __ push(v8::internal::kSmiConstantRegister); v8 99 test/cctest/test-macro-assembler-x64.cc __ push(v8::internal::kRootRegister); v8 108 test/cctest/test-macro-assembler-x64.cc __ cmpq(rdx, v8::internal::kSmiConstantRegister); v8 111 test/cctest/test-macro-assembler-x64.cc __ pop(v8::internal::kRootRegister); v8 112 test/cctest/test-macro-assembler-x64.cc __ pop(v8::internal::kSmiConstantRegister); v8 153 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 242 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 295 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 425 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 471 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 720 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 811 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 1002 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 1095 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 1202 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 1314 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 1412 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 1483 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 1564 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 1647 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 1732 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 1801 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 1899 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 2007 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 2078 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 2144 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 2186 test/cctest/test-macro-assembler-x64.cc v8::internal::V8::Initialize(NULL); v8 44 test/cctest/test-mark-compact.cc using namespace v8::internal; v8 46 test/cctest/test-mark-compact.cc static v8::Persistent<v8::Context> env; v8 49 test/cctest/test-mark-compact.cc if (env.IsEmpty()) env = v8::Context::New(); v8 50 test/cctest/test-mark-compact.cc v8::HandleScope scope; v8 93 test/cctest/test-mark-compact.cc v8::HandleScope sc; v8 121 test/cctest/test-mark-compact.cc v8::HandleScope sc; v8 159 test/cctest/test-mark-compact.cc v8::HandleScope sc; v8 251 test/cctest/test-mark-compact.cc v8::HandleScope sc; v8 316 test/cctest/test-mark-compact.cc v8::HandleScope handle_scope; v8 415 test/cctest/test-mark-compact.cc class TestRetainedObjectInfo : public v8::RetainedObjectInfo { v8 443 test/cctest/test-mark-compact.cc v8::HandleScope handle_scope; v8 536 test/cctest/test-mark-compact.cc if (v8::internal::Snapshot::IsEnabled()) { v8 542 test/cctest/test-mark-compact.cc if (v8::internal::Snapshot::IsEnabled()) { v8 109 test/cctest/test-parsing.cc v8::V8::Initialize(); v8 146 test/cctest/test-parsing.cc v8::ScriptData* data = v8 147 test/cctest/test-parsing.cc v8::ScriptData::PreCompile(tests[i], i::StrLength(tests[i])); v8 153 test/cctest/test-parsing.cc v8::ScriptData* data = v8 154 test/cctest/test-parsing.cc v8::ScriptData::PreCompile(fail_tests[i], i::StrLength(fail_tests[i])); v8 161 test/cctest/test-parsing.cc class ScriptResource : public v8::String::ExternalAsciiStringResource { v8 176 test/cctest/test-parsing.cc v8::HandleScope handles; v8 177 test/cctest/test-parsing.cc v8::Persistent<v8::Context> context = v8::Context::New(); v8 178 test/cctest/test-parsing.cc v8::Context::Scope context_scope(context); v8 200 test/cctest/test-parsing.cc v8::ScriptData* preparse = v8 201 test/cctest/test-parsing.cc v8::ScriptData::PreCompile(source, source_length); v8 207 test/cctest/test-parsing.cc v8::Local<v8::String> script_source = v8::String::NewExternal(resource); v8 208 test/cctest/test-parsing.cc v8::Script::Compile(script_source, NULL, preparse); v8 215 test/cctest/test-parsing.cc v8::Local<v8::String> script_source = v8::String::NewExternal(resource); v8 216 test/cctest/test-parsing.cc v8::Script::New(script_source, NULL, preparse, v8::Local<v8::String>()); v8 222 test/cctest/test-parsing.cc v8::ScriptData* error_preparse = v8 223 test/cctest/test-parsing.cc v8::ScriptData::PreCompile(error_source, error_source_length); v8 240 test/cctest/test-parsing.cc v8::V8::Initialize(); v8 266 test/cctest/test-parsing.cc v8::preparser::PreParser::PreParseResult result = v8 267 test/cctest/test-parsing.cc v8::preparser::PreParser::PreParseProgram(&scanner, v8 271 test/cctest/test-parsing.cc CHECK_EQ(v8::preparser::PreParser::kPreParseSuccess, result); v8 279 test/cctest/test-parsing.cc v8::V8::Initialize(); v8 302 test/cctest/test-parsing.cc v8::preparser::PreParser::PreParseResult result = v8 303 test/cctest/test-parsing.cc v8::preparser::PreParser::PreParseProgram(&scanner, v8 307 test/cctest/test-parsing.cc CHECK_EQ(v8::preparser::PreParser::kPreParseSuccess, result); v8 316 test/cctest/test-parsing.cc v8::V8::Initialize(); v8 340 test/cctest/test-parsing.cc v8::V8::Initialize(); v8 354 test/cctest/test-parsing.cc v8::HandleScope handles; v8 383 test/cctest/test-parsing.cc v8::V8::Initialize(); v8 405 test/cctest/test-parsing.cc v8::preparser::PreParser::PreParseResult result = v8 406 test/cctest/test-parsing.cc v8::preparser::PreParser::PreParseProgram(&scanner, v8 410 test/cctest/test-parsing.cc CHECK_EQ(v8::preparser::PreParser::kPreParseStackOverflow, result); v8 414 test/cctest/test-parsing.cc class TestExternalResource: public v8::String::ExternalStringResource { v8 547 test/cctest/test-parsing.cc v8::HandleScope handles; v8 548 test/cctest/test-parsing.cc v8::Persistent<v8::Context> context = v8::Context::New(); v8 549 test/cctest/test-parsing.cc v8::Context::Scope context_scope(context); v8 637 test/cctest/test-parsing.cc v8::V8::Initialize(); v8 719 test/cctest/test-parsing.cc v8::V8::Initialize(); v8 991 test/cctest/test-parsing.cc v8::HandleScope handles; v8 992 test/cctest/test-parsing.cc v8::Persistent<v8::Context> context = v8::Context::New(); v8 993 test/cctest/test-parsing.cc v8::Context::Scope context_scope(context); v8 1054 test/cctest/test-parsing.cc v8::preparser::PreParser::PreParseResult result = v8 1055 test/cctest/test-parsing.cc v8::preparser::PreParser::PreParseProgram( v8 1057 test/cctest/test-parsing.cc CHECK_EQ(v8::preparser::PreParser::kPreParseSuccess, result); v8 1207 test/cctest/test-parsing.cc v8::HandleScope handles; v8 1208 test/cctest/test-parsing.cc v8::Persistent<v8::Context> context = v8::Context::New(); v8 1209 test/cctest/test-parsing.cc v8::Context::Scope context_scope(context); v8 1246 test/cctest/test-parsing.cc v8::internal::FLAG_min_preparse_length = 1; // Force preparsing. v8 1247 test/cctest/test-parsing.cc v8::V8::Initialize(); v8 1248 test/cctest/test-parsing.cc v8::HandleScope scope; v8 1249 test/cctest/test-parsing.cc v8::Context::Scope context_scope(v8::Context::New()); v8 1250 test/cctest/test-parsing.cc v8::TryCatch try_catch; v8 1258 test/cctest/test-parsing.cc v8::Script::Compile(v8::String::New(script)); v8 1260 test/cctest/test-parsing.cc v8::String::Utf8Value exception(try_catch.Exception()); v8 14 test/cctest/test-platform-linux.cc using namespace ::v8::internal; v8 10 test/cctest/test-platform-macos.cc using namespace ::v8::internal; v8 14 test/cctest/test-platform-nullos.cc using namespace ::v8::internal; v8 12 test/cctest/test-platform-win32.cc using namespace ::v8::internal; v8 39 test/cctest/test-profile-generator.cc v8::HandleScope hs; v8 40 test/cctest/test-profile-generator.cc v8::Local<v8::String> token1(v8::String::New("1x")); v8 41 test/cctest/test-profile-generator.cc CHECK_EQ(0, te.GetTokenId(*v8::Utils::OpenHandle(*token1))); v8 42 test/cctest/test-profile-generator.cc CHECK_EQ(0, te.GetTokenId(*v8::Utils::OpenHandle(*token1))); v8 43 test/cctest/test-profile-generator.cc v8::Local<v8::String> token2(v8::String::New("2x")); v8 44 test/cctest/test-profile-generator.cc CHECK_EQ(1, te.GetTokenId(*v8::Utils::OpenHandle(*token2))); v8 45 test/cctest/test-profile-generator.cc CHECK_EQ(1, te.GetTokenId(*v8::Utils::OpenHandle(*token2))); v8 46 test/cctest/test-profile-generator.cc CHECK_EQ(0, te.GetTokenId(*v8::Utils::OpenHandle(*token1))); v8 48 test/cctest/test-profile-generator.cc v8::HandleScope hs; v8 49 test/cctest/test-profile-generator.cc v8::Local<v8::String> token3(v8::String::New("3x")); v8 50 test/cctest/test-profile-generator.cc CHECK_EQ(2, te.GetTokenId(*v8::Utils::OpenHandle(*token3))); v8 51 test/cctest/test-profile-generator.cc CHECK_EQ(1, te.GetTokenId(*v8::Utils::OpenHandle(*token2))); v8 52 test/cctest/test-profile-generator.cc CHECK_EQ(0, te.GetTokenId(*v8::Utils::OpenHandle(*token1))); v8 57 test/cctest/test-profile-generator.cc CHECK_EQ(1, te.GetTokenId(*v8::Utils::OpenHandle(*token2))); v8 58 test/cctest/test-profile-generator.cc CHECK_EQ(0, te.GetTokenId(*v8::Utils::OpenHandle(*token1))); v8 693 test/cctest/test-profile-generator.cc class ProfilerExtension : public v8::Extension { v8 696 test/cctest/test-profile-generator.cc virtual v8::Handle<v8::FunctionTemplate> GetNativeFunction( v8 698 test/cctest/test-profile-generator.cc static v8::Handle<v8::Value> StartProfiling(const v8::Arguments& args); v8 699 test/cctest/test-profile-generator.cc static v8::Handle<v8::Value> StopProfiling(const v8::Arguments& args); v8 709 test/cctest/test-profile-generator.cc v8::Handle<v8::FunctionTemplate> ProfilerExtension::GetNativeFunction( v8 711 test/cctest/test-profile-generator.cc if (name->Equals(v8::String::New("startProfiling"))) { v8 712 test/cctest/test-profile-generator.cc return v8::FunctionTemplate::New(ProfilerExtension::StartProfiling); v8 713 test/cctest/test-profile-generator.cc } else if (name->Equals(v8::String::New("stopProfiling"))) { v8 714 test/cctest/test-profile-generator.cc return v8::FunctionTemplate::New(ProfilerExtension::StopProfiling); v8 717 test/cctest/test-profile-generator.cc return v8::Handle<v8::FunctionTemplate>(); v8 722 test/cctest/test-profile-generator.cc v8::Handle<v8::Value> ProfilerExtension::StartProfiling( v8 725 test/cctest/test-profile-generator.cc v8::CpuProfiler::StartProfiling(args[0].As<v8::String>()); v8 727 test/cctest/test-profile-generator.cc v8::CpuProfiler::StartProfiling(v8::String::New("")); v8 728 test/cctest/test-profile-generator.cc return v8::Undefined(); v8 732 test/cctest/test-profile-generator.cc v8::Handle<v8::Value> ProfilerExtension::StopProfiling( v8 735 test/cctest/test-profile-generator.cc v8::CpuProfiler::StopProfiling(args[0].As<v8::String>()); v8 737 test/cctest/test-profile-generator.cc v8::CpuProfiler::StopProfiling(v8::String::New("")); v8 738 test/cctest/test-profile-generator.cc return v8::Undefined(); v8 743 test/cctest/test-profile-generator.cc v8::DeclareExtension kProfilerExtensionDeclaration(&kProfilerExtension); v8 744 test/cctest/test-profile-generator.cc static v8::Persistent<v8::Context> env; v8 762 test/cctest/test-profile-generator.cc v8::HandleScope scope; v8 764 test/cctest/test-profile-generator.cc v8::ExtensionConfiguration config(1, extensions); v8 765 test/cctest/test-profile-generator.cc env = v8::Context::New(&config); v8 767 test/cctest/test-profile-generator.cc v8::HandleScope scope; v8 37 test/cctest/test-random.cc using namespace v8::internal; v8 39 test/cctest/test-random.cc static v8::Persistent<v8::Context> env; v8 73 test/cctest/test-random.cc if (env.IsEmpty()) env = v8::Context::New(); v8 76 test/cctest/test-random.cc v8::HandleScope scope; v8 69 test/cctest/test-regexp.cc using namespace v8::internal; v8 74 test/cctest/test-regexp.cc v8::HandleScope scope; v8 78 test/cctest/test-regexp.cc return v8::internal::RegExpParser::ParseRegExp( v8 85 test/cctest/test-regexp.cc v8::HandleScope scope; v8 89 test/cctest/test-regexp.cc CHECK(v8::internal::RegExpParser::ParseRegExp( v8 100 test/cctest/test-regexp.cc v8::HandleScope scope; v8 105 test/cctest/test-regexp.cc CHECK(v8::internal::RegExpParser::ParseRegExp( v8 119 test/cctest/test-regexp.cc v8::HandleScope scope; v8 124 test/cctest/test-regexp.cc CHECK(v8::internal::RegExpParser::ParseRegExp( v8 392 test/cctest/test-regexp.cc v8::HandleScope scope; v8 396 test/cctest/test-regexp.cc CHECK(!v8::internal::RegExpParser::ParseRegExp( v8 494 test/cctest/test-regexp.cc v8::internal::V8::Initialize(NULL); v8 510 test/cctest/test-regexp.cc if (!v8::internal::RegExpParser::ParseRegExp(&reader, multiline, v8 534 test/cctest/test-regexp.cc v8::HandleScope scope; v8 573 test/cctest/test-regexp.cc v8::internal::V8::Initialize(NULL); v8 626 test/cctest/test-regexp.cc v8::internal::V8::Initialize(NULL); v8 713 test/cctest/test-regexp.cc env_ = v8::Context::New(); v8 721 test/cctest/test-regexp.cc v8::Persistent<v8::Context> env_; v8 722 test/cctest/test-regexp.cc v8::HandleScope scope_; v8 723 test/cctest/test-regexp.cc v8::internal::ZoneScope zone_; v8 746 test/cctest/test-regexp.cc v8::V8::Initialize(); v8 782 test/cctest/test-regexp.cc v8::V8::Initialize(); v8 840 test/cctest/test-regexp.cc v8::V8::Initialize(); v8 903 test/cctest/test-regexp.cc v8::V8::Initialize(); v8 942 test/cctest/test-regexp.cc v8::V8::Initialize(); v8 990 test/cctest/test-regexp.cc v8::V8::Initialize(); v8 1041 test/cctest/test-regexp.cc v8::V8::Initialize(); v8 1099 test/cctest/test-regexp.cc v8::V8::Initialize(); v8 1157 test/cctest/test-regexp.cc v8::V8::Initialize(); v8 1259 test/cctest/test-regexp.cc v8::V8::Initialize(); v8 1298 test/cctest/test-regexp.cc v8::V8::Initialize(); v8 1418 test/cctest/test-regexp.cc v8::internal::V8::Initialize(NULL); v8 1584 test/cctest/test-regexp.cc v8::internal::V8::Initialize(NULL); v8 1626 test/cctest/test-regexp.cc v8::internal::V8::Initialize(NULL); v8 1656 test/cctest/test-regexp.cc v8::internal::V8::Initialize(NULL); v8 1719 test/cctest/test-regexp.cc v8::internal::V8::Initialize(NULL); v8 45 test/cctest/test-serialize.cc using namespace v8::internal; v8 104 test/cctest/test-serialize.cc v8::V8::Initialize(); v8 109 test/cctest/test-serialize.cc CHECK_EQ(make_code(v8::internal::RUNTIME_FUNCTION, Runtime::kAbort), v8 141 test/cctest/test-serialize.cc v8::V8::Initialize(); v8 147 test/cctest/test-serialize.cc decoder.Decode(make_code(v8::internal::RUNTIME_FUNCTION, v8 245 test/cctest/test-serialize.cc v8::Persistent<v8::Context> env = v8::Context::New(); v8 255 test/cctest/test-serialize.cc v8::V8::Initialize(); v8 265 test/cctest/test-serialize.cc v8::V8::Initialize(); v8 281 test/cctest/test-serialize.cc v8::HandleScope scope; v8 297 test/cctest/test-serialize.cc v8::HandleScope scope; v8 300 test/cctest/test-serialize.cc v8::Persistent<v8::Context> env = v8::Context::New(); v8 310 test/cctest/test-serialize.cc v8::HandleScope scope; v8 313 test/cctest/test-serialize.cc v8::Persistent<v8::Context> env = v8::Context::New(); v8 323 test/cctest/test-serialize.cc v8::HandleScope scope; v8 326 test/cctest/test-serialize.cc v8::Persistent<v8::Context> env = v8::Context::New(); v8 330 test/cctest/test-serialize.cc v8::Local<v8::String> source = v8::String::New(c_source); v8 331 test/cctest/test-serialize.cc v8::Local<v8::Script> script = v8::Script::Compile(source); v8 340 test/cctest/test-serialize.cc v8::HandleScope scope; v8 343 test/cctest/test-serialize.cc v8::Persistent<v8::Context> env = v8::Context::New(); v8 347 test/cctest/test-serialize.cc v8::Local<v8::String> source = v8::String::New(c_source); v8 348 test/cctest/test-serialize.cc v8::Local<v8::Script> script = v8::Script::Compile(source); v8 357 test/cctest/test-serialize.cc v8::V8::Initialize(); v8 359 test/cctest/test-serialize.cc v8::Persistent<v8::Context> env = v8::Context::New(); v8 373 test/cctest/test-serialize.cc v8::HandleScope handle_scope; v8 374 test/cctest/test-serialize.cc v8::Local<v8::String> foo = v8::String::New("foo"); v8 376 test/cctest/test-serialize.cc raw_foo = *(v8::Utils::OpenHandle(*foo)); v8 463 test/cctest/test-serialize.cc v8::HandleScope handle_scope; v8 483 test/cctest/test-serialize.cc v8::V8::Initialize(); v8 485 test/cctest/test-serialize.cc v8::Persistent<v8::Context> env = v8::Context::New(); v8 504 test/cctest/test-serialize.cc Object* raw_context = *(v8::Utils::OpenHandle(*env)); v8 551 test/cctest/test-serialize.cc v8::HandleScope handle_scope; v8 569 test/cctest/test-serialize.cc v8::V8::Initialize(); v8 8 test/cctest/test-sockets.cc using namespace ::v8::internal; v8 33 test/cctest/test-spaces.cc using namespace v8::internal; v8 238 test/cctest/test-spaces.cc v8::V8::Initialize(); v8 29 test/cctest/test-strings.cc using namespace v8::internal; v8 31 test/cctest/test-strings.cc static v8::Persistent<v8::Context> env; v8 36 test/cctest/test-strings.cc v8::HandleScope scope; v8 38 test/cctest/test-strings.cc v8::ExtensionConfiguration config(1, extensions); v8 39 test/cctest/test-strings.cc env = v8::Context::New(&config); v8 41 test/cctest/test-strings.cc v8::HandleScope scope; v8 51 test/cctest/test-strings.cc class Resource: public v8::String::ExternalStringResource, v8 66 test/cctest/test-strings.cc class AsciiResource: public v8::String::ExternalAsciiStringResource, v8 235 test/cctest/test-strings.cc v8::HandleScope scope; v8 283 test/cctest/test-strings.cc v8::HandleScope scope; v8 308 test/cctest/test-strings.cc v8::HandleScope handle_scope; v8 312 test/cctest/test-strings.cc v8::String::New(ascii_string, v8 328 test/cctest/test-strings.cc v8::Handle<v8::String> mixed = v8::String::New(mixed_string, 5); v8 355 test/cctest/test-strings.cc v8::HandleScope handle_scope; v8 363 test/cctest/test-strings.cc v8::Handle<v8::Array> ascii_external_strings = v8 364 test/cctest/test-strings.cc v8::Array::New(kMaxLength + 1); v8 365 test/cctest/test-strings.cc v8::Handle<v8::Array> non_ascii_external_strings = v8 366 test/cctest/test-strings.cc v8::Array::New(kMaxLength + 1); v8 378 test/cctest/test-strings.cc v8::Local<v8::String> ascii_external_string = v8 379 test/cctest/test-strings.cc v8::String::NewExternal(ascii_resource); v8 381 test/cctest/test-strings.cc ascii_external_strings->Set(v8::Integer::New(i), ascii_external_string); v8 389 test/cctest/test-strings.cc v8::Local<v8::String> non_ascii_external_string = v8 390 test/cctest/test-strings.cc v8::String::NewExternal(resource); v8 391 test/cctest/test-strings.cc non_ascii_external_strings->Set(v8::Integer::New(i), v8 396 test/cctest/test-strings.cc v8::Handle<v8::Object> global = env->Global(); v8 399 test/cctest/test-strings.cc global->Set(v8_str("max_length"), v8::Integer::New(kMaxLength)); v8 446 test/cctest/test-strings.cc v8::HandleScope handle_scope; v8 475 test/cctest/test-strings.cc v8::Local<v8::Value> result = v8 476 test/cctest/test-strings.cc v8::Script::Compile(v8::String::New(line))->Run(); v8 490 test/cctest/test-strings.cc v8::HandleScope scope; v8 507 test/cctest/test-strings.cc class AsciiVectorResource : public v8::String::ExternalAsciiStringResource { v8 522 test/cctest/test-strings.cc v8::HandleScope scope; v8 542 test/cctest/test-strings.cc v8::Local<v8::Value> result; v8 552 test/cctest/test-strings.cc string = v8::Utils::OpenHandle(v8::String::Cast(*result)); v8 559 test/cctest/test-strings.cc string = v8::Utils::OpenHandle(v8::String::Cast(*result)); v8 571 test/cctest/test-strings.cc v8::Local<v8::Value> result; v8 580 test/cctest/test-strings.cc string = v8::Utils::OpenHandle(v8::String::Cast(*result)); v8 587 test/cctest/test-strings.cc string = v8::Utils::OpenHandle(v8::String::Cast(*result)); v8 597 test/cctest/test-strings.cc v8::ResourceConstraints constraints; v8 600 test/cctest/test-strings.cc v8::SetResourceConstraints(&constraints); v8 614 test/cctest/test-strings.cc v8::HandleScope scope; v8 616 test/cctest/test-strings.cc v8::V8::IgnoreOutOfMemoryException(); v8 617 test/cctest/test-strings.cc v8::Local<v8::Script> script = v8 618 test/cctest/test-strings.cc v8::Script::Compile(v8::String::New(join_causing_out_of_memory)); v8 619 test/cctest/test-strings.cc v8::Local<v8::Value> result = script->Run(); v8 639 test/cctest/test-strings.cc v8::Local<v8::Value> result; v8 654 test/cctest/test-strings.cc string = v8::Utils::OpenHandle(v8::String::Cast(*result)); v8 669 test/cctest/test-strings.cc string = v8::Utils::OpenHandle(v8::String::Cast(*result)); v8 684 test/cctest/test-strings.cc v8::V8::IgnoreOutOfMemoryException(); v8 685 test/cctest/test-strings.cc v8::Local<v8::Value> result = CompileRun( v8 13 test/cctest/test-strtod.cc using namespace v8::internal; v8 33 test/cctest/test-thread-termination.cc v8::internal::Semaphore* semaphore = NULL; v8 36 test/cctest/test-thread-termination.cc v8::Handle<v8::Value> Signal(const v8::Arguments& args) { v8 38 test/cctest/test-thread-termination.cc return v8::Undefined(); v8 42 test/cctest/test-thread-termination.cc v8::Handle<v8::Value> TerminateCurrentThread(const v8::Arguments& args) { v8 43 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 44 test/cctest/test-thread-termination.cc v8::V8::TerminateExecution(); v8 45 test/cctest/test-thread-termination.cc return v8::Undefined(); v8 49 test/cctest/test-thread-termination.cc v8::Handle<v8::Value> Fail(const v8::Arguments& args) { v8 51 test/cctest/test-thread-termination.cc return v8::Undefined(); v8 55 test/cctest/test-thread-termination.cc v8::Handle<v8::Value> Loop(const v8::Arguments& args) { v8 56 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 57 test/cctest/test-thread-termination.cc v8::Handle<v8::String> source = v8 58 test/cctest/test-thread-termination.cc v8::String::New("try { doloop(); fail(); } catch(e) { fail(); }"); v8 59 test/cctest/test-thread-termination.cc v8::Handle<v8::Value> result = v8::Script::Compile(source)->Run(); v8 61 test/cctest/test-thread-termination.cc CHECK(v8::V8::IsExecutionTerminating()); v8 62 test/cctest/test-thread-termination.cc return v8::Undefined(); v8 66 test/cctest/test-thread-termination.cc v8::Handle<v8::Value> DoLoop(const v8::Arguments& args) { v8 67 test/cctest/test-thread-termination.cc v8::TryCatch try_catch; v8 68 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 69 test/cctest/test-thread-termination.cc v8::Script::Compile(v8::String::New("function f() {" v8 86 test/cctest/test-thread-termination.cc CHECK(v8::V8::IsExecutionTerminating()); v8 87 test/cctest/test-thread-termination.cc return v8::Undefined(); v8 91 test/cctest/test-thread-termination.cc v8::Handle<v8::Value> DoLoopNoCall(const v8::Arguments& args) { v8 92 test/cctest/test-thread-termination.cc v8::TryCatch try_catch; v8 93 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 94 test/cctest/test-thread-termination.cc v8::Script::Compile(v8::String::New("var term = true;" v8 103 test/cctest/test-thread-termination.cc CHECK(v8::V8::IsExecutionTerminating()); v8 104 test/cctest/test-thread-termination.cc return v8::Undefined(); v8 108 test/cctest/test-thread-termination.cc v8::Handle<v8::ObjectTemplate> CreateGlobalTemplate( v8 111 test/cctest/test-thread-termination.cc v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New(); v8 112 test/cctest/test-thread-termination.cc global->Set(v8::String::New("terminate"), v8 113 test/cctest/test-thread-termination.cc v8::FunctionTemplate::New(terminate)); v8 114 test/cctest/test-thread-termination.cc global->Set(v8::String::New("fail"), v8::FunctionTemplate::New(Fail)); v8 115 test/cctest/test-thread-termination.cc global->Set(v8::String::New("loop"), v8::FunctionTemplate::New(Loop)); v8 116 test/cctest/test-thread-termination.cc global->Set(v8::String::New("doloop"), v8::FunctionTemplate::New(doloop)); v8 124 test/cctest/test-thread-termination.cc v8::HandleScope scope; v8 125 test/cctest/test-thread-termination.cc v8::Handle<v8::ObjectTemplate> global = v8 127 test/cctest/test-thread-termination.cc v8::Persistent<v8::Context> context = v8::Context::New(NULL, global); v8 128 test/cctest/test-thread-termination.cc v8::Context::Scope context_scope(context); v8 129 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 131 test/cctest/test-thread-termination.cc v8::Handle<v8::String> source = v8 132 test/cctest/test-thread-termination.cc v8::String::New("try { loop(); fail(); } catch(e) { fail(); }"); v8 133 test/cctest/test-thread-termination.cc v8::Script::Compile(source)->Run(); v8 135 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 136 test/cctest/test-thread-termination.cc v8::Script::Compile(source)->Run(); v8 144 test/cctest/test-thread-termination.cc v8::HandleScope scope; v8 145 test/cctest/test-thread-termination.cc v8::Handle<v8::ObjectTemplate> global = v8 147 test/cctest/test-thread-termination.cc v8::Persistent<v8::Context> context = v8::Context::New(NULL, global); v8 148 test/cctest/test-thread-termination.cc v8::Context::Scope context_scope(context); v8 149 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 151 test/cctest/test-thread-termination.cc v8::Handle<v8::String> source = v8 152 test/cctest/test-thread-termination.cc v8::String::New("try { loop(); fail(); } catch(e) { fail(); }"); v8 153 test/cctest/test-thread-termination.cc v8::Script::Compile(source)->Run(); v8 154 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 156 test/cctest/test-thread-termination.cc v8::Script::Compile(source)->Run(); v8 161 test/cctest/test-thread-termination.cc class TerminatorThread : public v8::internal::Thread { v8 168 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating(isolate_)); v8 169 test/cctest/test-thread-termination.cc v8::V8::TerminateExecution(isolate_); v8 173 test/cctest/test-thread-termination.cc v8::Isolate* isolate_; v8 180 test/cctest/test-thread-termination.cc semaphore = v8::internal::OS::CreateSemaphore(0); v8 184 test/cctest/test-thread-termination.cc v8::HandleScope scope; v8 185 test/cctest/test-thread-termination.cc v8::Handle<v8::ObjectTemplate> global = CreateGlobalTemplate(Signal, DoLoop); v8 186 test/cctest/test-thread-termination.cc v8::Persistent<v8::Context> context = v8::Context::New(NULL, global); v8 187 test/cctest/test-thread-termination.cc v8::Context::Scope context_scope(context); v8 188 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 190 test/cctest/test-thread-termination.cc v8::Handle<v8::String> source = v8 191 test/cctest/test-thread-termination.cc v8::String::New("try { loop(); fail(); } catch(e) { fail(); }"); v8 192 test/cctest/test-thread-termination.cc v8::Script::Compile(source)->Run(); v8 201 test/cctest/test-thread-termination.cc class LoopingThread : public v8::internal::Thread { v8 205 test/cctest/test-thread-termination.cc v8::Locker locker; v8 206 test/cctest/test-thread-termination.cc v8::HandleScope scope; v8 207 test/cctest/test-thread-termination.cc v8_thread_id_ = v8::V8::GetCurrentThreadId(); v8 208 test/cctest/test-thread-termination.cc v8::Handle<v8::ObjectTemplate> global = v8 210 test/cctest/test-thread-termination.cc v8::Persistent<v8::Context> context = v8::Context::New(NULL, global); v8 211 test/cctest/test-thread-termination.cc v8::Context::Scope context_scope(context); v8 212 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 214 test/cctest/test-thread-termination.cc v8::Handle<v8::String> source = v8 215 test/cctest/test-thread-termination.cc v8::String::New("try { loop(); fail(); } catch(e) { fail(); }"); v8 216 test/cctest/test-thread-termination.cc v8::Script::Compile(source)->Run(); v8 231 test/cctest/test-thread-termination.cc v8::Locker locker; v8 232 test/cctest/test-thread-termination.cc v8::V8::Initialize(); v8 233 test/cctest/test-thread-termination.cc v8::Locker::StartPreemption(1); v8 234 test/cctest/test-thread-termination.cc semaphore = v8::internal::OS::CreateSemaphore(0); v8 249 test/cctest/test-thread-termination.cc v8::Locker locker; v8 251 test/cctest/test-thread-termination.cc v8::V8::TerminateExecution(threads[i]->GetV8ThreadId()); v8 259 test/cctest/test-thread-termination.cc v8::Locker locker; v8 260 test/cctest/test-thread-termination.cc v8::Locker::StopPreemption(); v8 271 test/cctest/test-thread-termination.cc v8::Handle<v8::Value> TerminateOrReturnObject(const v8::Arguments& args) { v8 273 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 274 test/cctest/test-thread-termination.cc v8::V8::TerminateExecution(); v8 275 test/cctest/test-thread-termination.cc return v8::Undefined(); v8 277 test/cctest/test-thread-termination.cc v8::Local<v8::Object> result = v8::Object::New(); v8 278 test/cctest/test-thread-termination.cc result->Set(v8::String::New("x"), v8::Integer::New(42)); v8 283 test/cctest/test-thread-termination.cc v8::Handle<v8::Value> LoopGetProperty(const v8::Arguments& args) { v8 284 test/cctest/test-thread-termination.cc v8::TryCatch try_catch; v8 285 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 286 test/cctest/test-thread-termination.cc v8::Script::Compile(v8::String::New("function f() {" v8 301 test/cctest/test-thread-termination.cc CHECK(v8::V8::IsExecutionTerminating()); v8 302 test/cctest/test-thread-termination.cc return v8::Undefined(); v8 309 test/cctest/test-thread-termination.cc v8::HandleScope scope; v8 310 test/cctest/test-thread-termination.cc v8::Handle<v8::ObjectTemplate> global = v8::ObjectTemplate::New(); v8 311 test/cctest/test-thread-termination.cc global->Set(v8::String::New("terminate_or_return_object"), v8 312 test/cctest/test-thread-termination.cc v8::FunctionTemplate::New(TerminateOrReturnObject)); v8 313 test/cctest/test-thread-termination.cc global->Set(v8::String::New("fail"), v8::FunctionTemplate::New(Fail)); v8 314 test/cctest/test-thread-termination.cc global->Set(v8::String::New("loop"), v8 315 test/cctest/test-thread-termination.cc v8::FunctionTemplate::New(LoopGetProperty)); v8 317 test/cctest/test-thread-termination.cc v8::Persistent<v8::Context> context = v8::Context::New(NULL, global); v8 318 test/cctest/test-thread-termination.cc v8::Context::Scope context_scope(context); v8 319 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 321 test/cctest/test-thread-termination.cc v8::Handle<v8::String> source = v8 322 test/cctest/test-thread-termination.cc v8::String::New("try { loop(); fail(); } catch(e) { fail(); }"); v8 324 test/cctest/test-thread-termination.cc v8::Script::Compile(source)->Run(); v8 326 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 328 test/cctest/test-thread-termination.cc v8::Script::Compile(source)->Run(); v8 332 test/cctest/test-thread-termination.cc v8::Handle<v8::Value> ReenterAfterTermination(const v8::Arguments& args) { v8 333 test/cctest/test-thread-termination.cc v8::TryCatch try_catch; v8 334 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 335 test/cctest/test-thread-termination.cc v8::Script::Compile(v8::String::New("function f() {" v8 352 test/cctest/test-thread-termination.cc CHECK(v8::V8::IsExecutionTerminating()); v8 353 test/cctest/test-thread-termination.cc v8::Script::Compile(v8::String::New("function f() { fail(); } f()"))->Run(); v8 354 test/cctest/test-thread-termination.cc return v8::Undefined(); v8 360 test/cctest/test-thread-termination.cc v8::HandleScope scope; v8 361 test/cctest/test-thread-termination.cc v8::Handle<v8::ObjectTemplate> global = v8 363 test/cctest/test-thread-termination.cc v8::Persistent<v8::Context> context = v8::Context::New(NULL, global); v8 364 test/cctest/test-thread-termination.cc v8::Context::Scope context_scope(context); v8 365 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 366 test/cctest/test-thread-termination.cc v8::Handle<v8::String> source = v8 367 test/cctest/test-thread-termination.cc v8::String::New("try { loop(); fail(); } catch(e) { fail(); }"); v8 368 test/cctest/test-thread-termination.cc v8::Script::Compile(source)->Run(); v8 369 test/cctest/test-thread-termination.cc CHECK(!v8::V8::IsExecutionTerminating()); v8 371 test/cctest/test-thread-termination.cc CHECK(v8::Script::Compile(v8::String::New("function f() { return true; }" v8 37 test/cctest/test-threads.cc v8::Locker locker; v8 38 test/cctest/test-threads.cc v8::V8::Initialize(); v8 39 test/cctest/test-threads.cc v8::HandleScope scope; v8 40 test/cctest/test-threads.cc v8::Context::Scope context_scope(v8::Context::New()); v8 42 test/cctest/test-threads.cc v8::Locker::StartPreemption(100); v8 44 test/cctest/test-threads.cc v8::Handle<v8::Script> script = v8::Script::Compile( v8 45 test/cctest/test-threads.cc v8::String::New("var count = 0; var obj = new Object(); count++;\n")); v8 49 test/cctest/test-threads.cc v8::Locker::StopPreemption(); v8 50 test/cctest/test-threads.cc v8::internal::OS::Sleep(500); // Make sure the timer fires. v8 66 test/cctest/test-threads.cc class ThreadA : public v8::internal::Thread { v8 70 test/cctest/test-threads.cc v8::Locker locker; v8 71 test/cctest/test-threads.cc v8::HandleScope scope; v8 72 test/cctest/test-threads.cc v8::Context::Scope context_scope(v8::Context::New()); v8 77 test/cctest/test-threads.cc v8::Handle<v8::Script> script = v8::Script::Compile( v8 78 test/cctest/test-threads.cc v8::String::New( v8 89 test/cctest/test-threads.cc v8::Unlocker unlocker; v8 102 test/cctest/test-threads.cc class ThreadB : public v8::internal::Thread { v8 108 test/cctest/test-threads.cc v8::Locker locker; v8 110 test/cctest/test-threads.cc v8::HandleScope scope; v8 111 test/cctest/test-threads.cc v8::Context::Scope context_scope(v8::Context::New()); v8 114 test/cctest/test-threads.cc HEAP->CollectAllGarbage(v8::internal::Heap::kNoGCFlags); v8 127 test/cctest/test-threads.cc v8::V8::Initialize(); v8 141 test/cctest/test-threads.cc class ThreadIdValidationThread : public v8::internal::Thread { v8 195 test/cctest/test-threads.cc class ThreadC : public v8::internal::Thread { v8 36 test/cctest/test-utils.cc using namespace v8::internal; v8 107 test/cctest/test-utils.cc v8::V8::Initialize(); v8 33 test/cctest/test-version.cc using namespace v8::internal; v8 56 test/cctest/test-version.cc static v8::internal::EmbeddedVector<char, 128> version_str; v8 57 test/cctest/test-version.cc static v8::internal::EmbeddedVector<char, 128> soname_str; v8 34 test/cctest/test-weakmaps.cc using namespace v8::internal; v8 70 test/cctest/test-weakmaps.cc v8::HandleScope scope; v8 77 test/cctest/test-weakmaps.cc v8::HandleScope scope; v8 86 test/cctest/test-weakmaps.cc v8::HandleScope scope; v8 102 test/cctest/test-weakmaps.cc v8::HandleScope scope; v8 127 test/cctest/test-weakmaps.cc v8::HandleScope scope; v8 135 test/cctest/test-weakmaps.cc v8::HandleScope scope; v8 165 test/cctest/test-weakmaps.cc v8::HandleScope scope; v8 177 test/cctest/test-weakmaps.cc v8::HandleScope scope; v8 200 test/cctest/test-weakmaps.cc v8::HandleScope scope; v8 49 tools/oom_dump/oom_dump.cc static char const* names[v8::internal::LAST_TYPE] = {0}; v8 50 tools/oom_dump/oom_dump.cc if (names[v8::internal::STRING_TYPE] == NULL) { v8 51 tools/oom_dump/oom_dump.cc using namespace v8::internal; v8 151 tools/oom_dump/oom_dump.cc if (value2 == v8::internal::HeapStats::kStartMarker) { v8 164 tools/oom_dump/oom_dump.cc CHECK(READ_FIELD(0) == v8::internal::HeapStats::kStartMarker); v8 165 tools/oom_dump/oom_dump.cc CHECK(READ_FIELD(24) == v8::internal::HeapStats::kEndMarker); v8 190 tools/oom_dump/oom_dump.cc int objects_per_type[v8::internal::LAST_TYPE + 1] = {0}; v8 192 tools/oom_dump/oom_dump.cc v8::internal::LAST_TYPE + 1, objects_per_type); v8 194 tools/oom_dump/oom_dump.cc int size_per_type[v8::internal::LAST_TYPE + 1] = {0}; v8 195 tools/oom_dump/oom_dump.cc ReadArrayFrom(memory_region, heap_stats_addr, 22, v8::internal::LAST_TYPE + 1, v8 199 tools/oom_dump/oom_dump.cc objects_per_type[v8::internal::JS_GLOBAL_OBJECT_TYPE]; v8 201 tools/oom_dump/oom_dump.cc objects_per_type[v8::internal::JS_BUILTINS_OBJECT_TYPE]; v8 203 tools/oom_dump/oom_dump.cc objects_per_type[v8::internal::JS_GLOBAL_PROXY_TYPE]; v8 205 tools/oom_dump/oom_dump.cc int indices[v8::internal::LAST_TYPE + 1]; v8 206 tools/oom_dump/oom_dump.cc for (int i = 0; i <= v8::internal::LAST_TYPE; i++) { v8 214 tools/oom_dump/oom_dump.cc for (int i = 0; i <= v8::internal::LAST_TYPE; i++) { v8 258 tools/oom_dump/oom_dump.cc for (int i = 0; i <= v8::internal::LAST_TYPE; i++) {