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

Issue 10828048: Avoid GC when printing shared function info. (Closed)

Created:
8 years, 4 months ago by Yang
Modified:
8 years, 4 months ago
Reviewers:
Michael Starzinger
CC:
v8-dev
Visibility:
Public.

Description

Avoid GC when printing shared function info. R=mstarzinger@chromium.org BUG= TEST= Committed: https://code.google.com/p/v8/source/detail?r=12210

Patch Set 1 #

Total comments: 1

Patch Set 2 : addressed comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -1 line) Patch
M src/objects-printer.cc View 1 chunk +8 lines, -1 line 0 comments Download
M test/cctest/test-heap.cc View 1 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Yang
8 years, 4 months ago (2012-07-27 09:43:59 UTC) #1
Michael Starzinger
8 years, 4 months ago (2012-07-27 09:50:26 UTC) #2
LGTM (with a suggestion).

https://chromiumcodereview.appspot.com/10828048/diff/1/test/cctest/test-heap.cc
File test/cctest/test-heap.cc (right):

https://chromiumcodereview.appspot.com/10828048/diff/1/test/cctest/test-heap....
test/cctest/test-heap.cc:1983: CHECK(maybe_obj->To<JSFunction>(&g_func));
Consider using the following to get to the "g" function ...

Handle<JSFunction> g =
    v8::Utils::OpenHandle(
        *v8::Handle<v8::Function>::Cast(
            v8::Context::GetCurrent()->Global()->Get(v8_str("g"))));

Powered by Google App Engine
This is Rietveld 408576698