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

Issue 1069423003: Remove comparison operator and helper function from AstRawString interface (Closed)

Created:
5 years, 8 months ago by adamk
Modified:
5 years, 8 months ago
Reviewers:
Sven Panne, marja
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

Remove comparison operator and helper function from AstRawString interface These comparisons are only meant to be done by AstValueFactory itself (in its string_table_ operations), so make the Compare() function a private member of AstValueFactory. All other clients of AstRawStrings should compare them by pointer value. There were only two clients which failed to abide by this rule, one recently-added (in ModuleDescriptor) and the other in Literal::Match (in ast.cc, added in https://code.google.com/p/v8/source/detail?r=24396). Committed: https://crrev.com/9b09a28d5c62a5d869f64b1d73ccece6bcdfa773 Cr-Commit-Position: refs/heads/master@{#27715}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -24 lines) Patch
M src/ast.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ast-value-factory.h View 4 chunks +5 lines, -4 lines 0 comments Download
M src/ast-value-factory.cc View 2 chunks +9 lines, -13 lines 0 comments Download
M src/modules.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M test/cctest/test-parsing.cc View 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
adamk
marja, this patch is based on our recent email thread. svenpanne, I've added you as ...
5 years, 8 months ago (2015-04-08 20:23:28 UTC) #2
marja
lgtm, this is good stuff and clarifies things! (Hmm, I wasn't aware that operator== was ...
5 years, 8 months ago (2015-04-09 06:55:45 UTC) #3
Sven Panne
LGTM, too. IIRC, my change was only shifting around things a bit to get rid ...
5 years, 8 months ago (2015-04-09 07:54:49 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1069423003/1
5 years, 8 months ago (2015-04-09 15:49:07 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 8 months ago (2015-04-09 19:38:32 UTC) #7
commit-bot: I haz the power
5 years, 8 months ago (2015-04-09 19:38:50 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/9b09a28d5c62a5d869f64b1d73ccece6bcdfa773
Cr-Commit-Position: refs/heads/master@{#27715}

Powered by Google App Engine
This is Rietveld 408576698