Home
last modified time | relevance | path

Searched refs:jerry_char_t (Results 1 – 25 of 80) sorted by relevance

1234

/third_party/jerryscript/tests/unit-core/
Dtest-string-to-number.c30 const jerry_char_t *strings[] = in main()
32 (const jerry_char_t *) "1", in main()
33 (const jerry_char_t *) "0.5", in main()
34 (const jerry_char_t *) "12345", in main()
35 (const jerry_char_t *) "1e-45", in main()
36 (const jerry_char_t *) "-2.5e+38", in main()
37 (const jerry_char_t *) "-2.5e38", in main()
38 (const jerry_char_t *) "- 2.5e+38", in main()
39 (const jerry_char_t *) "-2 .5e+38", in main()
40 (const jerry_char_t *) "-2. 5e+38", in main()
[all …]
Dtest-api-binary-operations-comparisons.c38 jerry_value_t obj1 = jerry_eval ((const jerry_char_t *) "o={x:1};o", 9, JERRY_PARSE_NO_OPTS); in main()
39 jerry_value_t obj2 = jerry_eval ((const jerry_char_t *) "o={x:1};o", 9, JERRY_PARSE_NO_OPTS); in main()
40 jerry_value_t err1 = jerry_create_error (JERRY_ERROR_SYNTAX, (const jerry_char_t *) "error"); in main()
50 jerry_create_string ((const jerry_char_t *) "example string"), in main()
51 jerry_create_string ((const jerry_char_t *) "example string"), in main()
54 jerry_create_string ((const jerry_char_t *) "example string"), in main()
58 jerry_create_string ((const jerry_char_t *) "example string"), in main()
62 jerry_create_string ((const jerry_char_t *) "example string"), in main()
82 jerry_create_string ((const jerry_char_t *) "example string"), in main()
91 jerry_create_string ((const jerry_char_t *) "example string"), in main()
[all …]
Dtest-api-strings.c24 const jerry_char_t is_equal_src[] = "var isEqual = function(a, b) { return (a === b); }; isEqual"; in strict_equals()
48 args[0] = jerry_create_string ((jerry_char_t *) ""); in main()
56 args[0] = jerry_create_string_from_utf8 ((jerry_char_t *) "\x73\x74\x72\x3a \xf0\x90\x90\x80"); in main()
57 args[1] = jerry_create_string ((jerry_char_t *) "\x73\x74\x72\x3a \xed\xa0\x81\xed\xb0\x80"); in main()
66 jerry_string_to_char_buffer (args[0], (jerry_char_t *) string_from_utf8, utf8_sz); in main()
67 jerry_string_to_char_buffer (args[1], (jerry_char_t *) string_from_cesu8, cesu8_sz); in main()
76 args[0] = jerry_create_string_from_utf8 ((jerry_char_t *) "\x73\x74\x72\x3a \xf0\x90\x90\x80"); in main()
77 args[1] = jerry_create_string ((jerry_char_t *) "\x73\x74\x72\x3a \xed\xa0\x81\xed\xb0\x80"); in main()
91 jerry_string_to_utf8_char_buffer (args[0], (jerry_char_t *) string_from_utf8_string, utf8_sz); in main()
92 jerry_string_to_utf8_char_buffer (args[1], (jerry_char_t *) string_from_cesu8_string, cesu8_sz); in main()
[all …]
Dtest-api-binary-operations-arithmetics.c59 jerry_value_t obj1 = jerry_eval ((const jerry_char_t *) "o={x:1};o", 9, JERRY_PARSE_NO_OPTS); in main()
60 jerry_value_t obj2 = jerry_eval ((const jerry_char_t *) "o={x:1};o", 9, JERRY_PARSE_NO_OPTS); in main()
61 jerry_value_t err1 = jerry_create_error (JERRY_ERROR_SYNTAX, (const jerry_char_t *) "error"); in main()
72 …T_ARI (jerry_create_string ((const jerry_char_t *) "foo"), jerry_create_string ((const jerry_char_… in main()
73 T_ARI (jerry_create_string ((const jerry_char_t *) "foo"), jerry_create_undefined ()), in main()
74 T_ARI (jerry_create_string ((const jerry_char_t *) "foo"), jerry_create_null ()), in main()
75 T_ARI (jerry_create_string ((const jerry_char_t *) "foo"), jerry_create_number (5.0)), in main()
76 T_ARI (jerry_create_undefined (), jerry_create_string ((const jerry_char_t *) "foo")), in main()
77 T_ARI (jerry_create_null (), jerry_create_string ((const jerry_char_t *) "foo")), in main()
78 T_ARI (jerry_create_number (5.0), jerry_create_string ((const jerry_char_t *) "foo")), in main()
[all …]
Dtest-api.c21 const jerry_char_t test_source[] = TEST_STRING_LITERAL (
82 (jerry_char_t *) buffer, in handler()
89 return jerry_create_string ((jerry_char_t *) "string from handler"); in handler()
101 return jerry_create_error (JERRY_ERROR_TYPE, (jerry_char_t *) "error"); in handler_throw_test()
155 jerry_value_t field_name = jerry_create_string ((jerry_char_t *) "value_field"); in handler_construct()
215 const jerry_char_t *magic_string_items[] =
218 (const jerry_char_t *) jerry_magic_string_ex_ ## NAME,
231 jerry_size_t sz = jerry_string_to_char_buffer (name, (jerry_char_t *) str_buf_p, 128); in foreach()
264 (jerry_char_t *) str_buf_p, in foreach()
283 jerry_size_t sz = jerry_string_to_char_buffer (name, (jerry_char_t *) str_buf_p, 128); in foreach_exception()
[all …]
Dtest-resource-name.c54 jerry_value_t name = jerry_create_string ((const jerry_char_t *) "resourceName"); in main()
72 jerry_value_t program = jerry_parse ((const jerry_char_t *) resource_1, in main()
74 (const jerry_char_t *) source_1, in main()
84 jerry_value_t resource1_name_value = jerry_create_string ((const jerry_char_t *) resource_1); in main()
103 program = jerry_parse ((const jerry_char_t *) resource_2, in main()
105 (const jerry_char_t *) source_2, in main()
115 jerry_value_t resource2_name_value = jerry_create_string ((const jerry_char_t *) resource_2); in main()
Dtest-abort.c32 jerry_value_t value = jerry_create_string ((jerry_char_t *) "Abort run!"); in callback_func()
45 jerry_value_t callback_name = jerry_create_string ((jerry_char_t *) "callback"); in main()
55 const jerry_char_t inf_loop_code_src1[] = TEST_STRING_LITERAL ( in main()
81 const jerry_char_t inf_loop_code_src2[] = TEST_STRING_LITERAL ( in main()
117 jerry_value_t value = jerry_create_string ((jerry_char_t *) "Error description"); in main()
Dtest-api-binary-operations-instanceof.c55 jerry_value_t prototype_str = jerry_create_string ((const jerry_char_t *) "prototype"); in main()
92 …T (jerry_create_string ((const jerry_char_t *) ""), jerry_create_string ((const jerry_char_t *) ""… in main()
93 T (jerry_create_string ((const jerry_char_t *) ""), jerry_create_number (5.0), true), in main()
94 T (jerry_create_number (5.0), jerry_create_string ((const jerry_char_t *) ""), true), in main()
99 T (jerry_create_object (), jerry_create_string ((const jerry_char_t *) ""), true) in main()
Dtest-dataview.c75 jerry_value_t view1_str = jerry_create_string ((const jerry_char_t *) "view1"); in main()
76 jerry_value_t view2_str = jerry_create_string ((const jerry_char_t *) "view2"); in main()
84 const jerry_char_t set_src[] = "view1.setInt16 (12, 255)"; in main()
87 const jerry_char_t get_src[] = "view2.getInt16 (0)"; in main()
90 const jerry_char_t get_src_little_endian[] = "view2.getInt16 (0, true)"; in main()
Dtest-objects-foreach.c35 jerry_value_t map_str = jerry_create_string ((const jerry_char_t *) "Map"); in test_container()
53 jerry_value_t array = jerry_eval ((const jerry_char_t *) array_str, sizeof (array_str) - 1, 0); in test_container()
62 jerry_value_t result = jerry_eval ((const jerry_char_t *) eval_str, sizeof (eval_str) - 1, 0); in test_container()
76 jerry_value_t result = jerry_eval ((const jerry_char_t *) eval_str, sizeof (eval_str) - 1, 0); in test_container()
116 jerry_value_t internal_prop_name = jerry_create_string ((const jerry_char_t *) "hidden_foo"); in test_internal_prop()
147 static const jerry_char_t strict_equal_source[] = "var x = function(a, b) {return a === b;}; x";
225 jerry_value_t property_name = jerry_create_string ((jerry_char_t *) "xyzzy"); in main()
/third_party/jerryscript/jerry-core/include/
Djerryscript-core.h143 typedef uint8_t jerry_char_t; typedef
353 void jerry_register_magic_strings (const jerry_char_t * const *ex_str_items_p,
364 bool jerry_run_simple (const jerry_char_t *script_source_p, size_t script_source_size, jerry_init_f…
365 jerry_value_t jerry_parse (const jerry_char_t *resource_name_p, size_t resource_name_length,
366 const jerry_char_t *source_p, size_t source_size, uint32_t parse_opts);
367 jerry_value_t jerry_parse_function (const jerry_char_t *resource_name_p, size_t resource_name_lengt…
368 const jerry_char_t *arg_list_p, size_t arg_list_size,
369 … const jerry_char_t *source_p, size_t source_size, uint32_t parse_opts);
371 jerry_value_t jerry_eval (const jerry_char_t *source_p, size_t source_size, uint32_t parse_opts);
454 jerry_size_t jerry_string_to_char_buffer (const jerry_value_t value, jerry_char_t *buffer_p, jerry_…
[all …]
Djerryscript-snapshot.h56 jerry_value_t jerry_generate_snapshot (const jerry_char_t *resource_name_p, size_t resource_name_le…
57 const jerry_char_t *source_p, size_t source_size,
59 jerry_value_t jerry_generate_function_snapshot (const jerry_char_t *resource_name_p, size_t resourc…
60 const jerry_char_t *source_p, size_t source_size,
61 const jerry_char_t *args_p, size_t args_size,
74jerry_char_t *lit_buf_p, size_t lit_buf_size, bool is_c_format);
Djerryscript-debugger.h54 typedef jerry_value_t (*jerry_debugger_wait_for_source_callback_t) (const jerry_char_t *resource_na…
56 const jerry_char_t *source_p,
69 void jerry_debugger_send_output (const jerry_char_t *buffer, jerry_size_t str_size);
70 void jerry_debugger_send_log (jerry_log_level_t level, const jerry_char_t *buffer, jerry_size_t str…
/third_party/jerryscript/jerry-ext/module/
Dmodule.c24 static const jerry_char_t *module_name_property_name = (jerry_char_t *) "moduleName";
25 static const jerry_char_t *module_not_found = (jerry_char_t *) "Module not found";
26 static const jerry_char_t *module_name_not_string = (jerry_char_t *) "Module name is not a string";
38 const jerry_char_t *message, /**< the error message */ in jerryx_module_create_error()
173 static const jerry_char_t *on_resolve_absent = (jerry_char_t *) "Module on_resolve () must not be N…
186 jerry_char_t* name_string; in jerryx_resolve_native_module()
191 name_string = (jerry_char_t*) jerry_vla_malloc (sizeof(jerry_char_t) * name_size); in jerryx_resolve_native_module()
198 JERRY_VLA (jerry_char_t, name_string, name_size); in jerryx_resolve_native_module()
/third_party/jerryscript/targets/mbedos5/jerryscript-mbed/jerryscript-mbed-drivers/source/
DInterruptIn-js.cpp60 … (const jerry_char_t *) "Failed to get native InterruptIn pointer"); in DECLARE_CLASS_FUNCTION()
65 jerry_value_t property_name = jerry_create_string((const jerry_char_t*)"cb_rise"); in DECLARE_CLASS_FUNCTION()
89 … (const jerry_char_t *) "Failed to get native InterruptIn pointer"); in DECLARE_CLASS_FUNCTION()
101 jerry_value_t property_name = jerry_create_string((const jerry_char_t*)"cb_rise"); in DECLARE_CLASS_FUNCTION()
125 … (const jerry_char_t *) "Failed to get native InterruptIn pointer"); in DECLARE_CLASS_FUNCTION()
130 jerry_value_t property_name = jerry_create_string((const jerry_char_t*)"cb_fall"); in DECLARE_CLASS_FUNCTION()
154 … (const jerry_char_t *) "Failed to get native InterruptIn pointer"); in DECLARE_CLASS_FUNCTION()
166 jerry_value_t property_name = jerry_create_string((const jerry_char_t*)"cb_fall"); in DECLARE_CLASS_FUNCTION()
189 … (const jerry_char_t *) "Failed to get native InterruptIn pointer"); in DECLARE_CLASS_FUNCTION()
213 … (const jerry_char_t *) "Failed to get native InterruptIn pointer"); in DECLARE_CLASS_FUNCTION()
[all …]
DPwmOut-js.cpp59 (const jerry_char_t *) "Failed to get native PwmOut pointer"); in DECLARE_CLASS_FUNCTION()
92 (const jerry_char_t *) "Failed to get native PwmOut pointer"); in DECLARE_CLASS_FUNCTION()
120 (const jerry_char_t *) "Failed to get native PwmOut pointer"); in DECLARE_CLASS_FUNCTION()
146 (const jerry_char_t *) "Failed to get native PwmOut pointer"); in DECLARE_CLASS_FUNCTION()
172 (const jerry_char_t *) "Failed to get native PwmOut pointer"); in DECLARE_CLASS_FUNCTION()
198 (const jerry_char_t *) "Failed to get native PwmOut pointer"); in DECLARE_CLASS_FUNCTION()
224 (const jerry_char_t *) "Failed to get native PwmOut pointer"); in DECLARE_CLASS_FUNCTION()
250 (const jerry_char_t *) "Failed to get native PwmOut pointer"); in DECLARE_CLASS_FUNCTION()
DI2C-js.cpp56 (const jerry_char_t *) "Failed to get native I2C pointer"); in DECLARE_CLASS_FUNCTION()
98 (const jerry_char_t *) "Failed to get native I2C pointer"); in DECLARE_CLASS_FUNCTION()
119 (const jerry_char_t *) "Failed to get native I2C pointer"); in DECLARE_CLASS_FUNCTION()
156 … return jerry_create_error(JERRY_ERROR_COMMON, reinterpret_cast<const jerry_char_t *>(error_msg)); in DECLARE_CLASS_FUNCTION()
193 (const jerry_char_t *) "Failed to get native I2C pointer"); in DECLARE_CLASS_FUNCTION()
216 (const jerry_char_t *) "Failed to get native I2C pointer"); in DECLARE_CLASS_FUNCTION()
256 (const jerry_char_t *) "Failed to get native I2C pointer"); in DECLARE_CLASS_FUNCTION()
279 (const jerry_char_t *) "Failed to get native I2C pointer"); in DECLARE_CLASS_FUNCTION()
/third_party/jerryscript/tests/unit-ext/
Dtest-ext-method-register.c51 jerry_value_t prop_name = jerry_create_string ((const jerry_char_t *) target_prop); in freeze_property()
98 jerry_value_t result = jerry_eval ((const jerry_char_t *) test_A, strlen (test_A), 0); in test_simple_registration()
106 jerry_value_t result = jerry_eval ((const jerry_char_t *) test_A, strlen (test_A), 0); in test_simple_registration()
114 jerry_value_t result = jerry_eval ((const jerry_char_t *) test_A, strlen (test_A), 0); in test_simple_registration()
122 jerry_value_t result = jerry_eval ((const jerry_char_t *) test_A, strlen (test_A), 0); in test_simple_registration()
130 jerry_value_t result = jerry_eval ((const jerry_char_t *) test_A, strlen (test_A), 0); in test_simple_registration()
138 jerry_value_t result = jerry_eval ((const jerry_char_t *) test_A, strlen (test_A), 0); in test_simple_registration()
145 jerry_value_t result = jerry_eval ((const jerry_char_t *) test_A, strlen (test_A), 0); in test_simple_registration()
153 jerry_value_t result = jerry_eval ((const jerry_char_t *) test_A, strlen (test_A), 0); in test_simple_registration()
253 jerry_value_t prop_ok_val = jerry_create_string ((const jerry_char_t *) prop_ok); in test_error_multiple_functions()
[all …]
Dtest-ext-module-canonical.c29 JERRY_VLA (jerry_char_t, name_string, name_size + 1); in get_canonical_name()
39 return jerry_create_string ((jerry_char_t *) ACTUAL_NAME); in get_canonical_name()
51 JERRY_VLA (jerry_char_t, name_string, name_size + 1); in resolve()
81 jerry_value_t actual_name = jerry_create_string ((jerry_char_t *) ACTUAL_NAME); in main()
82 jerry_value_t alias_name = jerry_create_string ((jerry_char_t *) ALIAS_NAME); in main()
91 jerry_value_t prop_name = jerry_create_string ((jerry_char_t *) "something"); in main()
Dtest-ext-module-empty.c27 jerry_char_t buffer[256]; in main()
35 module_name = jerry_create_string ((jerry_char_t *) "some-unknown-module-name"); in main()
43 jerry_value_t prop_name = jerry_create_string ((const jerry_char_t *) "message"); in main()
58 prop_name = jerry_create_string ((const jerry_char_t *) "moduleName"); in main()
/third_party/jerryscript/jerry-ext/arg/
Darg-transform-functions.c59 (jerry_char_t *) "It is not a number."); in jerryx_arg_transform_number_strict_common()
87 (jerry_char_t *) "It can not be converted to a number."); in jerryx_arg_transform_number_common()
138 (jerry_char_t *) "The number is NaN."); in jerryx_arg_helper_process_double()
146 (jerry_char_t *) "The number is out of range."); in jerryx_arg_helper_process_double()
227 (jerry_char_t *) "It is not a boolean."); in JERRYX_ARG_TRANSFORM_FUNC_FOR_INT()
268 jerry_char_t *target_p = (jerry_char_t *) c_arg_p->dest; in jerryx_arg_string_to_buffer_common_routine()
291 (jerry_char_t *) "Buffer size is not large enough."); in jerryx_arg_string_to_buffer_common_routine()
315 (jerry_char_t *) "It is not a string."); in jerryx_arg_transform_string_strict_common()
341 (jerry_char_t *) "It can not be converted to a string."); in jerryx_arg_transform_string_common()
429 (jerry_char_t *) "It is not a function."); in jerryx_arg_transform_function()
[all …]
Darg.c95 return jerry_create_error (JERRY_ERROR_TYPE, (jerry_char_t *) "'this' validation failed."); in jerryx_arg_transform_this_and_args()
110 … const jerry_char_t **name_p, /**< property name list of the JS object */ in jerryx_arg_transform_object_properties()
121 return jerry_create_error (JERRY_ERROR_TYPE, (jerry_char_t *) "Not an object."); in jerryx_arg_transform_object_properties()
128 return jerry_create_error (JERRY_ERROR_TYPE, (jerry_char_t *) "malloc prop fail."); in jerryx_arg_transform_object_properties()
184 return jerry_create_error (JERRY_ERROR_TYPE, (jerry_char_t *) "Not an array."); in jerryx_arg_transform_array()
191 return jerry_create_error (JERRY_ERROR_TYPE, (jerry_char_t *) "malloc arr fail."); in jerryx_arg_transform_array()
/third_party/jerryscript/jerry-main/
Dmain-unix.c99 jerry_char_t err_str_buf[256]; in print_unhandled_exception()
103 jerry_value_t stack_str = jerry_create_string ((const jerry_char_t *) "stack"); in print_unhandled_exception()
167 jerry_char_t *string_end_p = err_str_buf + string_end; in print_unhandled_exception()
174 for (jerry_char_t *current_p = err_str_buf; current_p < string_end_p; current_p++) in print_unhandled_exception()
271 …jerry_value_t result_val = jerryx_handler_register_global ((const jerry_char_t *) name_p, handler_… in register_js_function()
289 wait_for_source_callback (const jerry_char_t *resource_name_p, /**< resource name */ in wait_for_source_callback()
291 const jerry_char_t *source_p, /**< source code */ in wait_for_source_callback()
711 … ret_value = jerry_create_error (JERRY_ERROR_COMMON, (jerry_char_t *) "Snapshot file load error"); in main()
736 const jerry_char_t *source_p = (jerry_char_t *) read_file (file_names[i], &source_size); in main()
740 … ret_value = jerry_create_error (JERRY_ERROR_COMMON, (jerry_char_t *) "Source file load error"); in main()
[all …]
/third_party/jerryscript/jerry-ext/handler/
Dhandler-register.c28 jerryx_handler_register_global (const jerry_char_t *name_p, /**< name of the function */ in jerryx_handler_register_global()
76 jerry_value_t prop_name = jerry_create_string_from_utf8 ((const jerry_char_t *) entry->name); in jerryx_set_properties()
136 jerry_value_t property_name_val = jerry_create_string_from_utf8 ((const jerry_char_t *) name); in jerryx_set_property_str()
159 jerry_value_t prop_name = jerry_create_string_from_utf8 ((const jerry_char_t *) name); in jerryx_get_property_str()
183 jerry_value_t prop_name = jerry_create_string_from_utf8 ((const jerry_char_t *) name); in jerryx_has_property_str()
Dhandler-print.c74 jerry_char_t substr_buf[256]; in jerryx_handler_print()
84 jerry_char_t *buf_end_p = substr_buf + substr_size; in jerryx_handler_print()
87 for (jerry_char_t *buf_p = substr_buf; buf_p < buf_end_p; buf_p++) in jerryx_handler_print()
101 for (jerry_char_t *buf_p = substr_buf; buf_p < buf_end_p; buf_p++) in jerryx_handler_print()

1234