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

Issue 1582041: Reapply: Inline fast cases in string keyed load IC. (Closed)

Created:
10 years, 8 months ago by Vitaly Repeshko
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Reapply: Inline fast cases in string keyed load IC. (Fixed handling of out-of-bounds keys.) String keyed load used to call STRING_CHAR_AT builtin that performs two steps (get a char code, construct a one-char string from the code), both of which have fast cases implemented as inline runtime functions. In this chage most of the code from these functions is extracted to a set of common generator functions in StringStubBase and the fast cases are grouped together in the IC code. Committed: http://code.google.com/p/v8/source/detail?r=4450

Patch Set 1 #

Patch Set 2 : . #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+353 lines, -245 lines) Patch
M src/globals.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/ia32/codegen-ia32.h View 4 chunks +66 lines, -34 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 21 chunks +219 lines, -187 lines 0 comments Download
M src/ia32/ic-ia32.cc View 1 chunk +54 lines, -21 lines 1 comment Download
M test/mjsunit/string-index.js View 1 2 chunks +11 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Vitaly Repeshko
10 years, 8 months ago (2010-04-20 10:22:16 UTC) #1
Vitaly Repeshko
Diff from the first attempt: diff --git a/src/ia32/ic-ia32.cc b/src/ia32/ic-ia32.cc index f07018a..34b32be 100644 --- a/src/ia32/ic-ia32.cc +++ ...
10 years, 8 months ago (2010-04-20 10:29:51 UTC) #2
Mads Ager (chromium)
10 years, 8 months ago (2010-04-20 10:36:50 UTC) #3
LGTM

http://codereview.chromium.org/1582041/diff/2001/3004
File src/ia32/ic-ia32.cc (right):

http://codereview.chromium.org/1582041/diff/2001/3004#newcode546
src/ia32/ic-ia32.cc:546: if (FLAG_debug_code) {
I'm not sure this debug_code code adds much?

Powered by Google App Engine
This is Rietveld 408576698