Fix the missing inline specifier if compiling with -fPIC (#1590)

JerryScript-DCO-1.0-Signed-off-by: Gabor Loki loki@inf.u-szeged.hu
This commit is contained in:
Gabor Loki
2017-02-17 12:41:01 +01:00
committed by Zoltan Herczeg
parent 4727202c8e
commit 6739463c1e
4 changed files with 10 additions and 10 deletions
+2 -2
View File
@@ -238,7 +238,7 @@ ecma_number_get_sign_field (ecma_number_t num) /**< ecma-number */
fraction is filled with anything but not all zero bits, fraction is filled with anything but not all zero bits,
* false - otherwise * false - otherwise
*/ */
bool __attr_always_inline___ inline bool __attr_always_inline___
ecma_number_is_nan (ecma_number_t num) /**< ecma-number */ ecma_number_is_nan (ecma_number_t num) /**< ecma-number */
{ {
bool is_nan = (num != num); bool is_nan = (num != num);
@@ -291,7 +291,7 @@ ecma_number_make_infinity (bool sign) /**< true - for negative Infinity,
* @return true - if sign bit of ecma-number is set * @return true - if sign bit of ecma-number is set
* false - otherwise * false - otherwise
*/ */
bool __attr_always_inline___ inline bool __attr_always_inline___
ecma_number_is_negative (ecma_number_t num) /**< ecma-number */ ecma_number_is_negative (ecma_number_t num) /**< ecma-number */
{ {
JERRY_ASSERT (!ecma_number_is_nan (num)); JERRY_ASSERT (!ecma_number_is_nan (num));
+2 -2
View File
@@ -1195,7 +1195,7 @@ ecma_substring_copy_to_utf8_buffer (const ecma_string_t *string_desc_p, /**< ecm
* It is the caller's responsibility to make sure that the string fits in the buffer. * It is the caller's responsibility to make sure that the string fits in the buffer.
* Check if the size of the string is equal with the size of the buffer. * Check if the size of the string is equal with the size of the buffer.
*/ */
void __attr_always_inline___ inline void __attr_always_inline___
ecma_string_to_utf8_bytes (const ecma_string_t *string_desc_p, /**< ecma-string descriptor */ ecma_string_to_utf8_bytes (const ecma_string_t *string_desc_p, /**< ecma-string descriptor */
lit_utf8_byte_t *buffer_p, /**< destination buffer pointer lit_utf8_byte_t *buffer_p, /**< destination buffer pointer
* (can be NULL if buffer_size == 0) */ * (can be NULL if buffer_size == 0) */
@@ -1575,7 +1575,7 @@ ecma_compare_ecma_strings_longpath (const ecma_string_t *string1_p, /* ecma-stri
* @return true - if strings are equal; * @return true - if strings are equal;
* false - otherwise. * false - otherwise.
*/ */
bool __attr_always_inline___ inline bool __attr_always_inline___
ecma_compare_ecma_strings (const ecma_string_t *string1_p, /* ecma-string */ ecma_compare_ecma_strings (const ecma_string_t *string1_p, /* ecma-string */
const ecma_string_t *string2_p) /* ecma-string */ const ecma_string_t *string2_p) /* ecma-string */
{ {
+2 -2
View File
@@ -400,7 +400,7 @@ jmem_heap_gc_and_alloc_block (const size_t size, /**< required memory size
* @return NULL, if the required memory is 0 * @return NULL, if the required memory is 0
* pointer to allocated memory block, otherwise * pointer to allocated memory block, otherwise
*/ */
void * __attr_hot___ __attr_always_inline___ inline void * __attr_hot___ __attr_always_inline___
jmem_heap_alloc_block (const size_t size) /**< required memory size */ jmem_heap_alloc_block (const size_t size) /**< required memory size */
{ {
return jmem_heap_gc_and_alloc_block (size, false); return jmem_heap_gc_and_alloc_block (size, false);
@@ -416,7 +416,7 @@ jmem_heap_alloc_block (const size_t size) /**< required memory size */
* also NULL, if the allocation has failed * also NULL, if the allocation has failed
* pointer to the allocated memory block, otherwise * pointer to the allocated memory block, otherwise
*/ */
void * __attr_hot___ __attr_always_inline___ inline void * __attr_hot___ __attr_always_inline___
jmem_heap_alloc_block_null_on_error (const size_t size) /**< required memory size */ jmem_heap_alloc_block_null_on_error (const size_t size) /**< required memory size */
{ {
return jmem_heap_gc_and_alloc_block (size, true); return jmem_heap_gc_and_alloc_block (size, true);
+4 -4
View File
@@ -123,7 +123,7 @@ re_bytecode_list_insert (re_bytecode_ctx_t *bc_ctx_p, /**< RegExp bytecode conte
* *
* @return ecma character * @return ecma character
*/ */
ecma_char_t __attr_always_inline___ inline ecma_char_t __attr_always_inline___
re_get_char (uint8_t **bc_p) /**< pointer to bytecode start */ re_get_char (uint8_t **bc_p) /**< pointer to bytecode start */
{ {
ecma_char_t chr = *((ecma_char_t *) *bc_p); ecma_char_t chr = *((ecma_char_t *) *bc_p);
@@ -136,7 +136,7 @@ re_get_char (uint8_t **bc_p) /**< pointer to bytecode start */
* *
* @return current RegExp opcode * @return current RegExp opcode
*/ */
re_opcode_t __attr_always_inline___ inline re_opcode_t __attr_always_inline___
re_get_opcode (uint8_t **bc_p) /**< pointer to bytecode start */ re_get_opcode (uint8_t **bc_p) /**< pointer to bytecode start */
{ {
uint8_t bytecode = **bc_p; uint8_t bytecode = **bc_p;
@@ -149,7 +149,7 @@ re_get_opcode (uint8_t **bc_p) /**< pointer to bytecode start */
* *
* @return opcode parameter * @return opcode parameter
*/ */
uint32_t __attr_always_inline___ inline uint32_t __attr_always_inline___
re_get_value (uint8_t **bc_p) /**< pointer to bytecode start */ re_get_value (uint8_t **bc_p) /**< pointer to bytecode start */
{ {
uint32_t value = *((uint32_t *) *bc_p); uint32_t value = *((uint32_t *) *bc_p);
@@ -162,7 +162,7 @@ re_get_value (uint8_t **bc_p) /**< pointer to bytecode start */
* *
* @return bytecode length (unsigned integer) * @return bytecode length (unsigned integer)
*/ */
uint32_t __attr_pure___ __attr_always_inline___ inline uint32_t __attr_pure___ __attr_always_inline___
re_get_bytecode_length (re_bytecode_ctx_t *bc_ctx_p) /**< RegExp bytecode context */ re_get_bytecode_length (re_bytecode_ctx_t *bc_ctx_p) /**< RegExp bytecode context */
{ {
return ((uint32_t) (bc_ctx_p->current_p - bc_ctx_p->block_start_p)); return ((uint32_t) (bc_ctx_p->current_p - bc_ctx_p->block_start_p));