aboutsummaryrefslogtreecommitdiff
path: root/jerry-core/ecma/base/ecma-gc.h
AgeCommit message (Collapse)Author
2017-01-24Organize public and internal parts of memory management (#1539)László Langó
* Introduced new 'jmem.h' for public part. * Removed obsolete headers JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
2016-12-16Add parameter names to function declarations. (#1498)Tilmann Scheller
It's generally considered a bad programming practice to have function declarations without parameter names. This is another legacy from the early days of the project. Fix in one go to minimize history disruption. Used a custom clang-tidy check to create the bulk of the change. JerryScript-DCO-1.0-Signed-off-by: Tilmann Scheller t.scheller@samsung.com
2016-12-16Remove redundant extern keywords from function declarations/definitions. (#1495)Tilmann Scheller
Extern keywords on function declarations/definitions provide no additional value since function declarations/definitions default to external linkage in C99, e.g. removing them won't change the semantics of the program. The extern keywords were essentially a legacy from the early days of the project. This commit cleans this up across the whole codebase in one go to minimize history disruption. The bulk of the changes in this commit were produced by a custom clang-tidy checker. Note that variables declarations carrying the extern keyword are untouched by this commit since there the presence of the keyword actually has an impact on the semantics of the program. JerryScript-DCO-1.0-Signed-off-by: Tilmann Scheller t.scheller@samsung.com
2016-12-08Streamline copyright notices across the codebase. (#1473)Tilmann Scheller
Since the project is now hosted at the JS Foundation we can move to unified copyright notices for the project. Starting with this commit all future contributions to the project should only carry the following copyright notice (except for third-party code which requires copyright information to be preserved): "Copyright JS Foundation and other contributors, http://js.foundation" (without the quotes) This avoids cluttering the codebase with contributor-specific copyright notices which have a higher maintenance overhead and tend to get outdated quickly. Also dropping the year from the copyright notices helps to avoid yearly code changes just to update the copyright notices. Note that each contributor still retains full copyright ownership of his/her contributions and the respective authorship is tracked very accurately via Git. JerryScript-DCO-1.0-Signed-off-by: Tilmann Scheller t.scheller@samsung.com
2016-08-01Move all remaining globals to the global context.Zoltan Herczeg
Zero out all globals (and remove unnecessary init() functions). Move snapshot globals to a temporary stack variable. JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2016-07-20More gc-friendly property hashmap allocation.István Kádár
- New allocator is added that returns null on out of memory, property hasmap create uses this allocator for now. - Property hashmaps of objects are removed durring a high severity gc. Follow up patch is in progress. JerryScript-DCO-1.0-Signed-off-by: István Kádár ikadar@inf.u-szeged.hu
2016-06-13Rename try_give_memory_back to a better free_unused_memory.Zoltan Herczeg
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
2016-05-20Change 'mem' namspace to 'jmem'László Langó
The 'mem_' prefix is too general, so it might clash with symbols in other libraries. Renamed the directory, file, funtion and type names. Related issue: #1052 JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
2016-04-13Doc comment maintenanceAkos Kiss
Fixed doc comments issues: * Fixed mistyped param doc comments (`/**<` is OK, `/** <` is not). * Put special characters (e.g., pipe, backslash, etc.) in quotes, as they can confuse doxygen and it will print lots of various warnings. For the sake of completeness and consistent style, also quote some special characters in re-bytecode.h * Added missing `@{`s, removed extra `@}`s. * Turned `/*` comments to `/**<` doc comments. Ensured same style for doc groups everywhere: * Where `\addtogroup`, `@{`, and `@}` doxygen commands are used, the order to be followed is: license, `#ifndef` guards (in headers), includes, `\addtogroup` and `@{`, main code content, `@}`, `#endif` guards (in headers). * Multiple `\addtogroup`s or multiple `@}`s should be in the same doc comment. * First `\addtogroup` should be on the very first line of a doc comment, i.e., `/** \addtogroup`. JerryScript-DCO-1.0-Signed-off-by: Akos Kiss akiss@inf.u-szeged.hu
2015-09-28Remove argument names in function prototypes, declared in headers; fix '*' ↵Ruben Ayrapetyan
alignment in headers. JerryScript-DCO-1.0-Signed-off-by: Ruben Ayrapetyan r.ayrapetyan@samsung.com
2015-02-18Changing garbage collector to non-generational.Ruben Ayrapetyan
2015-02-17Renaming core -> jerry-core.Ruben Ayrapetyan