Home
last modified time | relevance | path

Searched refs:jerry_get_number_value (Results 1 – 25 of 32) 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()
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()
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()
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.cpp113 demo_value = (int) jerry_get_number_value (args_p[2]); in handler_set()
215 TEST_ASSERT (jerry_get_number_value (res) == 1.0);
222 TEST_ASSERT (jerry_get_number_value (res) == 2.0);
229 TEST_ASSERT (jerry_get_number_value (res) == 3.0);
244 TEST_ASSERT (jerry_get_number_value (res) == 55);
251 TEST_ASSERT (jerry_get_number_value (res) == 56);
264 TEST_ASSERT (jerry_get_number_value (res) == 13.0);
Dtest-api-set-and-clear-error-flag.cpp133 TEST_ASSERT (jerry_get_number_value (num2) == test_num);
140 TEST_ASSERT (jerry_get_number_value (num2) == test_num);
151 TEST_ASSERT (jerry_get_number_value (num2) == test_num);
160 TEST_ASSERT (jerry_get_number_value (num2) == test_num);
169 TEST_ASSERT (jerry_get_number_value (num) == test_num);
179 TEST_ASSERT (jerry_get_number_value (num) == test_num);
189 TEST_ASSERT (jerry_get_number_value (num) == test_num);
200 TEST_ASSERT (jerry_get_number_value (num) == test_num);
Dtest-symbol.cpp97 TEST_ASSERT (jerry_get_number_value (get_value_1) == jerry_get_number_value (value_1));
101 TEST_ASSERT (jerry_get_number_value (get_value_2) == jerry_get_number_value (value_2));
117 TEST_ASSERT (jerry_get_number_value (value_2) == jerry_get_number_value (prop_desc.value));
Dtest-api.cpp242 TEST_ASSERT (jerry_get_number_value (value) == 32.0); in foreach()
259 TEST_ASSERT (jerry_get_number_value (value) == 123.45); in foreach()
411 && jerry_get_number_value (val_t) == 1.0);
425 && jerry_get_number_value (res) == 1.0);
437 && jerry_get_number_value (res) == 5.0);
492 && jerry_get_number_value (res) == 12.0);
522 && jerry_get_number_value (res) == 12.0);
681 && jerry_get_number_value (v_out) == 10.5);
788 && jerry_get_number_value (res) == 123.0);
804 && jerry_get_number_value (val_t) == 4321.0);
[all …]
Dtest-internal-properties.cpp157 …TEST_ASSERT (jerry_value_is_number (get_result_1) && jerry_get_number_value (get_result_1) == 5.5);
158 …TEST_ASSERT (jerry_value_is_number (get_result_2) && jerry_get_number_value (get_result_2) == 6.5);
159 …TEST_ASSERT (jerry_value_is_number (get_result_3) && jerry_get_number_value (get_result_3) == 7.5);
182 …TEST_ASSERT (jerry_value_is_number (get_internal_result_4) && jerry_get_number_value (get_internal…
183 …TEST_ASSERT (jerry_value_is_number (get_internal_result_5) && jerry_get_number_value (get_internal…
184 …TEST_ASSERT (jerry_value_is_number (get_internal_result_6) && jerry_get_number_value (get_internal…
Dtest-api-promise.cpp60 TEST_ASSERT (jerry_get_number_value (get_result) == 3.0); in test_promise_resolve_success()
84 TEST_ASSERT (jerry_get_number_value (get_result) == 3.0); in test_promise_resolve_success()
180 TEST_ASSERT (jerry_get_number_value (promise_result) == 31.0); in test_promise_from_js()
Dtest-typedarray.cpp191 TEST_ASSERT (jerry_get_number_value (get_result) == test_int_numbers[j]); in test_property_by_index()
214 double get_abs = fabs (jerry_get_number_value (get_result) - test_double_numbers[j]); in test_property_by_index()
229 TEST_ASSERT (isinf (jerry_get_number_value (get_inf))); in test_property_by_index()
250 TEST_ASSERT (jerry_get_number_value (get_result) == test_uint_numbers[j]); in test_property_by_index()
Dtest-dataview.cpp114 …TEST_ASSERT (jerry_get_number_value (jerry_eval (get_src, sizeof (get_src) - 1, JERRY_PARSE_NO_OPT…
117 TEST_ASSERT (jerry_get_number_value (jerry_eval (get_src_little_endian,
Dtest-regression-3588.cpp34 TEST_ASSERT (jerry_get_number_value (args_p[0]) == 1.0); in construct_handler()
Dtest-newtarget.cpp65 int test_id = (int) jerry_get_number_value (args_p[0]); in construct_handler()
Dtest-api-binary-operations-arithmetics.cpp135 double num = jerry_get_number_value (result);
/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