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

Issue 3120006: Put direct code pointers into JSFunction objects. This is a first step... (Closed)

Created:
10 years, 4 months ago by Rico
Modified:
9 years, 6 months ago
Reviewers:
Kasper Lund
CC:
v8-dev
Visibility:
Public.

Description

Put direct code pointers into JSFunction objects. This is a first step in allowing more flexible compilation and to simplify builtins lookup. This changes a number of places where code objects are assigned to SharedFunctionInfo objects to also assign this code object to the JSFunction. In addition, the code flushing is changed slightly to accomodate this (we need to flush the code from functions pointing to SharedFunctionInfo objects that has already been flushed). Committed: http://code.google.com/p/v8/source/detail?r=5233

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 14

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -57 lines) Patch
M src/accessors.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/arm/builtins-arm.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/arm/codegen-arm.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M src/arm/macro-assembler-arm.cc View 1 2 chunks +2 lines, -3 lines 0 comments Download
M src/bootstrapper.cc View 2 chunks +3 lines, -0 lines 0 comments Download
M src/factory.cc View 3 chunks +9 lines, -1 line 0 comments Download
M src/handles.cc View 1 2 1 chunk +18 lines, -8 lines 0 comments Download
M src/heap.cc View 1 2 3 chunks +45 lines, -21 lines 0 comments Download
M src/ia32/builtins-ia32.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/ia32/codegen-ia32.cc View 2 chunks +6 lines, -3 lines 0 comments Download
M src/ia32/macro-assembler-ia32.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M src/objects.h View 1 chunk +3 lines, -1 line 0 comments Download
M src/objects-inl.h View 2 chunks +5 lines, -3 lines 0 comments Download
M src/runtime.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download
M src/serialize.h View 1 chunk +1 line, -1 line 0 comments Download
M src/x64/builtins-x64.cc View 1 chunk +1 line, -1 line 0 comments Download
M src/x64/codegen-x64.cc View 2 chunks +7 lines, -2 lines 0 comments Download
M src/x64/macro-assembler-x64.cc View 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Rico
10 years, 4 months ago (2010-08-11 07:32:44 UTC) #1
Kasper Lund
LGTM. http://codereview.chromium.org/3120006/diff/16001/17007 File src/handles.cc (right): http://codereview.chromium.org/3120006/diff/16001/17007#newcode778 src/handles.cc:778: CompilationInfo info(function, 0, receiver); Indentation is off here. ...
10 years, 4 months ago (2010-08-11 07:50:03 UTC) #2
Rico
10 years, 4 months ago (2010-08-11 08:12:43 UTC) #3
http://codereview.chromium.org/3120006/diff/16001/17007
File src/handles.cc (right):

http://codereview.chromium.org/3120006/diff/16001/17007#newcode778
src/handles.cc:778: CompilationInfo info(function, 0, receiver);
On 2010/08/11 07:50:03, Kasper Lund wrote:
> Indentation is off here.

Done.

http://codereview.chromium.org/3120006/diff/16001/17008
File src/heap.cc (right):

http://codereview.chromium.org/3120006/diff/16001/17008#newcode2466
src/heap.cc:2466: 
On 2010/08/11 07:50:03, Kasper Lund wrote:
> Extra newline between the functions.

Done.

http://codereview.chromium.org/3120006/diff/16001/17008#newcode2468
src/heap.cc:2468: SharedFunctionInfo* function_info = function->shared();
On 2010/08/11 07:50:03, Kasper Lund wrote:
> I would call this shared_info instead of function_info.

Done.

http://codereview.chromium.org/3120006/diff/16001/17008#newcode2470
src/heap.cc:2470: // Special handling if the function and sharedfunctioninfo
objects
On 2010/08/11 07:50:03, Kasper Lund wrote:
> sharedfunctioninfo => shared info

Done.

http://codereview.chromium.org/3120006/diff/16001/17008#newcode2474
src/heap.cc:2474: // we flush the function if posible.
On 2010/08/11 07:50:03, Kasper Lund wrote:
> posible => possible.

Done.

http://codereview.chromium.org/3120006/diff/16001/17008#newcode2501
src/heap.cc:2501: // Check stack and archived threads for the code
On 2010/08/11 07:50:03, Kasper Lund wrote:
> Terminate comment with .

Done.

http://codereview.chromium.org/3120006/diff/16001/17008#newcode2520
src/heap.cc:2520: JSFunction* jsfunction = JSFunction::cast(obj);
On 2010/08/11 07:50:03, Kasper Lund wrote:
> jsfunction => function

Done.

Powered by Google App Engine
This is Rietveld 408576698