Lines Matching full:value
72 #define EXCEPTION_BAILOUT_CHECK(value) \
82 return value; \
314 v8::Handle<Value> ThrowException(v8::Handle<v8::Value> value) {
315 if (IsDeadCheck("v8::ThrowException()")) return v8::Handle<Value>();
319 if (value.IsEmpty()) {
322 i::Top::ScheduleThrow(*Utils::OpenHandle(*value));
467 i::Object** v8::HandleScope::CreateHandle(i::Object* value) {
468 return i::HandleScope::CreateHandle(value);
512 v8::Local<v8::Value> Context::GetData() {
513 if (IsDeadCheck("v8::Context::GetData()")) return v8::Local<Value>();
523 return Local<Value>();
531 i::Object** v8::HandleScope::RawClose(i::Object** value) {
540 i::Object* result = *value;
553 // A constructor cannot easily return an error value, therefore it is necessary
578 return i::Smi::cast(obj_.get(0))->value();
589 // This method cannot easily return an error value, therefore it is necessary
594 void NeanderArray::add(i::Handle<i::Object> value) {
601 obj_.value()->set_elements(*new_elms);
603 obj_.set(length + 1, *value);
608 void NeanderArray::set(int index, i::Object* value) {
610 obj_.set(index + 1, value);
622 void Template::Set(v8::Handle<String> name, v8::Handle<Data> value,
629 list = NeanderArray().value();
634 array.add(Utils::OpenHandle(*value));
661 void FunctionTemplate::Inherit(v8::Handle<FunctionTemplate> value) {
664 Utils::OpenHandle(this)->set_parent_template(*Utils::OpenHandle(*value));
674 v8::Handle<Value> data, v8::Handle<Signature> signature) {
741 int TypeSwitch::match(v8::Handle<Value> value) {
743 i::Handle<i::Object> obj = Utils::OpenHandle(*value);
755 v8::Handle<Value> data) {
774 v8::Handle<Value> data,
796 list = NeanderArray().value();
827 void FunctionTemplate::SetHiddenPrototype(bool value) {
830 Utils::OpenHandle(this)->set_hidden_prototype(value);
840 Handle<Value> data) {
867 Handle<Value> data) {
891 Handle<Value> data) {
949 v8::Handle<Value> data,
973 Handle<Value> data) {
1005 Handle<Value> data,
1035 Handle<Value> data) {
1053 Handle<Value> data) {
1069 return i::Smi::cast(Utils::OpenHandle(this)->internal_field_count())->value();
1073 void ObjectTemplate::SetInternalFieldCount(int value) {
1075 if (!ApiCheck(i::Smi::IsValid(value),
1081 if (value > 0) {
1087 Utils::OpenHandle(this)->set_internal_field_count(i::Smi::FromInt(value));
1124 line_offset = static_cast<int>(origin->ResourceLineOffset()->Value());
1127 column_offset = static_cast<int>(origin->ResourceColumnOffset()->Value());
1155 v8::Handle<Value> file_name) {
1180 v8::Handle<Value> file_name,
1187 Local<Value> Script::Run() {
1188 ON_BAILOUT("v8::Script::Run()", return Local<Value>());
1203 EXCEPTION_BAILOUT_CHECK(Local<Value>());
1211 Local<Value> Script::Id() {
1212 ON_BAILOUT("v8::Script::Id()", return Local<Value>());
1258 v8::Local<v8::Value> exc = v8::Local<v8::Value>::New(Exception());
1277 v8::Handle<v8::Value> v8::TryCatch::ReThrow() {
1278 if (!HasCaught()) return v8::Local<v8::Value>();
1284 v8::Local<Value> v8::TryCatch::Exception() const {
1290 return v8::Local<Value>();
1295 v8::Local<Value> v8::TryCatch::StackTrace() const {
1298 if (!raw_obj->IsJSObject()) return v8::Local<Value>();
1303 return v8::Local<Value>();
1306 return v8::Local<Value>();
1327 void v8::TryCatch::SetVerbose(bool value) {
1328 is_verbose_ = value;
1332 void v8::TryCatch::SetCaptureMessage(bool value) {
1333 capture_message_ = value;
1351 v8::Handle<Value> Message::GetScriptResourceName() const {
1362 i::Handle<i::Object> resource_name(i::Script::cast(script->value())->name());
1367 v8::Handle<Value> Message::GetScriptData() const {
1369 return Local<Value>();
1378 i::Handle<i::Object> data(i::Script::cast(script->value())->data());
1392 i::Handle<i::Object> value =
1394 return value;
1500 bool Value::IsUndefined() const {
1501 if (IsDeadCheck("v8::Value::IsUndefined()")) return false;
1506 bool Value::IsNull() const {
1507 if (IsDeadCheck("v8::Value::IsNull()")) return false;
1512 bool Value
1513 if (IsDeadCheck("v8::Value::IsTrue()")) return false;
1518 bool Value::IsFalse() const {
1519 if (IsDeadCheck("v8::Value::IsFalse()")) return false;
1524 bool Value::IsFunction() const {
1525 if (IsDeadCheck("v8::Value::IsFunction()")) return false;
1530 bool Value::FullIsString() const {
1531 if (IsDeadCheck("v8::Value::IsString()")) return false;
1538 bool Value::IsArray() const {
1539 if (IsDeadCheck("v8::Value::IsArray()")) return false;
1544 bool Value::IsObject() const {
1545 if (IsDeadCheck("v8::Value::IsObject()")) return false;
1550 bool Value::IsNumber() const {
1551 if (IsDeadCheck("v8::Value::IsNumber()")) return false;
1556 bool Value::IsBoolean() const {
1557 if (IsDeadCheck("v8::Value::IsBoolean()")) return false;
1562 bool Value::IsExternal() const {
1563 if (IsDeadCheck("v8::Value::IsExternal()")) return false;
1568 bool Value::IsInt32() const {
1569 if (IsDeadCheck("v8::Value::IsInt32()")) return false;
1573 double value = obj->Number();
1574 return i::FastI2D(i::FastD2I(value)) == value;
1580 bool Value::IsDate() const {
1581 if (IsDeadCheck("v8::Value::IsDate()")) return false;
1587 Local<String> Value::ToString() const {
1588 if (IsDeadCheck("v8::Value::ToString()")) return Local<String>();
1604 Local<String> Value::ToDetailString() const {
1605 if (IsDeadCheck("v8::Value::ToDetailString()")) return Local<String>();
1621 Local<v8::Object> Value::ToObject() const {
1622 if (IsDeadCheck("v8::Value::ToObject()")) return Local<v8::Object>();
1638 Local<Boolean> Value::ToBoolean() const {
1639 if (IsDeadCheck("v8::Value::ToBoolean()")) return Local<Boolean>();
1652 Local<Number> Value::ToNumber() const {
1653 if (IsDeadCheck("v8::Value::ToNumber()")) return Local<Number>();
1669 Local<Integer> Value::ToInteger() const {
1670 if (IsDeadCheck("v8::Value::ToInteger()")) return Local<Integer>();
1686 void External::CheckCast(v8::Value* that) {
1695 void v8::Object::CheckCast(Value* that) {
1704 void v8::Function::CheckCast(Value* that) {
1713 void v8::String::CheckCast(v8::Value* that) {
1722 void v8::Number::CheckCast(v8::Value* that) {
1731 void v8::Integer::CheckCast(v8::Value* that) {
1740 void v8::Array::CheckCast(Value* that) {
1749 void v8::Date::CheckCast(v8::Value* that) {
1758 bool Value::BooleanValue() const {
1759 if (IsDeadCheck("v8::Value::BooleanValue()")) return false;
1766 i::Handle<i::Object> value = i::Execution::ToBoolean(obj);
1767 return value->IsTrue();
1772 double Value::NumberValue() const {
1773 if (IsDeadCheck("v8::Value::NumberValue()")) return i::OS::nan_value();
1789 int64_t Value::IntegerValue() const {
1790 if (IsDeadCheck("v8::Value::IntegerValue()")) return 0;
1803 return i::Smi::cast(*num)->value();
1810 Local<Int32> Value::ToInt32() const {
1811 if (IsDeadCheck("v8::Value::ToInt32()")) return Local<Int32>();
1827 Local<Uint32> Value::ToUint32() const {
1828 if (IsDeadCheck("v8::Value::ToUint32()")) return Local<Uint32>();
1844 Local<Uint32> Value::ToArrayIndex() const {
1845 if (IsDeadCheck("v8::Value::ToArrayIndex()")) return Local<Uint32>();
1849 if (i::Smi::cast(*obj)->value() >= 0) return Utils::Uint32ToLocal(obj);
1860 i::Handle<i::Object> value;
1862 value = i::Handle<i::Object>(i::Smi::FromInt(index));
1864 value = i::Factory::NewNumber(index);
1866 return Utils::Uint32ToLocal(value);
1872 int32_t Value::Int32Value() const {
1873 if (IsDeadCheck("v8::Value::Int32Value()")) return 0;
1877 return i::Smi::cast(*obj)->value();
1886 return i::Smi::cast(*num)->value();
1894 bool Value::Equals(Handle<Value> that) const {
1895 if (IsDeadCheck("v8::Value::Equals()")
1896 || EmptyCheck("v8::Value::Equals()", this)
1897 || EmptyCheck("v8::Value::Equals()", that)) {
1913 bool Value::StrictEquals(Handle<Value> that) const {
1914 if (IsDeadCheck("v8::Value::StrictEquals()")
1915 || EmptyCheck("v8::Value::StrictEquals()", this)
1916 || EmptyCheck("v8::Value::StrictEquals()", that)) {
1944 uint32_t Value::Uint32Value() const {
1945 if (IsDeadCheck("v8::Value::Uint32Value()")) return 0;
1949 return i::Smi::cast(*obj)->value();
1957 return i::Smi::cast(*num)->value();
1965 bool v8::Object::Set(v8::Handle<Value> key, v8::Handle<Value> value,
1972 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
1985 bool v8::Object::ForceSet(v8::Handle<Value> key,
1986 v8::Handle<Value> value,
1993 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
2006 bool v8::Object::ForceDelete(v8::Handle<Value> key) {
2020 Local<Value> v8::Object::Get(v8::Handle<Value> key) {
2021 ON_BAILOUT("v8::Object::Get()", return Local<v8::Value>());
2028 EXCEPTION_BAILOUT_CHECK(Local<Value>());
2033 Local<Value> v8::Object::GetPrototype() {
2034 ON_BAILOUT("v8::Object::GetPrototype()", return Local<v8::Value>());
2042 bool v8::Object::SetPrototype(Handle<Value> value) {
2046 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
2076 i::Handle<i::FixedArray> value =
2081 i::Handle<i::FixedArray> elms = i::Factory::CopyFixedArray(value);
2208 Local<Value> v8::Object::GetRealNamedPropertyInPrototypeChain(
2211 return Local<Value>());
2225 return Local<Value>(); // No real property was found in prototype chain.
2229 Local<Value> v8::Object::GetRealNamedProperty(Handle<String> key) {
2230 ON_BAILOUT("v8::Object::GetRealNamedProperty()", return Local<Value>());
2244 return Local<Value>(); // No real property was found in prototype chain.
2291 hash_value = i::Smi::cast(*hash)->value();
2295 // Generate a random 32-bit hash value but limit range to fit
2311 v8::Handle<v8::Value> value) {
2318 i::Handle<i::Object> value_obj = Utils::OpenHandle(*value);
2331 v8::Local<v8::Value> v8::Object::GetHiddenValue(v8::Handle<v8::String> key) {
2332 ON_BAILOUT("v8::Object::GetHiddenValue()", return Local<v8::Value>());
2337 return v8::Local<v8::Value>();
2343 EXCEPTION_BAILOUT_CHECK(v8::Local<v8::Value>());
2345 return v8::Local<v8::Value>();
2372 "length exceeds max acceptable value")) {
2395 "length exceeds max acceptable value")) {
2416 v8::Handle<v8::Value> argv[]) const {
2422 STATIC_ASSERT(sizeof(v8::Handle<v8::Value>) == sizeof(i::Object**));
2432 Local<v8::Value> Function::Call(v8::Handle<v8::Object> recv, int argc,
2433 v8::Handle<v8::Value> argv[]) {
2434 ON_BAILOUT("v8::Function::Call()", return Local<v8::Value>());
2442 STATIC_ASSERT(sizeof(v8::Handle<v8::Value>) == sizeof(i::Object**));
2462 Handle<Value> Function::GetName() const {
2474 v8::Integer::New(script->line_offset()->value()),
2475 v8::Integer::New(script->column_offset()->value()));
2478 return v8::ScriptOrigin(Handle<Value>());
2676 v8::String::ExternalStringResource* value) const {
2685 CHECK_EQ(expected, value);
2702 double Number::Value() const {
2703 if (IsDeadCheck("v8::Number::Value()")) return 0;
2709 bool Boolean::Value() const {
2710 if (IsDeadCheck("v8::Boolean::Value()")) return false;
2716 int64_t Integer::Value() const {
2717 if (IsDeadCheck("v8::Integer::Value()")) return 0;
2720 return i::Smi::cast(*obj)->value();
2727 int32_t Int32::Value() const {
2728 if (IsDeadCheck("v8::Int32::Value()")) return 0;
2731 return i::Smi::cast(*obj)->value();
2745 Local<Value> v8::Object::CheckedGetInternalField(int index) {
2746 if (IsDeadCheck("v8::Object::GetInternalField()")) return Local<Value>();
2751 return Local<Value>();
2753 i::Handle<i::Object> value(obj->GetInternalField(index));
2754 Local<Value> result = Utils::ToLocal(value);
2756 Local<Value> unchecked = UncheckedGetInternalField(index);
2763 void v8::Object::SetInternalField(int index, v8::Handle<Value> value) {
2772 i::Handle<i::Object> val = Utils::OpenHandle(*value);
2777 void v8::Object::SetPointerInInternalField(int index, void* value) {
2778 i::Object* as_object = reinterpret_cast<i::Object*>(value);
2785 i::Factory::NewProxy(reinterpret_cast<i::Address>(value), i::TENURED);
2853 v8::Handle<Value> global_object) {
2926 void v8::Context::SetSecurityToken(Handle<Value> token) {
2943 Handle<Value> v8::Context::GetSecurityToken() {
2944 if (IsDeadCheck("v8::Context::GetSecurityToken()")) return Handle<Value>();
3047 bool FunctionTemplate::HasInstance(v8::Handle<v8::Value> value) {
3049 i::Object* obj = *Utils::OpenHandle(*value);
3063 Local<Value> v8::External::Wrap(void* data) {
3078 i::Object* value = obj->GetInternalField(index);
3079 if (value
3080 return value;
3081 } else if (value->IsProxy()) {
3082 return reinterpret_cast<void*>(i::Proxy::cast(value)->proxy());
3089 void* v8::External::FullUnwrap(v8::Handle<v8::Value> wrapper) {
3094 // The external value was an aligned pointer.
3115 void* External::Value() const {
3116 if (IsDeadCheck("v8::External::Value()")) return 0;
3285 Local<v8::Value> v8::Date::New(double time) {
3289 // Introduce only canonical NaN value into the VM, to avoid signaling NaNs.
3296 EXCEPTION_BAILOUT_CHECK(Local<v8::Value>());
3306 return jsvalue->value()->Number();
3324 return i::Smi::cast(length)->value();
3362 Local<Number> v8::Number::New(double value) {
3364 if (isnan(value)) {
3365 // Introduce only canonical NaN value into the VM, to avoid signaling NaNs.
3366 value = i::OS::nan_value();
3369 i::Handle<i::Object> result = i::Factory::NewNumber(value);
3374 Local<Integer> v8::Integer::New(int32_t value) {
3376 if (i::Smi::IsValid(value)) {
3377 return Utils::IntegerToLocal(i::Handle<i::Object>(i::Smi::FromInt(value)));
3380 i::Handle<i::Object> result = i::Factory::NewNumber(value);
3385 Local<Integer> Integer::NewFromUnsigned(uint32_t value) {
3386 bool fits_into_int32_t = (value & (1 << 31)) == 0;
3388 return Integer::New(static_cast<int32_t>(value));
3391 i::Handle<i::Object> result = i::Factory::NewNumber(value);
3401 bool V8::AddMessageListener(MessageCallback that, Handle<Value> data) {
3412 listeners.add(obj.value());
3463 void V8::AddObjectGroup(Persistent<Value>* objects, size_t length) {
3465 STATIC_ASSERT(sizeof(Persistent<Value>) == sizeof(i::Object**));
3582 String::Utf8Value::Utf8Value(v8::Handle<v8::Value> obj) {
3609 String::AsciiValue::AsciiValue(v8::Handle<v8::Value> obj) {
3636 String::Value::Value(v8::Handle<v8::Value> obj) {
3637 EnsureInitialized("v8::String::Value::Value()");
3658 String::Value::~Value() {
3662 Value> Exception::RangeError(v8::Handle<v8::String> raw_message) {
3664 ON_BAILOUT("v8::Exception::RangeError()", return Local<Value>());
3677 Local<Value> Exception::ReferenceError(v8::Handle<v8::String> raw_message) {
3679 ON_BAILOUT("v8::Exception::ReferenceError()", return Local<Value>());
3692 Local<Value> Exception::SyntaxError(v8::Handle<v8::String> raw_message) {
3694 ON_BAILOUT("v8::Exception::SyntaxError()", return Local<Value>());
3707 Local<Value> Exception::TypeError(v8::Handle<v8::String> raw_message) {
3709 ON_BAILOUT("v8::Exception::TypeError()", return Local<Value>());
3722 Local<Value> Exception::Error(v8::Handle<v8::String> raw_message) {
3724 ON_BAILOUT("v8::Exception::Error()", return Local<Value>());
3741 bool Debug::SetDebugEventListener(EventCallback that, Handle<Value> data) {
3756 Handle<Value> data) {
3775 v8::String::Value json(message.GetJSON());
3830 Local<Value> Debug::Call(v8::Handle<v8::Function> fun,
3831 v8::Handle<v8::Value> data) {
3832 if (!i::V8::IsRunning()) return Local<Value>();
3833 ON_BAILOUT("v8::Debug::Call()", return Local<Value>());
3846 EXCEPTION_BAILOUT_CHECK(Local<Value>());
3851 Local<Value> Debug::GetMirror(v8::Handle<v8::Value> obj) {
3852 if (!i::V8::IsRunning()) return Local<Value>();
3853 ON_BAILOUT("v8::Debug::GetMirror()", return Local<Value>());
3863 v8::Handle<v8::Value> argv[kArgc] = { obj };
3865 v8::Handle<v8::Value> result = v8_fun->Call(Utils::ToLocal(debug),
3868 EXCEPTION_BAILOUT_CHECK(Local<Value>());