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

Issue 8513016: Change generated code for substring not to bail out to runtime system. (Closed)

Created:
9 years, 1 month ago by Yang
Modified:
9 years, 1 month ago
Reviewers:
Rico
CC:
v8-dev
Visibility:
Public.

Description

Change generated code for substring not to bail out to runtime system. There is no need to bail out to runtime system when creating sliced strings of external strings since the string content is unimportant. Committed: http://code.google.com/p/v8/source/detail?r=10012

Patch Set 1 #

Patch Set 2 : . #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -24 lines) Patch
M src/arm/code-stubs-arm.cc View 1 2 chunks +4 lines, -8 lines 0 comments Download
M src/ia32/code-stubs-ia32.cc View 1 2 chunks +4 lines, -8 lines 1 comment Download
M src/x64/code-stubs-x64.cc View 1 2 chunks +4 lines, -8 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Yang
I should have kept the behavior in the runtime and that of the generated code ...
9 years, 1 month ago (2011-11-16 17:26:13 UTC) #1
Rico
9 years, 1 month ago (2011-11-17 07:27:20 UTC) #2
LGTM

http://codereview.chromium.org/8513016/diff/2001/src/ia32/code-stubs-ia32.cc
File src/ia32/code-stubs-ia32.cc (right):

http://codereview.chromium.org/8513016/diff/2001/src/ia32/code-stubs-ia32.cc#...
src/ia32/code-stubs-ia32.cc:5980: STATIC_ASSERT(kIsIndirectStringMask ==
(kSlicedStringTag & kConsStringTag));
These two asserts and the following test is a bit hard to follow, please add a
comment explaining that if we don't have an indirect string we have either a
sequential or an external string (I, at least, had to go to objects.h to
convince myself of this)

Powered by Google App Engine
This is Rietveld 408576698