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

Issue 1456001: Small improvements with code patching (Closed)

Created:
10 years, 9 months ago by Peter Rybin
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Small improvements with code patching Committed: http://code.google.com/p/v8/source/detail?r=4358

Patch Set 1 #

Patch Set 2 : more improvements #

Patch Set 3 : more fixes #

Total comments: 6

Patch Set 4 : follow codereview #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -12 lines) Patch
M src/liveedit.cc View 1 2 3 3 chunks +37 lines, -12 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Peter Rybin
10 years, 8 months ago (2010-04-06 20:06:45 UTC) #1
Søren Thygesen Gjesse
LGTM when it lints. http://codereview.chromium.org/1456001/diff/4001/5001 File src/liveedit.cc (right): http://codereview.chromium.org/1456001/diff/4001/5001#newcode450 src/liveedit.cc:450: static bool IsStubCode(Code* code) { ...
10 years, 8 months ago (2010-04-07 07:06:05 UTC) #2
Peter Rybin
10 years, 8 months ago (2010-04-07 17:42:54 UTC) #3
http://codereview.chromium.org/1456001/diff/4001/5001
File src/liveedit.cc (right):

http://codereview.chromium.org/1456001/diff/4001/5001#newcode450
src/liveedit.cc:450: static bool IsStubCode(Code* code) {
On 2010/04/07 07:06:05, Søren Gjesse wrote:
> I will suggest making a IsJSFunctionCode which checks == with Code::FUNCTION
> instead. The term "stub" is a bit overloaded.

Done.

http://codereview.chromium.org/1456001/diff/4001/5001#newcode465
src/liveedit.cc:465: if (!IsStubCode(shared_info->code())) {
On 2010/04/07 07:06:05, Søren Gjesse wrote:
> Maybe (shared->code()->kind() == Code::FUNCTION) is just as good here?

I am not sure I won't need more checks later. I also use this function in other
place, so I'd rather not inline it.

http://codereview.chromium.org/1456001/diff/4001/5001#newcode472
src/liveedit.cc:472: Handle<Code> new_original_code =
Factory::CopyCode(compile_info_wrapper.GetFunctionCode());
On 2010/04/07 07:06:05, Søren Gjesse wrote:
> Long line, please make sure it lints.

Sorry about this.
Done

Powered by Google App Engine
This is Rietveld 408576698