[ES2015 profile]add TypedArray intrinsic object (#1507)

* add %TypedArray% intrinsic object
* implement Int8Array
* will implement other types and prototype functions
in the following patches.

JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
This commit is contained in:
Zidong Jiang
2017-01-13 18:04:34 +08:00
committed by László Langó
parent 177c30de78
commit adfe61b4ed
43 changed files with 2327 additions and 119 deletions
@@ -16,6 +16,7 @@
#ifndef ECMA_ARRAYBUFFER_OBJECT_H
#define ECMA_ARRAYBUFFER_OBJECT_H
#ifndef CONFIG_DISABLE_ARRAYBUFFER_BUILTIN
#include "ecma-globals.h"
/** \addtogroup ecma ECMA
@@ -32,15 +33,20 @@ ecma_op_create_arraybuffer_object (const ecma_value_t *, ecma_length_t);
* Helper functions for arraybuffer.
*/
ecma_object_t *
ecma_arraybuffer_new_object (ecma_length_t);
ecma_arraybuffer_new_object (ecma_length_t lengh);
ecma_object_t *
ecma_arraybuffer_new_object_by_clone_arraybuffer (ecma_object_t *src_p, ecma_length_t offset);
lit_utf8_byte_t *
ecma_arraybuffer_get_buffer (ecma_object_t *) __attr_pure___;
ecma_arraybuffer_get_buffer (ecma_object_t *obj_p) __attr_pure___;
ecma_length_t
ecma_arraybuffer_get_length (ecma_object_t *) __attr_pure___;
ecma_arraybuffer_get_length (ecma_object_t *obj_p) __attr_pure___;
bool
ecma_is_arraybuffer (ecma_value_t val);
/**
* @}
* @}
*/
#endif /* !CONFIG_DISABLE_ARRAYBUFFER_BUILTIN */
#endif /* !ECMA_ARRAYBUFFER_OBJECT_H */