Home
last modified time | relevance | path

Searched refs:jerry_char_t (Results 1 - 25 of 72) sorted by relevance

123

/third_party/jerryscript/tests/unit-core/
H A Dtest-string-to-number.cpp50 const jerry_char_t *strings[] = in HWTEST_F()
52 (const jerry_char_t *) "1", in HWTEST_F()
53 (const jerry_char_t *) "0.5", in HWTEST_F()
54 (const jerry_char_t *) "12345", in HWTEST_F()
55 (const jerry_char_t *) "1e-45", in HWTEST_F()
56 (const jerry_char_t *) "-2.5e+38", in HWTEST_F()
57 (const jerry_char_t *) "-2.5e38", in HWTEST_F()
58 (const jerry_char_t *) "- 2.5e+38", in HWTEST_F()
59 (const jerry_char_t *) "-2 .5e+38", in HWTEST_F()
60 (const jerry_char_t *) " in HWTEST_F()
[all...]
H A Dtest-api-strings.cpp26 const jerry_char_t is_equal_src[] = "var isEqual = function(a, b) { return (a === b); }; isEqual"; in strict_equals()
75 args[0] = jerry_create_string ((jerry_char_t *) ""); in HWTEST_F()
83 args[0] = jerry_create_string_from_utf8 ((jerry_char_t *) "\x73\x74\x72\x3a \xf0\x90\x90\x80"); in HWTEST_F()
84 args[1] = jerry_create_string ((jerry_char_t *) "\x73\x74\x72\x3a \xed\xa0\x81\xed\xb0\x80"); in HWTEST_F()
93 jerry_string_to_char_buffer (args[0], (jerry_char_t *) string_from_utf8, utf8_sz); in HWTEST_F()
94 jerry_string_to_char_buffer (args[1], (jerry_char_t *) string_from_cesu8, cesu8_sz); in HWTEST_F()
103 args[0] = jerry_create_string_from_utf8 ((jerry_char_t *) "\x73\x74\x72\x3a \xf0\x90\x90\x80"); in HWTEST_F()
104 args[1] = jerry_create_string ((jerry_char_t *) "\x73\x74\x72\x3a \xed\xa0\x81\xed\xb0\x80"); in HWTEST_F()
118 jerry_string_to_utf8_char_buffer (args[0], (jerry_char_t *) string_from_utf8_string, utf8_sz); in HWTEST_F()
119 jerry_string_to_utf8_char_buffer (args[1], (jerry_char_t *) string_from_cesu8_strin in HWTEST_F()
[all...]
H A Dtest-api-binary-operations-comparisons.cpp65 jerry_value_t obj1 = jerry_eval ((const jerry_char_t *) "o={x:1};o", 9, JERRY_PARSE_NO_OPTS); in HWTEST_F()
66 jerry_value_t obj2 = jerry_eval ((const jerry_char_t *) "o={x:1};o", 9, JERRY_PARSE_NO_OPTS); in HWTEST_F()
67 jerry_value_t err1 = jerry_create_error (JERRY_ERROR_SYNTAX, (const jerry_char_t *) "error"); in HWTEST_F()
77 jerry_create_string ((const jerry_char_t *) "example string"), in HWTEST_F()
78 jerry_create_string ((const jerry_char_t *) "example string"), in HWTEST_F()
81 jerry_create_string ((const jerry_char_t *) "example string"), in HWTEST_F()
85 jerry_create_string ((const jerry_char_t *) "example string"), in HWTEST_F()
89 jerry_create_string ((const jerry_char_t *) "example string"), in HWTEST_F()
109 jerry_create_string ((const jerry_char_t *) "example string"), in HWTEST_F()
118 jerry_create_string ((const jerry_char_t *) "exampl in HWTEST_F()
[all...]
H A Dtest-api-binary-operations-arithmetics.cpp85 jerry_value_t obj1 = jerry_eval ((const jerry_char_t *) "o={x:1};o", 9, JERRY_PARSE_NO_OPTS); in HWTEST_F()
86 jerry_value_t obj2 = jerry_eval ((const jerry_char_t *) "o={x:1};o", 9, JERRY_PARSE_NO_OPTS); in HWTEST_F()
87 jerry_value_t err1 = jerry_create_error (JERRY_ERROR_SYNTAX, (const jerry_char_t *) "error"); in HWTEST_F()
98 T_ARI (jerry_create_string ((const jerry_char_t *) "foo"), jerry_create_string ((const jerry_char_t *) "bar")), in HWTEST_F()
99 T_ARI (jerry_create_string ((const jerry_char_t *) "foo"), jerry_create_undefined ()), in HWTEST_F()
100 T_ARI (jerry_create_string ((const jerry_char_t *) "foo"), jerry_create_null ()), in HWTEST_F()
101 T_ARI (jerry_create_string ((const jerry_char_t *) "foo"), jerry_create_number (5.0)), in HWTEST_F()
102 T_ARI (jerry_create_undefined (), jerry_create_string ((const jerry_char_t *) "foo")), in HWTEST_F()
103 T_ARI (jerry_create_null (), jerry_create_string ((const jerry_char_t *) "fo in HWTEST_F()
[all...]
H A Dtest-api.cpp23 const jerry_char_t test_source[] = TEST_STRING_LITERAL (
84 (jerry_char_t *) buffer, in handler()
91 return jerry_create_string ((jerry_char_t *) "string from handler"); in handler()
103 return jerry_create_error (JERRY_ERROR_TYPE, (jerry_char_t *) "error"); in handler_throw_test()
157 jerry_value_t field_name = jerry_create_string ((jerry_char_t *) "value_field"); in handler_construct()
217 const jerry_char_t *magic_string_items[] =
220 (const jerry_char_t *) jerry_magic_string_ex_ ## NAME,
233 jerry_size_t sz = jerry_string_to_char_buffer (name, (jerry_char_t *) str_buf_p, 128); in foreach()
266 (jerry_char_t *) str_buf_p, in foreach()
285 jerry_size_t sz = jerry_string_to_char_buffer (name, (jerry_char_t *) str_buf_ in foreach_exception()
[all...]
H A Dtest-resource-name.cpp81 jerry_value_t name = jerry_create_string ((const jerry_char_t *) "resourceName"); in HWTEST_F()
99 jerry_value_t program = jerry_parse ((const jerry_char_t *) resource_1, in HWTEST_F()
101 (const jerry_char_t *) source_1, in HWTEST_F()
111 jerry_value_t resource1_name_value = jerry_create_string ((const jerry_char_t *) resource_1); in HWTEST_F()
130 program = jerry_parse ((const jerry_char_t *) resource_2, in HWTEST_F()
132 (const jerry_char_t *) source_2, in HWTEST_F()
142 jerry_value_t resource2_name_value = jerry_create_string ((const jerry_char_t *) resource_2); in HWTEST_F()
H A Dtest-api-binary-operations-instanceof.cpp82 jerry_value_t prototype_str = jerry_create_string ((const jerry_char_t *) "prototype"); in HWTEST_F()
119 T (jerry_create_string ((const jerry_char_t *) ""), jerry_create_string ((const jerry_char_t *) ""), true), in HWTEST_F()
120 T (jerry_create_string ((const jerry_char_t *) ""), jerry_create_number (5.0), true), in HWTEST_F()
121 T (jerry_create_number (5.0), jerry_create_string ((const jerry_char_t *) ""), true), in HWTEST_F()
126 T (jerry_create_object (), jerry_create_string ((const jerry_char_t *) ""), true) in HWTEST_F()
H A Dtest-objects-foreach.cpp38 jerry_value_t map_str = jerry_create_string ((const jerry_char_t *) "Map"); in test_container()
56 jerry_value_t array = jerry_eval ((const jerry_char_t *) array_str, sizeof (array_str) - 1, 0); in test_container()
65 jerry_value_t result = jerry_eval ((const jerry_char_t *) eval_str, sizeof (eval_str) - 1, 0); in test_container()
79 jerry_value_t result = jerry_eval ((const jerry_char_t *) eval_str, sizeof (eval_str) - 1, 0); in test_container()
119 jerry_value_t internal_prop_name = jerry_create_string ((const jerry_char_t *) "hidden_foo"); in test_internal_prop()
150 static const jerry_char_t strict_equal_source[] = "var x = function(a, b) {return a === b;}; x";
251 jerry_value_t property_name = jerry_create_string ((jerry_char_t *) "xyzzy"); in HWTEST_F()
H A Dtest-dataview.cpp101 jerry_value_t view1_str = jerry_create_string ((const jerry_char_t *) "view1"); in HWTEST_F()
102 jerry_value_t view2_str = jerry_create_string ((const jerry_char_t *) "view2"); in HWTEST_F()
110 const jerry_char_t set_src[] = "view1.setInt16 (12, 255)"; in HWTEST_F()
113 const jerry_char_t get_src[] = "view2.getInt16 (0)"; in HWTEST_F()
116 const jerry_char_t get_src_little_endian[] = "view2.getInt16 (0, true)"; in HWTEST_F()
H A Dtest-abort.cpp34 jerry_value_t value = jerry_create_string ((jerry_char_t *) "Abort run!"); in callback_func()
72 jerry_value_t callback_name = jerry_create_string ((jerry_char_t *) "callback"); in HWTEST_F()
82 const jerry_char_t inf_loop_code_src1[] = TEST_STRING_LITERAL ( in HWTEST_F()
108 const jerry_char_t inf_loop_code_src2[] = TEST_STRING_LITERAL ( in HWTEST_F()
144 jerry_value_t value = jerry_create_string ((jerry_char_t *) "Error description"); in HWTEST_F()
/third_party/jerryscript/jerry-core/include/
H A 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_flag_t flags);
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_length,
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_
[all...]
H A Djerryscript-snapshot.h56 jerry_value_t jerry_generate_snapshot (const jerry_char_t *resource_name_p, size_t resource_name_length,
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 resource_name_length,
60 const jerry_char_t *source_p, size_t source_size,
61 const jerry_char_t *args_p, size_t args_size,
74 jerry_char_t *lit_buf_p, size_t lit_buf_size, bool is_c_format);
H A Djerryscript-debugger.h54 typedef jerry_value_t (*jerry_debugger_wait_for_source_callback_t) (const jerry_char_t *resource_name_p,
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_size);
/third_party/jerryscript/targets/mbedos5/jerryscript-mbed/jerryscript-mbed-drivers/source/
H A 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 *) "Faile in DECLARE_CLASS_FUNCTION()
[all...]
H A 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()
H A 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/jerry-ext/module/
H A 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 NULL";
186 jerry_char_t* name_strin in jerryx_resolve_native_module()
[all...]
/third_party/jerryscript/tests/unit-ext/
H A 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_o in test_error_multiple_functions()
[all...]
H A 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()
H A 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/
H A 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 *) "I in jerryx_arg_transform_string_common()
[all...]
H A 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/
H A 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_p); 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_fil in main()
[all...]
/third_party/jerryscript/jerry-ext/handler/
H A 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()
H A 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()

Completed in 11 milliseconds

123