Home
last modified time | relevance | path

Searched refs:toInt32 (Results 1 – 25 of 85) sorted by relevance

1234

/external/v8/test/mjsunit/
Dtoint32.js28 function toInt32(x) { function
32 assertEquals(0, toInt32(Infinity), "Inf");
33 assertEquals(0, toInt32(-Infinity), "-Inf");
34 assertEquals(0, toInt32(NaN), "NaN");
35 assertEquals(0, toInt32(0.0), "zero");
36 assertEquals(0, toInt32(-0.0), "-zero");
38 assertEquals(0, toInt32(Number.MIN_VALUE));
39 assertEquals(0, toInt32(-Number.MIN_VALUE));
40 assertEquals(0, toInt32(0.1));
41 assertEquals(0, toInt32(-0.1));
[all …]
/external/webkit/Source/JavaScriptCore/runtime/
DDateConstructor.cpp111 int year = JSC::toInt32(doubleArguments[0]); in constructDate()
113 t.month = JSC::toInt32(doubleArguments[1]); in constructDate()
114 t.monthDay = (numArgs >= 3) ? JSC::toInt32(doubleArguments[2]) : 1; in constructDate()
115 t.hour = JSC::toInt32(doubleArguments[3]); in constructDate()
116 t.minute = JSC::toInt32(doubleArguments[4]); in constructDate()
117 t.second = JSC::toInt32(doubleArguments[5]); in constructDate()
191 int year = JSC::toInt32(doubleArguments[0]); in dateUTC()
193 t.month = JSC::toInt32(doubleArguments[1]); in dateUTC()
194 t.monthDay = (n >= 3) ? JSC::toInt32(doubleArguments[2]) : 1; in dateUTC()
195 t.hour = JSC::toInt32(doubleArguments[3]); in dateUTC()
[all …]
/external/webkit/Source/WebCore/bindings/js/
DJSHTMLInputElementCustom.cpp51 input->setSelectionStart(value.toInt32(exec)); in setSelectionStart()
69 input->setSelectionEnd(value.toInt32(exec)); in setSelectionEnd()
78 int start = exec->argument(0).toInt32(exec); in setSelectionRange()
79 int end = exec->argument(1).toInt32(exec); in setSelectionRange()
DJSAudioNodeCustom.cpp49 outputIndex = exec->argument(1).toInt32(exec); in connect()
52 inputIndex = exec->argument(2).toInt32(exec); in connect()
66 outputIndex = exec->argument(0).toInt32(exec); in disconnect()
DJSAudioContextCustom.cpp68 unsigned numberOfChannels = exec->argument(0).toInt32(exec); in constructJSAudioContext()
69 unsigned numberOfFrames = exec->argument(1).toInt32(exec); in constructJSAudioContext()
111 unsigned numberOfChannels = exec->argument(0).toInt32(exec); in createBuffer()
112 unsigned numberOfFrames = exec->argument(1).toInt32(exec); in createBuffer()
DJSArrayBufferViewHelper.h53 offset = exec->argument(1).toInt32(exec); in setWebGLArrayHelper()
65 offset = exec->argument(1).toInt32(exec); in setWebGLArrayHelper()
66 uint32_t length = array->get(exec, JSC::Identifier(exec, "length")).toInt32(exec); in setWebGLArrayHelper()
151 int length = exec->argument(0).toInt32(exec); in constructArrayBufferView()
DJSWebGLRenderingContextCustom.cpp141 unsigned target = exec->argument(0).toInt32(exec); in getObjectParameter()
144 unsigned pname = exec->argument(1).toInt32(exec); in getObjectParameter()
254 unsigned target = exec->argument(0).toInt32(exec); in getFramebufferAttachmentParameter()
257 unsigned attachment = exec->argument(1).toInt32(exec); in getFramebufferAttachmentParameter()
260 unsigned pname = exec->argument(2).toInt32(exec); in getFramebufferAttachmentParameter()
278 unsigned pname = exec->argument(0).toInt32(exec); in getParameter()
299 unsigned pname = exec->argument(1).toInt32(exec); in getProgramParameter()
325 unsigned pname = exec->argument(1).toInt32(exec); in getShaderParameter()
388 int32_t length = object->get(exec, JSC::Identifier(exec, "length")).toInt32(exec); in toVector()
437 index = exec->argument(0).toInt32(exec); in dataFunctionf()
DJSImageConstructor.cpp60 width = exec->argument(0).toInt32(exec); in constructImage()
64 height = exec->argument(1).toInt32(exec); in constructImage()
DJSClipboardCustom.cpp111 int x = exec->argument(1).toInt32(exec); in setDragImage()
112 int y = exec->argument(2).toInt32(exec); in setDragImage()
DJSWorkerContextCustom.cpp129 int delay = exec->argument(1).toInt32(exec); in setTimeout()
139 int delay = exec->argument(1).toInt32(exec); in setInterval()
DJSGeolocationCustom.cpp85 options->setTimeout(max(0, timeoutValue.toInt32(exec))); in createPositionOptions()
103 options->setMaximumAge(max(0, maximumAgeValue.toInt32(exec))); in createPositionOptions()
/external/webkit/Source/WebCore/bindings/v8/custom/
DV8AudioContextCustom.cpp67 unsigned numberOfChannels = toInt32(args[0], ok); in constructorCallback()
71 unsigned numberOfFrames = toInt32(args[1], ok); in constructorCallback()
125 unsigned numberOfChannels = toInt32(args[0], ok); in createBufferCallback()
129 unsigned numberOfFrames = toInt32(args[1], ok); in createBufferCallback()
DV8AudioNodeCustom.cpp52 output = toInt32(args[1], ok); in connectCallback()
58 input = toInt32(args[2], ok); in connectCallback()
76 output = toInt32(args[0], ok); in disconnectCallback()
DV8DocumentCustom.cpp83 int type = toInt32(args[3]); in evaluateCallback()
107 int width = toInt32(args[2]); in getCSSCanvasContextCallback()
108 int height = toInt32(args[3]); in getCSSCanvasContextCallback()
DV8HTMLImageElementConstructor.cpp76 width = toInt32(args[0]); in v8HTMLImageElementConstructorCallback()
80 height = toInt32(args[1]); in v8HTMLImageElementConstructorCallback()
DV8WebGLRenderingContextCustom.cpp101 int ival = toInt32(val, ok); in jsArrayToIntArray()
201 unsigned target = toInt32(args[0]); in getObjectParameter()
202 unsigned pname = toInt32(args[1]); in getObjectParameter()
304 unsigned target = toInt32(args[0]); in getFramebufferAttachmentParameterCallback()
305 unsigned attachment = toInt32(args[1]); in getFramebufferAttachmentParameterCallback()
306 unsigned pname = toInt32(args[2]); in getFramebufferAttachmentParameterCallback()
326 unsigned pname = toInt32(args[0]); in getParameterCallback()
351 unsigned pname = toInt32(args[1]); in getProgramParameterCallback()
382 unsigned pname = toInt32(args[1]); in getShaderParameterCallback()
498 index = toInt32(args[0]); in vertexAttribAndUniformHelperf()
DV8ClipboardCustom.cpp110 int x = toInt32(args[1]); in setDragImageCallback()
111 int y = toInt32(args[2]); in setDragImageCallback()
DV8DataViewCustom.cpp99 EXCEPTION_BLOCK(int, value, toInt32(args[1])); in setInt8Callback()
115 EXCEPTION_BLOCK(int, value, toInt32(args[1])); in setUint8Callback()
/external/webkit/Tools/DumpRenderTree/chromium/
DEventSender.cpp360 buttonCode = arguments[0].toInt32(); in getButtonNumberFromSingleArg()
462 WebPoint mousePos(arguments[0].toInt32(), arguments[1].toInt32()); in mouseMoveTo()
581 int location = arguments[2].toInt32(); in keyDown()
622 int msg = arguments[0].toInt32(); in dispatchMessage()
633 …w()->handleInputEvent(WebInputEventFactory::keyboardEvent(0, msg, arguments[1].toInt32(), lparam)); in dispatchMessage()
654 int milliseconds = arguments[0].toInt32(); in leapForward()
846 touchPoint.position = WebPoint(arguments[0].toInt32(), arguments[1].toInt32()); in addTouchPoint()
862 const unsigned index = arguments[0].toInt32(); in releaseTouchPoint()
894 const unsigned index = arguments[0].toInt32(); in updateTouchPoint()
897 WebPoint position(arguments[1].toInt32(), arguments[2].toInt32()); in updateTouchPoint()
[all …]
DTextInputController.cpp109 arguments[1].toInt32(), in setMarkedText()
110 arguments[1].toInt32() + arguments[2].toInt32()); in setMarkedText()
192 … if (!mainFrame->firstRectForCharacterRange(arguments[0].toInt32(), arguments[1].toInt32(), rect)) in firstRectForCharacterRange()
/external/webkit/Source/WebCore/bindings/scripts/test/V8/
DV8TestObj.cpp94 int v = toInt32(value); in shortAttrAttrSetter()
126 int v = toInt32(value); in intAttrAttrSetter()
254 int v = toInt32(value); in reflectedIntegralAttrAttrSetter()
350 int v = toInt32(value); in reflectedCustomIntegralAttrAttrSetter()
420 int v = toInt32(value); in attrWithGetterExceptionAttrSetter()
439 int v = toInt32(value); in attrWithSetterExceptionAttrSetter()
515 int v = toInt32(value); in conditionalAttr1AttrSetter()
539 int v = toInt32(value); in conditionalAttr2AttrSetter()
563 int v = toInt32(value); in conditionalAttr3AttrSetter()
581 int v = toInt32(value); in enabledAtRuntimeAttr1AttrSetter()
[all …]
/external/webkit/Source/WebCore/bindings/scripts/test/JS/
DJSTestObj.cpp616 imp->setShortAttr(value.toInt32(exec)); in setJSTestObjShortAttr()
630 imp->setIntAttr(value.toInt32(exec)); in setJSTestObjIntAttr()
686 imp->setIntegralAttribute(WebCore::HTMLNames::reflectedintegralattrAttr, value.toInt32(exec)); in setJSTestObjReflectedIntegralAttr()
728 … imp->setIntegralAttribute(WebCore::HTMLNames::customContentIntegralAttrAttr, value.toInt32(exec)); in setJSTestObjReflectedCustomIntegralAttr()
757 imp->setAttrWithGetterException(value.toInt32(exec), ec); in setJSTestObjAttrWithGetterException()
766 imp->setAttrWithSetterException(value.toInt32(exec), ec); in setJSTestObjAttrWithSetterException()
798 imp->setConditionalAttr1(value.toInt32(exec)); in setJSTestObjConditionalAttr1()
807 imp->setConditionalAttr2(value.toInt32(exec)); in setJSTestObjConditionalAttr2()
816 imp->setConditionalAttr3(value.toInt32(exec)); in setJSTestObjConditionalAttr3()
824 imp->setId(value.toInt32(exec)); in setJSTestObjId()
[all …]
/external/webkit/Source/JavaScriptCore/qt/tests/qscriptengine/
Dtst_qscriptengine.cpp142 QCOMPARE(result.toInt32(), expectedResult); in newFunction()
175 QCOMPARE(result.toInt32(), 42); in newFunction()
187 QCOMPARE(result.toInt32(), 1024); in newFunction()
576 QCOMPARE(arrayWithSize.property("length").toInt32(), 42); in newArray()
582 QCOMPARE(ret.property("length").toInt32(), 0); in newArray()
587 QCOMPARE(ret.property("length").toInt32(), 1); in newArray()
592 QCOMPARE(ret.property("length").toInt32(), 1); in newArray()
597 QCOMPARE(ret.property("length").toInt32(), 2); in newArray()
602 QCOMPARE(ret.property("length").toInt32(), 2); in newArray()
/external/webkit/Source/JavaScriptCore/qt/benchmarks/qscriptvalue/
Dtst_qscriptvalue.cpp80 void toInt32();
350 void tst_QScriptValue::toInt32() in toInt32() function in tst_QScriptValue
354 value.toInt32(); in toInt32()
/external/webkit/Source/WebCore/bindings/v8/
DV8Binding.h117 int toInt32(v8::Handle<v8::Value> value, bool& ok);
120 inline int toInt32(v8::Handle<v8::Value> value) in toInt32() function
123 return toInt32(value, ok); in toInt32()

1234