Saebom Kim
6d4ed41488
1. When 'writable' property of array length turned into 'false', convert it into NonFastMode
...
2. If RegExp's source needs escapeSlash process, it should count the number of leading backSlashs
Signed-off-by: Saebom Kim sae-bom.kim@samsung.com
2017-04-05 19:28:08 +09:00
seonghyun kim
c88d71bfcc
1. call eval function should consider with scope
...
2. when function name explicitly declared in its scope, initial value of function name is undefined
3. Function ctor should consider comments correctly
4. evaluate MemberExpression correctly
5. reset RegExpObject::lastIndex correctly
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-04-04 17:22:32 +09:00
seonghyun kim
ee1dcad092
1. revise DeclareFunctionExpression as CreateFunction
...
2. evalute function decl in catch correctly
3. give receiver of get, set in interpreter correctly
4. give right StackTrace information in with, try-catch for user
5. fix bug in argument object around get, set variable
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-03-31 21:30:01 +09:00
seonghyun kim
60ebc7c688
1. escargot should throw error when writing setLastIndex. if setLastIndex of RegexpObject is setted as non-writable
...
2. treat series of "if (true) function() {}" correctly
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-03-22 13:44:03 +09:00
Youngil Choi
e02af7daf8
Add License Clauses
...
Signed-off-by: Youngil Choi <duddlf.choi@samsung.com>
2017-03-10 18:06:20 +09:00
seonghyun kim
2bafeb2750
1. improve StringBuilder
...
2. prevent memory leak from RopeString
3. optimize GetGlobalObject, SetGlobalObject
4. move FunctionObject::isConsturctor to CodeBlock
5. optimize esprima_cpp
6. optimize String
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-03-06 21:58:40 +09:00
seonghyun kim
132f7f5316
1. implement Latin1String for reducing memory usage
...
2. add Makefile as dependency of make
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-02-03 19:06:15 +09:00
seonghyun kim
a8754aac97
Merge Object::m_rareData with Object::m_prototype
...
Object::m_rareData share space with Object::m_prototype
- ObjectRareData inherits PointerValue
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-02-02 12:17:04 +09:00
Junyoung Cho
08c380c01b
Fix error causing by older version gcc to support tizen_obs_arm build
2017-01-20 18:45:14 +09:00
seonghyun kim
dbbbdf2374
allocate almost gc objects as typed gc object
...
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-01-18 20:28:45 +09:00
seonghyun kim
6dc9f5dd61
RegexMatchResult should not require gc allocator
...
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2017-01-12 12:34:30 +09:00
Eunji Jeong
519403ed01
Implement & fix string builtins and refactor RegExpObject
2017-01-03 17:20:59 +09:00
Eunji Jeong
709b364547
Pass test262 Object.prototype.defineOwnProperty tests except for arguments
2017-01-03 12:07:54 +09:00
Junyoung Cho
f67a43724d
Fix RegExp builtin bug(15.10)
2017-01-02 22:17:57 +09:00
Junyoung Cho
ac9b7b10f5
rename:
...
ObjectPropertyDescriptor->ObjectStructurePropertyDescriptor
ObjectPropertyDescriptorForDefineProperty->ObjectPropertyDescriptor
2016-12-19 20:52:18 +09:00
seonghyun kim
61eb45b0c7
1. optimize String buffer acquire functions
...
2. implment String.prototype.toLowerCase, toUpperCase
3. implment Array.prototype.sort
4. fix codeBlock bugs
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-12-15 11:37:25 +09:00
seonghyun kim
c22735e9b3
implement String.prototype.match, parseInt
...
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-12-14 18:55:05 +09:00
seonghyun kim
64a56ae946
1. re-implement Object::defineOwnProperty
...
2. implement String.prototype.match, replace
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-12-14 16:17:11 +09:00
Junyoung Cho
2e20b9d9ea
Implement Math.random, floor, ceil, log.
...
Remove argc guard in RegExp builtin functions.
Support only parsing for ES6 Sticky, Unicode option.
2016-12-14 14:54:57 +09:00
Junyoung Cho
5413d914fc
Implement RegExp.prototype.test. Modify isASCIIString->hasASCIIContent in checking ASCII Contents
2016-12-14 13:14:52 +09:00
seonghyun kim
eb18661b6e
1. implement for (var i in ...)
...
2. implement parse RegExp in script
Signed-off-by: seonghyun kim <sh8281.kim@samsung.com>
2016-12-14 10:51:11 +09:00
Junyoung Cho
f5dedf5c66
Apply make tidy
2016-12-13 19:13:33 +09:00
Junyoung Cho
1e0c0aff4c
Support RegExp Object and inner method
...
* Updated third_party/yarr to diet ver.
2016-12-13 19:10:05 +09:00