Add literal storage, literal_t type and functions for its processing.

JerryScript-DCO-1.0-Signed-off-by: Evgeny Gavrin e.gavrin@samsung.com
JerryScript-DCO-1.0-Signed-off-by: Andrey Shitov a.shitov@samsung.com
This commit is contained in:
Andrey Shitov
2015-06-10 17:16:14 +03:00
parent 528a333e17
commit 340a9ef002
11 changed files with 1649 additions and 0 deletions
+12
View File
@@ -214,4 +214,16 @@ extern void __noreturn jerry_fatal (jerry_fatal_code_t code);
#define JERRY_MIN(v1, v2) ((v1 < v2) ? v1 : v2)
#define JERRY_MAX(v1, v2) ((v1 < v2) ? v2 : v1)
/**
* Placement new operator (constructs an object on a pre-allocated buffer)
*
* Our version of the libc library doesn't support calling the constructors and destructors of the static variables.
* It is proposed to use placement new operator. Generally it is available via #include <new>,
* To fix the unavailability of the header in some configurations placement new operator is implemented here.
*/
inline void* operator new (size_t, void* where)
{
return where;
} /* operator new */
#endif /* !JERRY_GLOBALS_H */