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

Issue 9356002: Remove unnecessary elements type check when allocating array in runtime. (Closed)

Created:
8 years, 10 months ago by Yang
Modified:
8 years, 10 months ago
Reviewers:
danno
CC:
v8-dev
Visibility:
Public.

Description

Remove unnecessary elements type check when allocating array in runtime. BUG= TEST=--smi-only-arrays should be perf-neutral to allocating big arrays in a tight loop. Committed: https://code.google.com/p/v8/source/detail?r=10711

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -7 lines) Patch
M src/builtins.cc View 1 chunk +4 lines, -4 lines 1 comment Download
M src/heap.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Yang
PTAL.
8 years, 10 months ago (2012-02-15 11:56:33 UTC) #1
danno
8 years, 10 months ago (2012-02-15 12:08:10 UTC) #2
LGTM with comment

http://codereview.chromium.org/9356002/diff/1/src/builtins.cc
File src/builtins.cc (right):

http://codereview.chromium.org/9356002/diff/1/src/builtins.cc#newcode225
src/builtins.cc:225: array->set_elements(FixedArray::cast(fixed_array));
Add a comment why SetContent isn't a good idea here.

Powered by Google App Engine
This is Rietveld 408576698