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

Issue 10897010: Introduce some predicates over variable modes. (Closed)

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

Description

Introduce some predicates over variable modes. These should be handy when we add more declaration forms for Harmony. R=svenpanne@chromium.org BUG= Committed: https://code.google.com/p/v8/source/detail?r=12404

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -54 lines) Patch
M src/arm/full-codegen-arm.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M src/ast.h View 1 chunk +1 line, -4 lines 0 comments Download
M src/hydrogen.cc View 3 chunks +6 lines, -7 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M src/mips/full-codegen-mips.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M src/parser.h View 1 chunk +1 line, -1 line 0 comments Download
M src/parser.cc View 3 chunks +4 lines, -8 lines 0 comments Download
M src/scopes.cc View 2 chunks +2 lines, -6 lines 0 comments Download
M src/v8globals.h View 2 chunks +22 lines, -2 lines 2 comments Download
M src/variables.h View 1 chunk +2 lines, -9 lines 0 comments Download
M src/variables.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
rossberg
8 years, 3 months ago (2012-08-28 16:08:49 UTC) #1
Sven Panne
LGTM with a nit and a remark: In general, I like this CL, the call ...
8 years, 3 months ago (2012-08-29 06:24:24 UTC) #2
rossberg
8 years, 3 months ago (2012-08-29 09:23:19 UTC) #3
We use the enum in a switch in a number of places, which cannot be reconciled
with abstraction into a class in C++. So that would be too much hassle.

Generally, I think enums are the right abstraction here. It's just that the
language treats them as the unwanted step child that makes them kind of ugly.

https://chromiumcodereview.appspot.com/10897010/diff/1/src/v8globals.h
File src/v8globals.h (right):

https://chromiumcodereview.appspot.com/10897010/diff/1/src/v8globals.h#newcod...
src/v8globals.h:482: enum VariableMode {
On 2012/08/29 06:24:24, Sven Panne wrote:
> Add a warning comment here that the order of the enums matters.

Done.

Powered by Google App Engine
This is Rietveld 408576698