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

Issue 669061: First take on custom call generators. (Closed)

Created:
10 years, 9 months ago by antonm
Modified:
9 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

First take on custom call generators. Committed: http://code.google.com/p/v8/source/detail?r=4108

Patch Set 1 #

Patch Set 2 : Fixed error #

Patch Set 3 : full implementation for Array.push #

Total comments: 14

Patch Set 4 : Next round #

Patch Set 5 : Next iteration #

Patch Set 6 : Next round #

Total comments: 3

Patch Set 7 : Ultimate version #

Unified diffs Side-by-side diffs Delta from patch set Stats (+550 lines, -237 lines) Patch
M src/arm/stub-cache-arm.cc View 2 chunks +56 lines, -0 lines 0 comments Download
M src/array.js View 2 chunks +36 lines, -45 lines 0 comments Download
M src/bootstrapper.cc View 1 2 3 4 3 chunks +0 lines, -77 lines 0 comments Download
M src/builtins.cc View 1 2 5 6 3 chunks +8 lines, -9 lines 0 comments Download
M src/factory.cc View 1 chunk +1 line, -0 lines 0 comments Download
M src/ia32/codegen-ia32.h View 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
M src/ia32/codegen-ia32.cc View 3 4 5 6 1 chunk +6 lines, -0 lines 0 comments Download
M src/ia32/macro-assembler-ia32.h View 3 4 5 6 1 chunk +12 lines, -0 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 3 4 5 6 4 chunks +36 lines, -71 lines 0 comments Download
M src/ia32/stub-cache-ia32.cc View 1 2 3 4 5 6 3 chunks +111 lines, -3 lines 0 comments Download
M src/log.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M src/objects.h View 1 2 3 4 5 6 2 chunks +9 lines, -3 lines 0 comments Download
M src/objects.cc View 5 6 3 chunks +5 lines, -5 lines 0 comments Download
M src/objects-debug.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/objects-inl.h View 1 2 3 4 2 chunks +17 lines, -2 lines 0 comments Download
M src/parser.cc View 5 6 1 chunk +1 line, -3 lines 0 comments Download
M src/runtime.h View 5 6 1 chunk +1 line, -0 lines 0 comments Download
M src/runtime.cc View 5 6 2 chunks +56 lines, -4 lines 0 comments Download
M src/stub-cache.h View 3 4 3 chunks +15 lines, -1 line 0 comments Download
M src/top.cc View 3 chunks +9 lines, -10 lines 0 comments Download
M src/x64/stub-cache-x64.cc View 2 chunks +64 lines, -0 lines 0 comments Download
A test/mjsunit/array-push.js View 1 chunk +68 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
antonm
Mads, may you have a look? http://codereview.chromium.org/669061/diff/1009/19 File src/ia32/macro-assembler-ia32.cc (right): http://codereview.chromium.org/669061/diff/1009/19#newcode171 src/ia32/macro-assembler-ia32.cc:171: lea(dst, Operand(object, dst, ...
10 years, 9 months ago (2010-03-04 21:53:53 UTC) #1
Mads Ager (chromium)
http://codereview.chromium.org/669061/diff/1009/16 File src/bootstrapper.cc (right): http://codereview.chromium.org/669061/diff/1009/16#newcode1465 src/bootstrapper.cc:1465: if (function_data->IsUndefined()) { I wonder if this can have ...
10 years, 9 months ago (2010-03-08 12:39:28 UTC) #2
antonm
Thanks a lot for comments, Mads. http://codereview.chromium.org/669061/diff/1009/16 File src/bootstrapper.cc (right): http://codereview.chromium.org/669061/diff/1009/16#newcode1465 src/bootstrapper.cc:1465: if (function_data->IsUndefined()) { ...
10 years, 9 months ago (2010-03-09 10:39:11 UTC) #3
Mads Ager (chromium)
I see why you need to preserved ebx, sorry about that. Playing with eliminating some ...
10 years, 9 months ago (2010-03-09 11:51:00 UTC) #4
Mads Ager (chromium)
10 years, 9 months ago (2010-03-10 08:06:21 UTC) #5
LGTM

http://codereview.chromium.org/669061/diff/12001/13001
File src/array.js (right):

http://codereview.chromium.org/669061/diff/12001/13001#newcode1110
src/array.js:1110: if (arguments.length == 3) {
We usually do:

if (!IS_UNDEFINED(len))

http://codereview.chromium.org/669061/diff/12001/13009
File src/ia32/stub-cache-ia32.cc (right):

http://codereview.chromium.org/669061/diff/12001/13009#newcode1248
src/ia32/stub-cache-ia32.cc:1248: Immediate(Factory::fixed_array_map()));
Identation one space off?

http://codereview.chromium.org/669061/diff/12001/13009#newcode1276
src/ia32/stub-cache-ia32.cc:1276: // Check if wrote not a smi.
wrote -> value is

Powered by Google App Engine
This is Rietveld 408576698