My favorites | Sign in
Project Home Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
To use frog:

1) Frog is now included in the checkout of the public repo of the bleeding_edge
branch. The code will be located under $DART/frog.

Note that $DART/frog/ is a separate dependency in 'all.deps/DEPS', for this
reason changes in the frog directory will have to be submitted separately
from changes to the rest of the dart repo.

(git users): If you'd prefer to use git, you can do the following to have a
git setup for the frog subdirectory:
$ rm -rf $DART/frog/
$ cd $DART
$ git svn clone -rHEAD https://dart.googlecode.com/svn/experimental/frog frog

2) Make sure you have 'node' in your path (http://nodejs.org/, and
https://github.com/joyent/node/wiki/Installation for how to install)


BEFORE YOU SUBMIT


Before you submit, you should:

1) Run the html tests:

$ ./frog.py --html -- tests/htmltest.dart
$ ./frog.py --html -- tests/canvastest.dart

These will open a browser -- verify in the console that no errors
happened.

2) Run the presubmit script:

$ ./presubmit.py

3) Make sure to include any changes to frogsh in your commit.



Details:


You can use build.py and test.py (that are run by the presubmit script):

$ ../tools/build.py --mode=release,debug
$ ../tools/test.py --report -t 5 -p color --mode=release,debug frog

The 'release' version of frog is the self-hosted frog.
The 'debug' version of frog is frog running on the VM.

To build the self-hosted compiler called frogsh (for frog self-hosted), run:

$ ./frog.py --js_out=frogsh -- frog.dart

(this will make frogsh the same as
$DART/frog/$OUTDIR_PREFIX/Release_ia32/dart_bin)

To run the self-hosted compiler, you can just type frogsh.

$ ./frogsh tests/hello.dart
This should print 'hello world'.

Change log

r1141 by ngeoff...@google.com on Nov 3, 2011   Diff
Frog changes (in experimental) to get frog
integrated into the test infrastructure.
Review URL:
http://codereview.chromium.org//8437081
Go to: 

Older revisions

r834 by sigm...@google.com on Oct 27, 2011   Diff
Update README.txt (build the vm first)

Review URL: http://codereview.chromium
.org//8399040
r830 by a...@google.com on Oct 27, 2011   Diff
Typo.

Review URL: http://codereview.chromium
.org//8363051
r829 by a...@google.com on Oct 27, 2011   Diff
Rewrite README.txt and add frogsh size
metric.

Review URL: http://codereview.chromium
.org//8399037
All revisions of this file

File info

Size: 1734 bytes, 62 lines
Powered by Google Project Hosting