Searched refs:toInt32 (Results 1 - 25 of 37) sorted by relevance

12

/macosx-10.10/JavaScriptCore-7600.1.17/API/tests/
H A DDateTests.mm53 int year = [[jsNow invokeMethod:@"getFullYear" withArguments:@[]] toInt32];
55 int month = [[jsNow invokeMethod:@"getMonth" withArguments:@[]] toInt32] + 1;
56 int day = [[jsNow invokeMethod:@"getDate" withArguments:@[]] toInt32];
57 int hour = [[jsNow invokeMethod:@"getHours" withArguments:@[]] toInt32];
58 int minute = [[jsNow invokeMethod:@"getMinutes" withArguments:@[]] toInt32];
59 int second = [[jsNow invokeMethod:@"getSeconds" withArguments:@[]] toInt32];
79 int year = [[jsDate invokeMethod:@"getFullYear" withArguments:@[]] toInt32];
80 int month = [[jsDate invokeMethod:@"getMonth" withArguments:@[]] toInt32] + 1;
81 int day = [[jsDate invokeMethod:@"getDate" withArguments:@[]] toInt32];
82 int hour = [[jsDate invokeMethod:@"getHours" withArguments:@[]] toInt32];
[all...]
H A Dtestapi.mm486 checkResult(@"2 + 2", [result isNumber] && [result toInt32] == 4);
535 checkResult(@"my_number is 42", [myNumber isNumber] && [myNumber toInt32] == 42);
608 sawExpectedExceptionLineNumber = [exception[@"line"] toInt32] == expectedExceptionLineNumber;
671 checkResult(@"sum([13, 2, 7])", [result toInt32] == 22);
711 checkResult(@"valueAtIndex:0", [[array valueAtIndex:0] toInt32] == 24);
712 checkResult(@"valueAtIndex:lowIndex", [[array valueAtIndex:lowIndex] toInt32] == 42);
713 checkResult(@"valueAtIndex:maxLength - 1", [[array valueAtIndex:(maxLength - 1)] toInt32] == 42);
714 checkResult(@"valueAtIndex:maxLength", [[array valueAtIndex:maxLength] toInt32] == 24);
715 checkResult(@"valueAtIndex:maxLength + 1", [[array valueAtIndex:(maxLength + 1)] toInt32] == 24);
756 int result = [object [@"getterProperty"] toInt32];
[all...]
/macosx-10.10/WebCore-7600.1.25/bindings/js/
H A DJSHTMLInputElementCustom.cpp51 input.setSelectionStart(value.toInt32(exec));
69 input.setSelectionEnd(value.toInt32(exec));
98 int start = exec->argument(0).toInt32(exec);
99 int end = exec->argument(1).toInt32(exec);
H A DJSHTMLOptionsCollectionCustom.cpp71 int index = exec->argument(1).toInt32(exec);
87 impl().remove(argument.toInt32(exec));
H A DJSImageConstructor.cpp65 width = exec->argument(0).toInt32(exec);
69 height = exec->argument(1).toInt32(exec);
H A DJSAudioContextCustom.cpp82 int32_t numberOfChannels = exec->argument(0).toInt32(exec);
83 int32_t numberOfFrames = exec->argument(1).toInt32(exec);
H A DJSWorkerGlobalScopeCustom.cpp95 int delay = exec->argument(1).toInt32(exec);
106 int delay = exec->argument(1).toInt32(exec);
H A DJSHTMLSelectElementCustom.cpp49 select.removeByIndex(exec->argument(0).toInt32(exec));
H A DJSNodeFilterCondition.cpp74 int intResult = result.toInt32(exec);
H A DJSWebGLRenderingContextCustom.cpp167 unsigned target = exec->uncheckedArgument(0).toInt32(exec);
170 unsigned pname = exec->uncheckedArgument(1).toInt32(exec);
302 unsigned target = exec->uncheckedArgument(0).toInt32(exec);
305 unsigned attachment = exec->uncheckedArgument(1).toInt32(exec);
308 unsigned pname = exec->uncheckedArgument(2).toInt32(exec);
326 unsigned pname = exec->uncheckedArgument(0).toInt32(exec);
347 unsigned pname = exec->uncheckedArgument(1).toInt32(exec);
373 unsigned pname = exec->uncheckedArgument(1).toInt32(exec);
434 int32_t length = object->get(exec, exec->vm().propertyNames->length).toInt32(exec);
485 index = exec->uncheckedArgument(0).toInt32(exe
[all...]
H A DJSCommandLineAPIHostCustom.cpp68 CommandLineAPIHost::InspectableObject* object = impl().inspectedObject(exec->uncheckedArgument(0).toInt32(exec));
H A DJSInspectorFrontendHostCustom.cpp117 ContextMenuAction typedId = static_cast<ContextMenuAction>(ContextMenuItemBaseCustomTag + id.toInt32(exec));
H A DJSDictionary.cpp93 result = value.toInt32(exec);
H A DJSDOMBinding.h295 return JSC::toInt32(number);
319 inline int32_t toInt32(JSC::ExecState* exec, JSC::JSValue value, IntegerConversionConfiguration configuration) function in namespace:WebCore
323 return value.toInt32(exec);
/macosx-10.10/JavaScriptCore-7600.1.17/runtime/
H A DDateConstructor.cpp160 int year = JSC::toInt32(doubleArguments[0]);
162 t.setMonth(JSC::toInt32(doubleArguments[1]));
163 t.setMonthDay((numArgs >= 3) ? JSC::toInt32(doubleArguments[2]) : 1);
164 t.setHour(JSC::toInt32(doubleArguments[3]));
165 t.setMinute(JSC::toInt32(doubleArguments[4]));
166 t.setSecond(JSC::toInt32(doubleArguments[5]));
239 int year = JSC::toInt32(doubleArguments[0]);
241 t.setMonth(JSC::toInt32(doubleArguments[1]));
242 t.setMonthDay((n >= 3) ? JSC::toInt32(doubleArguments[2]) : 1);
243 t.setHour(JSC::toInt32(doubleArgument
[all...]
H A DJSArrayBufferPrototype.cpp49 int32_t begin = exec->argument(0).toInt32(exec);
55 end = exec->uncheckedArgument(1).toInt32(exec);
H A DCommonSlowPaths.cpp406 int32_t a = OP_C(2).jsValue().toInt32(exec);
414 int32_t a = OP_C(2).jsValue().toInt32(exec);
437 int32_t a = OP_C(2).jsValue().toInt32(exec);
438 int32_t b = OP_C(3).jsValue().toInt32(exec);
445 int32_t a = OP_C(2).jsValue().toInt32(exec);
446 int32_t b = OP_C(3).jsValue().toInt32(exec);
453 int32_t a = OP_C(2).jsValue().toInt32(exec);
454 int32_t b = OP_C(3).jsValue().toInt32(exec);
H A DJSGenericTypedArrayViewPrototypeInlines.h79 int32_t begin = exec->uncheckedArgument(0).toInt32(exec);
85 end = exec->uncheckedArgument(1).toInt32(exec);
H A DJSCJSValue.h112 JS_EXPORT_PRIVATE int32_t toInt32(double);
119 return toInt32(number);
251 int32_t toInt32(ExecState*) const;
H A DTypedArrayAdaptors.h68 result = toInt32(value);
H A DJSCJSValue.cpp302 int32_t toInt32(double number) function in namespace:JSC
H A DJSCJSValueInlines.h37 ALWAYS_INLINE int32_t JSValue::toInt32(ExecState* exec) const function in class:JSC::JSValue
41 return JSC::toInt32(toNumber(exec));
47 return toInt32(exec);
/macosx-10.10/JavaScriptCore-7600.1.17/API/
H A DJSValue.h254 - (int32_t)toInt32;
/macosx-10.10/WebCore-7600.1.25/bindings/scripts/test/JS/
H A DJSTestObj.cpp2001 int nativeValue(toInt32(exec, value, NormalConversion));
2161 int nativeValue(toInt32(exec, value, NormalConversion));
2261 int nativeValue(toInt32(exec, value, NormalConversion));
2341 int nativeValue(toInt32(exec, value, NormalConversion));
2362 int nativeValue(toInt32(exec, value, NormalConversion));
2437 int nativeValue(toInt32(exec, value, NormalConversion));
2613 int nativeValue(toInt32(exec, value, NormalConversion));
2635 int nativeValue(toInt32(exec, value, NormalConversion));
2657 int nativeValue(toInt32(exec, value, NormalConversion));
2783 int nativeValue(toInt32(exe
[all...]
/macosx-10.10/JavaScriptCore-7600.1.17/parser/
H A DASTBuilder.h774 return createNumber(location, ~toInt32(static_cast<NumberNode*>(expr)->value()));
835 return createNumber(location, toInt32(static_cast<NumberNode*>(expr1)->value()) << (toUInt32(static_cast<NumberNode*>(expr2)->value()) & 0x1f));
842 return createNumber(location, toInt32(static_cast<NumberNode*>(expr1)->value()) >> (toUInt32(static_cast<NumberNode*>(expr2)->value()) & 0x1f));
856 return createNumber(location, toInt32(static_cast<NumberNode*>(expr1)->value()) | toInt32(static_cast<NumberNode*>(expr2)->value()));
863 return createNumber(location, toInt32(static_cast<NumberNode*>(expr1)->value()) & toInt32(static_cast<NumberNode*>(expr2)->value()));
870 return createNumber(location, toInt32(static_cast<NumberNode*>(expr1)->value()) ^ toInt32(static_cast<NumberNode*>(expr2)->value()));

Completed in 307 milliseconds

12