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

Issue 1287203002: [strong] Simplify (and sortof optimize) string addition for strong mode. (Closed)

Created:
5 years, 4 months ago by Benedikt Meurer
Modified:
5 years, 4 months ago
Reviewers:
Jarin
CC:
v8-dev
Base URL:
https://chromium.googlesource.com/v8/v8.git@master
Target Ref:
refs/pending/heads/master
Project:
v8
Visibility:
Public.

Description

[strong] Simplify (and sortof optimize) string addition for strong mode. In strong mode, whenever either operand to an addition is a string, both must be strings, so we can just use a simple string map check instead of the STRING_ADD_LEFT / STRING_ADD_RIGHT machinery, which tries to do sloppy and strict mode conversions before giving up. R=jarin@chromium.org Committed: https://crrev.com/6a58370c7f85ddd72590eebcdc03f15425b8ed1f Cr-Commit-Position: refs/heads/master@{#30146}

Patch Set 1 #

Total comments: 4

Patch Set 2 : Addressed comments #

Patch Set 3 : Small beautification. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -53 lines) Patch
M src/builtins.h View 1 chunk +0 lines, -2 lines 0 comments Download
M src/hydrogen.cc View 1 2 1 chunk +34 lines, -31 lines 0 comments Download
M src/runtime.js View 3 chunks +0 lines, -20 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
Benedikt Meurer
5 years, 4 months ago (2015-08-13 05:35:30 UTC) #1
Benedikt Meurer
Hey Jaro, An easy starter in the morning :-) Please take a look. Thanks, Benedikt
5 years, 4 months ago (2015-08-13 05:36:02 UTC) #2
Jarin
lgtm with a nit and a question. https://codereview.chromium.org/1287203002/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/1287203002/diff/1/src/hydrogen.cc#newcode10907 src/hydrogen.cc:10907: if (left_type->Is(Type::String())) ...
5 years, 4 months ago (2015-08-13 06:23:51 UTC) #3
Benedikt Meurer
https://codereview.chromium.org/1287203002/diff/1/src/hydrogen.cc File src/hydrogen.cc (right): https://codereview.chromium.org/1287203002/diff/1/src/hydrogen.cc#newcode10907 src/hydrogen.cc:10907: if (left_type->Is(Type::String())) { Restructured to simplify strong case as ...
5 years, 4 months ago (2015-08-13 06:31:14 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1287203002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1287203002/40001
5 years, 4 months ago (2015-08-13 06:32:40 UTC) #7
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 4 months ago (2015-08-13 07:05:12 UTC) #8
commit-bot: I haz the power
5 years, 4 months ago (2015-08-13 07:05:28 UTC) #9
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/6a58370c7f85ddd72590eebcdc03f15425b8ed1f
Cr-Commit-Position: refs/heads/master@{#30146}

Powered by Google App Engine
This is Rietveld 408576698