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

Issue 9639011: Added support functions for using Literal keys in a HashMap. (Closed)

Created:
8 years, 9 months ago by Sven Panne
Modified:
8 years, 9 months ago
Reviewers:
rossberg
CC:
v8-dev
Visibility:
Public.

Description

Added support functions for using Literal keys in a HashMap. This is a preparatory step for using the HashMap clas with Literal keys in the full code generator. It removes some duplicated code already and removes the need for 2 HashMaps at each use, which was overly complicated. Removed one dead function on the way. Committed: https://code.google.com/p/v8/source/detail?r=10973

Patch Set 1 #

Total comments: 4

Patch Set 2 : Review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+45 lines, -96 lines) Patch
M src/ast.h View 1 3 chunks +12 lines, -5 lines 0 comments Download
M src/ast.cc View 1 2 chunks +29 lines, -45 lines 0 comments Download
M src/parser.cc View 3 chunks +4 lines, -46 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Sven Panne
8 years, 9 months ago (2012-03-08 15:05:07 UTC) #1
rossberg
lgtm https://chromiumcodereview.appspot.com/9639011/diff/1/src/ast.cc File src/ast.cc (right): https://chromiumcodereview.appspot.com/9639011/diff/1/src/ast.cc#newcode1148 src/ast.cc:1148: } else { Nit: indentation. https://chromiumcodereview.appspot.com/9639011/diff/1/src/ast.h File src/ast.h ...
8 years, 9 months ago (2012-03-08 16:51:39 UTC) #2
Sven Panne
8 years, 9 months ago (2012-03-09 08:24:46 UTC) #3
https://chromiumcodereview.appspot.com/9639011/diff/1/src/ast.cc
File src/ast.cc (right):

https://chromiumcodereview.appspot.com/9639011/diff/1/src/ast.cc#newcode1148
src/ast.cc:1148: } else {
On 2012/03/08 16:51:39, rossberg wrote:
> Nit: indentation.

Done.

https://chromiumcodereview.appspot.com/9639011/diff/1/src/ast.h
File src/ast.h (right):

https://chromiumcodereview.appspot.com/9639011/diff/1/src/ast.h#newcode1252
src/ast.h:1252: Handle<String> s2 =
reinterpret_cast<Literal*>(literal2)->ToString();
On 2012/03/08 16:51:39, rossberg wrote:
> Could be static_cast.

Although the real difference between those casts in the presence of void* is not
totally clear to me, I'll switch to static_cast.

Powered by Google App Engine
This is Rietveld 408576698