Home
last modified time | relevance | path

Searched refs:jerry_get_number_value (Results 1 – 25 of 33) sorted by relevance

12

/third_party/jerryscript/targets/mbedos5/jerryscript-mbed/jerryscript-mbed-drivers/source/
DI2C-js.cpp61 int hz = jerry_get_number_value(args[0]); in DECLARE_CLASS_FUNCTION()
103 int data = jerry_get_number_value(args[0]); in DECLARE_CLASS_FUNCTION()
126 int address = jerry_get_number_value(args[0]); in DECLARE_CLASS_FUNCTION()
127 int length = jerry_get_number_value(args[2]); in DECLARE_CLASS_FUNCTION()
199 int data = jerry_get_number_value(args[0]); in DECLARE_CLASS_FUNCTION()
222 int address = jerry_get_number_value(args[0]); in DECLARE_CLASS_FUNCTION()
224 int length = jerry_get_number_value(args[2]); in DECLARE_CLASS_FUNCTION()
230 data[i] = jerry_get_number_value(jerry_get_property_by_index(args[1], i)); in DECLARE_CLASS_FUNCTION()
300 int sda = jerry_get_number_value(args[0]); in DECLARE_CLASS_CONSTRUCTOR()
301 int scl = jerry_get_number_value(args[1]); in DECLARE_CLASS_CONSTRUCTOR()
DPwmOut-js.cpp64 double arg0 = jerry_get_number_value(args[0]); in DECLARE_CLASS_FUNCTION()
125 double arg0 = jerry_get_number_value(args[0]); in DECLARE_CLASS_FUNCTION()
151 double arg0 = jerry_get_number_value(args[0]); in DECLARE_CLASS_FUNCTION()
177 double arg0 = jerry_get_number_value(args[0]); in DECLARE_CLASS_FUNCTION()
203 double arg0 = jerry_get_number_value(args[0]); in DECLARE_CLASS_FUNCTION()
229 double arg0 = jerry_get_number_value(args[0]); in DECLARE_CLASS_FUNCTION()
255 double arg0 = jerry_get_number_value(args[0]); in DECLARE_CLASS_FUNCTION()
271 PinName pin_name = PinName(jerry_get_number_value(args[0])); in DECLARE_CLASS_CONSTRUCTOR()
DDigitalOut-js.cpp62 int arg0 = jerry_get_number_value(args[0]); in DECLARE_CLASS_FUNCTION()
133 PinName pin_name = PinName(jerry_get_number_value(args[0])); in DECLARE_CLASS_CONSTRUCTOR()
140 int value = static_cast<int>(jerry_get_number_value(args[1])); in DECLARE_CLASS_CONSTRUCTOR()
DsetInterval-js.cpp31 int interval = int(jerry_get_number_value(args[1])); in DECLARE_GLOBAL_FUNCTION()
59 int id = int(jerry_get_number_value(args[0])); in DECLARE_GLOBAL_FUNCTION()
DsetTimeout-js.cpp31 int interval = int(jerry_get_number_value(args[1])); in DECLARE_GLOBAL_FUNCTION()
59 int id = int(jerry_get_number_value(args[0])); in DECLARE_GLOBAL_FUNCTION()
DInterruptIn-js.cpp194 int pull = jerry_get_number_value(args[0]); in DECLARE_CLASS_FUNCTION()
254 int pin = jerry_get_number_value(args[0]); in DECLARE_CLASS_CONSTRUCTOR()
DAnalogIn-js.cpp98 PinName pin_name = PinName(jerry_get_number_value(args[0])); in DECLARE_CLASS_CONSTRUCTOR()
/third_party/jerryscript/targets/esp8266/user/
Djerry_extapi.c78 double number = jerry_get_number_value (args_p[cc]); in DELCARE_HANDLER()
103 int port = (int) jerry_get_number_value (args_p[0]); in DELCARE_HANDLER()
104 int value = (int) jerry_get_number_value (args_p[1]); in DELCARE_HANDLER()
124 int port = (int) jerry_get_number_value (args_p[0]); in DELCARE_HANDLER()
125 int value = (int) jerry_get_number_value (args_p[1]); in DELCARE_HANDLER()
139 int port = (int) jerry_get_number_value (args_p[0]); in DELCARE_HANDLER()
/third_party/jerryscript/tests/unit-core/
Dtest-proxy.c111 demo_value = (int) jerry_get_number_value (args_p[2]); in handler_set()
189 TEST_ASSERT (jerry_get_number_value (res) == 1.0); in main()
196 TEST_ASSERT (jerry_get_number_value (res) == 2.0); in main()
203 TEST_ASSERT (jerry_get_number_value (res) == 3.0); in main()
218 TEST_ASSERT (jerry_get_number_value (res) == 55); in main()
225 TEST_ASSERT (jerry_get_number_value (res) == 56); in main()
238 TEST_ASSERT (jerry_get_number_value (res) == 13.0); in main()
Dtest-api-set-and-clear-error-flag.c104 TEST_ASSERT (jerry_get_number_value (num2) == test_num); in main()
111 TEST_ASSERT (jerry_get_number_value (num2) == test_num); in main()
122 TEST_ASSERT (jerry_get_number_value (num2) == test_num); in main()
131 TEST_ASSERT (jerry_get_number_value (num2) == test_num); in main()
140 TEST_ASSERT (jerry_get_number_value (num) == test_num); in main()
150 TEST_ASSERT (jerry_get_number_value (num) == test_num); in main()
160 TEST_ASSERT (jerry_get_number_value (num) == test_num); in main()
171 TEST_ASSERT (jerry_get_number_value (num) == test_num); in main()
Dtest-symbol.c73 TEST_ASSERT (jerry_get_number_value (get_value_1) == jerry_get_number_value (value_1)); in main()
77 TEST_ASSERT (jerry_get_number_value (get_value_2) == jerry_get_number_value (value_2)); in main()
93 TEST_ASSERT (jerry_get_number_value (value_2) == jerry_get_number_value (prop_desc.value)); in main()
Dtest-api.c240 TEST_ASSERT (jerry_get_number_value (value) == 32.0); in foreach()
257 TEST_ASSERT (jerry_get_number_value (value) == 123.45); in foreach()
386 && jerry_get_number_value (val_t) == 1.0); in main()
400 && jerry_get_number_value (res) == 1.0); in main()
412 && jerry_get_number_value (res) == 5.0); in main()
467 && jerry_get_number_value (res) == 12.0); in main()
497 && jerry_get_number_value (res) == 12.0); in main()
656 && jerry_get_number_value (v_out) == 10.5); in main()
763 && jerry_get_number_value (res) == 123.0); in main()
779 && jerry_get_number_value (val_t) == 4321.0); in main()
[all …]
Dtest-internal-properties.c129 …TEST_ASSERT (jerry_value_is_number (get_result_1) && jerry_get_number_value (get_result_1) == 5.5); in main()
130 …TEST_ASSERT (jerry_value_is_number (get_result_2) && jerry_get_number_value (get_result_2) == 6.5); in main()
131 …TEST_ASSERT (jerry_value_is_number (get_result_3) && jerry_get_number_value (get_result_3) == 7.5); in main()
154 …TEST_ASSERT (jerry_value_is_number (get_internal_result_4) && jerry_get_number_value (get_internal… in main()
155 …TEST_ASSERT (jerry_value_is_number (get_internal_result_5) && jerry_get_number_value (get_internal… in main()
156 …TEST_ASSERT (jerry_value_is_number (get_internal_result_6) && jerry_get_number_value (get_internal… in main()
Dtest-api-promise.c59 TEST_ASSERT (jerry_get_number_value (get_result) == 3.0); in test_promise_resolve_success()
83 TEST_ASSERT (jerry_get_number_value (get_result) == 3.0); in test_promise_resolve_success()
179 TEST_ASSERT (jerry_get_number_value (promise_result) == 31.0); in test_promise_from_js()
Dtest-dataview.c88 …TEST_ASSERT (jerry_get_number_value (jerry_eval (get_src, sizeof (get_src) - 1, JERRY_PARSE_NO_OPT… in main()
91 TEST_ASSERT (jerry_get_number_value (jerry_eval (get_src_little_endian, in main()
Dtest-typedarray.c323 TEST_ASSERT (jerry_get_number_value (get_result) == test_int_numbers[j]); in test_property_by_index()
346 double get_abs = fabs (jerry_get_number_value (get_result) - test_double_numbers[j]); in test_property_by_index()
361 TEST_ASSERT (isinf (jerry_get_number_value (get_inf))); in test_property_by_index()
382 TEST_ASSERT (jerry_get_number_value (get_result) == test_uint_numbers[j]); in test_property_by_index()
Dtest-regression-3588.c34 TEST_ASSERT (jerry_get_number_value (args_p[0]) == 1.0); in construct_handler()
Dtest-newtarget.c64 int test_id = (int) jerry_get_number_value (args_p[0]); in construct_handler()
Dtest-arraybuffer.c361 TEST_ASSERT (jerry_get_number_value (res) == sum); in main()
/third_party/jerryscript/tests/unit-ext/
Dtest-ext-method-register.c100 TEST_ASSERT (jerry_get_number_value (result) == 42.5); in test_simple_registration()
147 TEST_ASSERT ((uint32_t) jerry_get_number_value (result) == 3u); in test_simple_registration()
155 TEST_ASSERT ((uint32_t) jerry_get_number_value (result) == 0u); in test_simple_registration()
272 TEST_ASSERT ((uint32_t) jerry_get_number_value (func_result) == 2u); in test_error_multiple_functions()
Dtest-ext-module-canonical.c97 TEST_ASSERT (jerry_get_number_value (prop_value) == TEST_VALUE); in main()
/third_party/jerryscript/targets/particle/source/
Dmain.cpp36 int ledPin = jerry_get_number_value (args_p[0]); in set_led()
60 int millisec = jerry_get_number_value (args_p[0]); in js_delay()
/third_party/jerryscript/jerry-ext/arg/
Darg-transform-functions.c62 *number_p = jerry_get_number_value (js_arg); in jerryx_arg_transform_number_strict_common()
90 *number_p = jerry_get_number_value (to_number); in jerryx_arg_transform_number_common()
/third_party/jerryscript/tests/unit-ext/module/
Djerry-module-test.c178 TEST_ASSERT (jerry_get_number_value (js_value) == expected_result); in assert_number()
/third_party/jerryscript/docs/
D03.API-EXAMPLE.md632 printf ("number: %lf", jerry_get_number_value (value));
726 printf ("number: %lf", jerry_get_number_value (value));
973 double x = jerry_get_number_value (x_val);
974 double d = jerry_get_number_value (args_p[0]);

12