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

Issue 2918001: Move serialized scope info from Code object to SharedFunctionInfo. (Closed)

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

Description

Move serialized scope info from Code object to SharedFunctionInfo. The scope info is now stored in a FixedArray referenced from SharedFunctionInfo. Committed: http://code.google.com/p/v8/source/detail?r=5056

Patch Set 1 #

Total comments: 14

Patch Set 2 : '' #

Total comments: 2

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -273 lines) Patch
M src/accessors.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/arm/regexp-macro-assembler-arm.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M src/builtins.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/code-stubs.cc View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M src/codegen.cc View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M src/compiler.cc View 1 2 6 chunks +19 lines, -6 lines 0 comments Download
M src/contexts.cc View 1 2 4 chunks +9 lines, -9 lines 0 comments Download
M src/factory.h View 1 2 3 chunks +4 lines, -5 lines 0 comments Download
M src/factory.cc View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M src/frames.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download
M src/globals.h View 2 1 chunk +0 lines, -1 line 0 comments Download
M src/heap.h View 1 2 2 chunks +0 lines, -3 lines 0 comments Download
M src/heap.cc View 1 2 8 chunks +6 lines, -13 lines 0 comments Download
M src/ia32/assembler-ia32.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M src/ia32/regexp-macro-assembler-ia32.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M src/objects.h View 1 2 7 chunks +10 lines, -16 lines 0 comments Download
M src/objects.cc View 1 2 1 chunk +0 lines, -2 lines 0 comments Download
M src/objects-debug.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/objects-inl.h View 1 2 3 chunks +1 line, -6 lines 0 comments Download
M src/parser.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M src/profile-generator.cc View 1 2 1 chunk +5 lines, -6 lines 0 comments Download
M src/runtime.cc View 1 2 18 chunks +31 lines, -28 lines 0 comments Download
M src/scopeinfo.h View 1 2 6 chunks +28 lines, -46 lines 0 comments Download
M src/scopeinfo.cc View 1 2 15 chunks +105 lines, -90 lines 0 comments Download
M src/stub-cache.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M src/x64/assembler-x64.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M src/x64/regexp-macro-assembler-x64.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/test-assembler-arm.cc View 1 2 6 chunks +0 lines, -6 lines 0 comments Download
M test/cctest/test-assembler-ia32.cc View 1 2 9 chunks +0 lines, -9 lines 0 comments Download
M test/cctest/test-disasm-ia32.cc View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M test/cctest/test-heap.cc View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M test/cctest/test-heap-profiler.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Vladislav Kaznacheev
10 years, 5 months ago (2010-07-08 12:12:29 UTC) #1
Vitaly Repeshko
I think it'd be nice to (later) create real ScopeInfoObject inheriting from FixedArray and move ...
10 years, 5 months ago (2010-07-08 13:23:17 UTC) #2
Vladislav Kaznacheev
http://codereview.chromium.org/2918001/diff/1/21 File src/compiler.cc (right): http://codereview.chromium.org/2918001/diff/1/21#newcode157 src/compiler.cc:157: static Handle<Object> CreateScopeInfo(CompilationInfo* info) { On 2010/07/08 13:23:17, Vitaly ...
10 years, 5 months ago (2010-07-08 14:31:42 UTC) #3
Vitaly Repeshko
LGTM Please don't forget the postponed issues :) Maybe create a bug mentioning them all. ...
10 years, 5 months ago (2010-07-08 21:17:39 UTC) #4
Vladislav Kaznacheev
10 years, 5 months ago (2010-07-09 08:12:38 UTC) #5
I have made just a few changes but for some reason the latest patch set seems to
think that every file changed.

http://codereview.chromium.org/2918001/diff/33002/12015
File src/scopeinfo.h (right):

http://codereview.chromium.org/2918001/diff/33002/12015#newcode156
src/scopeinfo.h:156: static Handle<Object> CreateHeapObject(Scope* scope);
On 2010/07/08 21:17:39, Vitaly wrote:
> Since this uses ZoneScopeInfo only as a temporary storage and it's an
> implementation detail really, I think CreateHeapObject and EmptyHeap object
> functions should be in ScopeInfo.

Done. Also removed ZoneScopeInfo class altogether as it was only needed for
forward declarations when it was passed to CreateCode.

Powered by Google App Engine
This is Rietveld 408576698