From 85b6e01bc256ea631d68e4ca2ca3be69a85e7cb2 Mon Sep 17 00:00:00 2001 From: Zidong Jiang Date: Tue, 13 Dec 2016 03:07:51 +0800 Subject: [PATCH] Stop inlining the ArrayBuffer helper functions. (#1484) Related issue #1468. JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com --- jerry-core/ecma/operations/ecma-arraybuffer-object.c | 4 ++-- jerry-core/ecma/operations/ecma-arraybuffer-object.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/jerry-core/ecma/operations/ecma-arraybuffer-object.c b/jerry-core/ecma/operations/ecma-arraybuffer-object.c index 556a643a8..479eeab4b 100644 --- a/jerry-core/ecma/operations/ecma-arraybuffer-object.c +++ b/jerry-core/ecma/operations/ecma-arraybuffer-object.c @@ -103,7 +103,7 @@ ecma_arraybuffer_new_object (ecma_length_t length) /**< length of the arraybuffe * * @return ecma_length_t, the length of the arraybuffer */ -inline ecma_length_t __attr_pure___ __attr_always_inline___ +ecma_length_t __attr_pure___ ecma_arraybuffer_get_length (ecma_object_t *object_p) /**< pointer to the ArrayBuffer object */ { JERRY_ASSERT (ecma_object_class_is (object_p, LIT_MAGIC_STRING_ARRAY_BUFFER_UL)); @@ -117,7 +117,7 @@ ecma_arraybuffer_get_length (ecma_object_t *object_p) /**< pointer to the ArrayB * * @return pointer to the data buffer */ -inline lit_utf8_byte_t * __attr_pure___ __attr_always_inline___ +lit_utf8_byte_t * __attr_pure___ ecma_arraybuffer_get_buffer (ecma_object_t *object_p) /**< pointer to the ArrayBuffer object */ { JERRY_ASSERT (ecma_object_class_is (object_p, LIT_MAGIC_STRING_ARRAY_BUFFER_UL)); diff --git a/jerry-core/ecma/operations/ecma-arraybuffer-object.h b/jerry-core/ecma/operations/ecma-arraybuffer-object.h index 51dedc31d..560696f12 100644 --- a/jerry-core/ecma/operations/ecma-arraybuffer-object.h +++ b/jerry-core/ecma/operations/ecma-arraybuffer-object.h @@ -34,9 +34,9 @@ ecma_op_create_arraybuffer_object (const ecma_value_t *, ecma_length_t); extern ecma_object_t * ecma_arraybuffer_new_object (ecma_length_t); extern lit_utf8_byte_t * -ecma_arraybuffer_get_buffer (ecma_object_t *) __attr_pure___ __attr_always_inline___; +ecma_arraybuffer_get_buffer (ecma_object_t *) __attr_pure___; extern ecma_length_t -ecma_arraybuffer_get_length (ecma_object_t *) __attr_pure___ __attr_always_inline___; +ecma_arraybuffer_get_length (ecma_object_t *) __attr_pure___; /** * @}