-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REALMC-11689: add arrow functions, typed array fixes, more date-time formats, ... #47
Conversation
Signed-off-by: Gabri <[email protected]> (cherry picked from commit fc7d812)
fixes dop251#306 Signed-off-by: Gabri <[email protected]> (cherry picked from commit b4db7b1)
…lution. Instead place a marker on stack and use it to count the number of args. Fixes dop251#311. Signed-off-by: Gabri <[email protected]> (cherry picked from commit c6e1779)
Signed-off-by: Gabri <[email protected]> (cherry picked from commit f87bc71)
…ixes dop251#312. Signed-off-by: Gabri <[email protected]> (cherry picked from commit c8bd2d4)
dop251#312. Signed-off-by: Gabri <[email protected]> (cherry picked from commit cfff9ec)
…#315. Signed-off-by: Gabri <[email protected]> (cherry picked from commit cd01c06)
Signed-off-by: Gabri <[email protected]> (cherry picked from commit 9cf7f40)
Signed-off-by: Gabri <[email protected]> (cherry picked from commit 67780b8)
Signed-off-by: Gabri <[email protected]> (cherry picked from commit b54ccd1)
Signed-off-by: Gabri <[email protected]> (cherry picked from commit ccd9128)
Signed-off-by: Gabri <[email protected]> (cherry picked from commit 4fb1f70)
* Implemented arrow functions. See dop251#304. * Define the name property for anonymous functions (including arrow functions) * Treat "arguments" as a lexical binding to match the latest specification Signed-off-by: Gabri <[email protected]> (cherry picked from commit 9981850)
…sts. Fixes dop251#323. Signed-off-by: Gabri <[email protected]> (cherry picked from commit f2b020d)
Signed-off-by: Gabri <[email protected]> (cherry picked from commit f3b82bd)
… support for additional datetime formats. Fixes dop251#281, fixes dop251#292. Signed-off-by: Gabri <[email protected]> (cherry picked from commit f605f7b)
…ixes dop251#327 Signed-off-by: Gabri <[email protected]> (cherry picked from commit f08849b)
Signed-off-by: Gabri <[email protected]> (cherry picked from commit 797091d)
Signed-off-by: Gabri <[email protected]> (cherry picked from commit 5513673)
@@ -25,7 +25,7 @@ func (muc TestNativeMemUsageChecker) NativeMemUsage(value interface{}) (uint64, | |||
func TestMemCheck(t *testing.T) { | |||
// This is the sum of property names allocated at each new (empty) scope | |||
var emptyFunctionScopeOverhead uint64 = 8 | |||
var functionStackOverhead uint64 = 30 | |||
var functionStackOverhead uint64 = 34 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is the only change I had to make
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just a question, which could be part of a separate ticket/PR since I noticed that some other existing objects such as mapIterObject
and setObject
don't have a MemUsage
function.
type baseJsFuncObject struct { | ||
baseFuncObject | ||
|
||
stash *stash | ||
prg *Program | ||
src string | ||
stash *stash | ||
prg *Program | ||
src string | ||
strict bool | ||
} | ||
|
||
type funcObject struct { | ||
baseJsFuncObject | ||
} | ||
|
||
type arrowFuncObject struct { | ||
baseJsFuncObject | ||
this Value | ||
newTarget Value | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[q] should we modify/add the MemUsage
function for these objects?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call, let me take a look!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually I will create a separate ticket so that I can first try to pull in the remaining changes from goja.
parser.ParseFile
dop251/goja#318.