mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
33 lines
1.3 KiB
C
33 lines
1.3 KiB
C
/* Copyright 2015 Samsung Electronics Co., Ltd.
|
|
* Copyright 2015 University of Szeged
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef LIT_LITERAL_STORAGE_H
|
|
#define LIT_LITERAL_STORAGE_H
|
|
|
|
#include "ecma-globals.h"
|
|
|
|
extern rcs_record_set_t rcs_lit_storage;
|
|
|
|
extern rcs_record_t *lit_storage_create_charset_literal (rcs_record_set_t *, const lit_utf8_byte_t *, lit_utf8_size_t);
|
|
extern rcs_record_t *lit_storage_create_magic_literal (rcs_record_set_t *, lit_magic_string_id_t);
|
|
extern rcs_record_t *lit_storage_create_magic_literal_ex (rcs_record_set_t *, lit_magic_string_ex_id_t);
|
|
extern rcs_record_t *lit_storage_create_number_literal (rcs_record_set_t *, ecma_number_t);
|
|
|
|
extern uint32_t lit_storage_count_literals (rcs_record_set_t *);
|
|
extern void lit_storage_dump_literals (rcs_record_set_t *);
|
|
|
|
#endif /* !LIT_LITERAL_STORAGE_H */
|