Skip to content
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

Fix terminology of snapshot saving in literals #953

Merged

Conversation

akosthekiss
Copy link
Member

In case of literals, snapshot saving is incorrectly named dumping.
Elsewhere in the code, 'dump' functions output debug data (even
literals have a lit_dump_literals debug function). To help
distinction and to align terminologies, snapshot saving functions
of literals are also re-named 'save'.

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss [email protected]

@akosthekiss akosthekiss added the style Related to coding style label Mar 9, 2016
@zherczeg
Copy link
Member

I am ok with this patch, but could it wait until #948 landed, and do a rebase after?

@akosthekiss
Copy link
Member Author

@zherczeg What's the time frame for that? If that takes longer, why not the other way around?

@LaszloLango
Copy link
Contributor

@akiss77, the term dump_snapshot is used in main-unix.c as well.

@akosthekiss
Copy link
Member Author

@LaszloLango You are right, dump is even used in the name of a command line switch. (Which is a pitty, since the public api calls it 'save', too.) I've missed that, focusing only on jerry-core.

I'm not sure how to deal with that since I know at least about iot.js using the command line switch. (Ofc, we can decide to rename everything here, including the command line switch, and adapt iot-js to that when it gets rebased to latest jerry.) Opinions?

@LaszloLango
Copy link
Contributor

I think we should rename everywhere, but the http://samsung.github.io/jerryscript/benchmark/benchmark.html?show=sum site use snapshot somehow. It may use only the load. AFAIK @wateret maintains the benchmark.

@akosthekiss
Copy link
Member Author

Updated (changed terminology in main-unix.cpp as well).

In case of literals and in main, snapshot saving is incorrectly
named dumping. Elsewhere in the code, 'dump' functions output debug
data (even literals have a `lit_dump_literals` debug function). To
help distinction and to align terminologies, snapshot saving
functions of literals and command line options of main are also
re-named 'save'.

JerryScript-DCO-1.0-Signed-off-by: Akos Kiss [email protected]
@akosthekiss
Copy link
Member Author

Now that #948 got landed, what about this PR? (Rebased, resolved conflicts, pushed.)

@LaszloLango
Copy link
Contributor

LGTM

1 similar comment
@zherczeg
Copy link
Member

LGTM

@akosthekiss akosthekiss merged commit ea2f0e4 into jerryscript-project:master Mar 17, 2016
@akosthekiss akosthekiss deleted the lit-snapshot-save branch March 17, 2016 07:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
style Related to coding style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants