Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(98)

Issue 491006: Add "lineprocessor" sample program (Closed)

Created:
11 years ago by Peter Rybin
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add "lineprocessor" sample program Committed: http://code.google.com/p/v8/source/detail?r=3637

Patch Set 1 #

Patch Set 2 : clean up #

Patch Set 3 : drop build file #

Patch Set 4 : add TODO #

Total comments: 16

Patch Set 5 : support main cycle in C++ and in JS #

Patch Set 6 : documentation #

Patch Set 7 : get newer version of the sample #

Total comments: 16

Patch Set 8 : follow codereview #

Unified diffs Side-by-side diffs Delta from patch set Stats (+429 lines, -2 lines) Patch
M SConstruct View 5 6 2 chunks +2 lines, -2 lines 0 comments Download
A samples/lineprocessor.cc View 1 2 3 4 5 6 7 1 chunk +427 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Peter Rybin
Hi Sorren This is a sample of debuggable standalone V8 application. I more-or-less copy-pasted it ...
11 years ago (2009-12-10 18:47:54 UTC) #1
Søren Thygesen Gjesse
Maybe change the name of this to jsdebugging or something like that. You should also ...
11 years ago (2009-12-11 11:20:01 UTC) #2
Peter Rybin
On 2009/12/11 11:20:01, Søren Gjesse wrote: > Maybe change the name of this to jsdebugging ...
11 years ago (2009-12-13 23:18:32 UTC) #3
Peter Rybin
Hi Soren Thanks for review. I redid the program so that it supports both main ...
11 years ago (2009-12-14 00:39:22 UTC) #4
Peter Rybin
Hi Søren I finally redid sample. It uses feature from Issue #549 Peter
10 years, 11 months ago (2010-01-17 00:06:45 UTC) #5
Søren Thygesen Gjesse
LGTM http://codereview.chromium.org/491006/diff/9001/9003 File samples/lineprocessor.cc (right): http://codereview.chromium.org/491006/diff/9001/9003#newcode41 samples/lineprocessor.cc:41: * script. The script is specified in command ...
10 years, 11 months ago (2010-01-18 11:10:22 UTC) #6
Peter Rybin
10 years, 11 months ago (2010-01-18 16:44:50 UTC) #7
http://codereview.chromium.org/491006/diff/9001/9003
File samples/lineprocessor.cc (right):

http://codereview.chromium.org/491006/diff/9001/9003#newcode41
samples/lineprocessor.cc:41: * script. The script is specified in command line
parameters.
On 2010/01/18 11:10:22, Søren Gjesse wrote:
> in -> with/by?

Done.

http://codereview.chromium.org/491006/diff/9001/9003#newcode43
samples/lineprocessor.cc:43: * Main cycle of the program should sequentially
read lines from standard input
On 2010/01/18 11:10:22, Søren Gjesse wrote:
> Main cycle -> The main cycle
> 
> should -> will

Done.

http://codereview.chromium.org/491006/diff/9001/9003#newcode44
samples/lineprocessor.cc:44: * and processes them and print to standard output
until input closes.
On 2010/01/18 11:10:22, Søren Gjesse wrote:
> and processes -> , process

Done.

http://codereview.chromium.org/491006/diff/9001/9003#newcode47
samples/lineprocessor.cc:47: * 1. Main cycle is on C++ side. Program should be
run with --main-cycle-in-cpp
On 2010/01/18 11:10:22, Søren Gjesse wrote:
> Main cycle -> The main cycle

Done.

http://codereview.chromium.org/491006/diff/9001/9003#newcode48
samples/lineprocessor.cc:48: * option. Script must declare function named
"ProcessLine". Main cycle in C++
On 2010/01/18 11:10:22, Søren Gjesse wrote:
> declare function -> declare a function
> 
> Main cycle -> The main cycle

Done.

http://codereview.chromium.org/491006/diff/9001/9003#newcode49
samples/lineprocessor.cc:49: * reads line and calls this function for processing
every time.
On 2010/01/18 11:10:22, Søren Gjesse wrote:
> reads line -> read lines

Done.

http://codereview.chromium.org/491006/diff/9001/9003#newcode57
samples/lineprocessor.cc:57: * 2. Main cycle is on JavaScript side. Program
should be run with
On 2010/01/18 11:10:22, Søren Gjesse wrote:
> Main cycle -> The main cycle
> 
> on JavaScript side -> in JavaScript

Done.

http://codereview.chromium.org/491006/diff/9001/9003#newcode397
samples/lineprocessor.cc:397: // The callback that is invoked by v8 whenever the
JavaScript 'print'
On 2010/01/18 11:10:22, Søren Gjesse wrote:
> Please change this comment to describe ReadLine.

Done.

Powered by Google App Engine
This is Rietveld 408576698