Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(595)

Issue 7759049: Optimization: Move the main state machine code into a separate function. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 3 months ago by usrbincc
Modified:
13 years, 2 months ago
Reviewers:
peterhal, slightlylate, arv
CC:
traceur-compiler-reviews_googlegroups.com
Base URL:
https://code.google.com/p/traceur-compiler/@master
Visibility:
Public.

Description

Optimization: Move the main state machine code into a separate function. This allows V8 to optimize better, since the separated function doesn't contain a try-catch. BUG=None TEST=None

Patch Set 1 #

Patch Set 2 : Merge in latest code review changes from previous patch. #

Patch Set 3 : Rename $G to prevent potential clash with generated vars. #

Total comments: 4

Patch Set 4 : Rename 'generatorWrap' param '$G' to 'generator'. #

Patch Set 5 : Move 'addIterator' call into 'generatorWrap'. #

Total comments: 1

Patch Set 6 : AsyncTransformer: Use parseStatement for 'var $continuation = ...'. #

Total comments: 1

Patch Set 7 : Fix indentation of 'return' in 'generateMachineInnerFunction'. #

Patch Set 8 : Use parseStatement for 'return this.innerFunction(...);'. #

Patch Set 9 : Update comments to match generated code. #

Patch Set 10 : Merge with master at dae99ab971c76df5; now diffs against that. #

Patch Set 11 : Remove unused function imports. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+90 lines, -61 lines) Patch
M src/codegeneration/generator/AsyncTransformer.js View 1 2 3 4 5 2 chunks +17 lines, -5 lines 0 comments Download
M src/codegeneration/generator/CPSTransformer.js View 1 2 3 4 5 6 7 8 9 10 5 chunks +42 lines, -19 lines 0 comments Download
M src/codegeneration/generator/GeneratorTransformer.js View 1 2 3 4 5 6 7 8 9 10 5 chunks +27 lines, -37 lines 0 comments Download
M src/codegeneration/generator/State.js View 1 chunk +2 lines, -0 lines 0 comments Download
M src/runtime/runtime.js View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M src/syntax/PredefinedName.js View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 5
usrbincc
Note: this diff is against the patch series: https://codereview.appspot.com/7761043 I get about a 36% speedup ...
13 years, 2 months ago (2013-03-18 20:34:41 UTC) #1
arv
The generatorWrap function has $G in it. Now that it does not embed any user ...
13 years, 2 months ago (2013-03-18 21:32:23 UTC) #2
arv
I really like this change. It is nice to extract part of the complications to ...
13 years, 2 months ago (2013-03-18 21:34:36 UTC) #3
usrbincc
Experimenting with patch set series. Git and rietveld were made for each other. There doesn't ...
13 years, 2 months ago (2013-03-19 19:39:23 UTC) #4
arv
13 years, 2 months ago (2013-03-19 19:52:38 UTC) #5
LGTM

Committed as 61695efebd562b7ceafc9a20c3f380c5666d4fc8
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b