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

Issue 20758002: Compilation type and state allocate an unnecessary Smi on v8::Script. (Closed)

Created:
7 years, 4 months ago by Mike West
Modified:
7 years, 4 months ago
Reviewers:
Michael Starzinger
CC:
Jakob Kummerow, Yang
Base URL:
https://chromium.googlesource.com/external/v8.git@master
Visibility:
Public.

Description

Compilation type and state allocate an unnecessary Smi on v8::Script. This patch combines them into a single field, and adjusts the accessors and setters to take the enum type directly, rather than converting to and from a Smi value. R=mstarzinger@chromium.org Committed: http://code.google.com/p/v8/source/detail?r=15940

Patch Set 1 #

Patch Set 2 : Bools are hard. :( #

Patch Set 3 : Setting the flags field would help. #

Patch Set 4 : rebaseline. #

Total comments: 8

Patch Set 5 : feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -30 lines) Patch
M src/accessors.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M src/compiler.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M src/factory.cc View 1 chunk +1 line, -3 lines 0 comments Download
M src/isolate.cc View 1 2 1 chunk +3 lines, -3 lines 0 comments Download
M src/liveedit.cc View 1 chunk +4 lines, -1 line 0 comments Download
M src/objects.h View 1 2 3 4 3 chunks +21 lines, -11 lines 0 comments Download
M src/objects-inl.h View 1 2 3 4 1 chunk +19 lines, -2 lines 0 comments Download
M src/objects-printer.cc View 1 chunk +1 line, -2 lines 0 comments Download
M src/runtime.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Mike West
Hi Yang and Jakob! This is the cleanup you suggested. I've split it out into ...
7 years, 4 months ago (2013-07-26 16:18:01 UTC) #1
Michael Starzinger
LGTM with nits. I'll land this once nits are addressed. https://codereview.chromium.org/20758002/diff/11001/src/objects-inl.h File src/objects-inl.h (right): https://codereview.chromium.org/20758002/diff/11001/src/objects-inl.h#newcode4490 ...
7 years, 4 months ago (2013-07-29 14:43:58 UTC) #2
Mike West
Nits addressed, thank you. https://codereview.chromium.org/20758002/diff/11001/src/objects-inl.h File src/objects-inl.h (right): https://codereview.chromium.org/20758002/diff/11001/src/objects-inl.h#newcode4490 src/objects-inl.h:4490: Script::CompilationType Script::compilation_type() { On 2013/07/29 ...
7 years, 4 months ago (2013-07-29 14:52:12 UTC) #3
Michael Starzinger
7 years, 4 months ago (2013-07-29 17:59:24 UTC) #4
Message was sent while issue was closed.
Committed patchset #5 manually as r15940 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698