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

Issue 11412106: Support VTune's JIT interface. (Closed)

Created:
8 years, 1 month ago by Vyacheslav Egorov (Google)
Modified:
8 years ago
Reviewers:
Ivan Posva
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Support VTune's JIT interface. R=iposva@google.com BUG= Committed: https://code.google.com/p/dart/source/detail?r=15517

Patch Set 1 #

Patch Set 2 : add vtune.{cc,h} #

Total comments: 8

Patch Set 3 : introduce CodeObserver interface #

Total comments: 14

Patch Set 4 : Address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+333 lines, -61 lines) Patch
M runtime/tools/gyp/runtime-configurations.gypi View 3 chunks +27 lines, -0 lines 0 comments Download
M runtime/vm/assembler_arm.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/assembler_ia32.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/assembler_ia32.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M runtime/vm/assembler_x64.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M runtime/vm/assembler_x64.cc View 1 2 3 2 chunks +3 lines, -3 lines 0 comments Download
A runtime/vm/code_observers.h View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
A runtime/vm/code_observers.cc View 1 2 3 1 chunk +142 lines, -0 lines 0 comments Download
M runtime/vm/dart.cc View 1 2 3 3 chunks +3 lines, -0 lines 0 comments Download
M runtime/vm/dart_api_impl_test.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.cc View 1 2 3 5 chunks +8 lines, -46 lines 0 comments Download
M runtime/vm/vm.gypi View 1 2 3 2 chunks +19 lines, -2 lines 0 comments Download
M runtime/vm/vm_sources.gypi View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
A runtime/vm/vtune.h View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A runtime/vm/vtune.cc View 1 2 3 1 chunk +33 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Vyacheslav Egorov (Google)
8 years, 1 month ago (2012-11-20 15:33:13 UTC) #1
Ivan Posva
https://chromiumcodereview.appspot.com/11412106/diff/3001/runtime/tools/gyp/runtime-configurations.gypi File runtime/tools/gyp/runtime-configurations.gypi (right): https://chromiumcodereview.appspot.com/11412106/diff/3001/runtime/tools/gyp/runtime-configurations.gypi#newcode13 runtime/tools/gyp/runtime-configurations.gypi:13: 'dart_vtune_root%': '/opt/intel/vtune_amplifier_xe', This default is very Linux specific, shouldn't ...
8 years ago (2012-11-26 04:36:38 UTC) #2
Vyacheslav Egorov (Google)
Please take another look. https://chromiumcodereview.appspot.com/11412106/diff/3001/runtime/tools/gyp/runtime-configurations.gypi File runtime/tools/gyp/runtime-configurations.gypi (right): https://chromiumcodereview.appspot.com/11412106/diff/3001/runtime/tools/gyp/runtime-configurations.gypi#newcode13 runtime/tools/gyp/runtime-configurations.gypi:13: 'dart_vtune_root%': '/opt/intel/vtune_amplifier_xe', On 2012/11/26 04:36:38, ...
8 years ago (2012-11-26 15:11:10 UTC) #3
Ivan Posva
LGTM with comments. -Ivan https://chromiumcodereview.appspot.com/11412106/diff/6003/runtime/vm/dart.cc File runtime/vm/dart.cc (right): https://chromiumcodereview.appspot.com/11412106/diff/6003/runtime/vm/dart.cc#newcode206 runtime/vm/dart.cc:206: sizeof(CodeObserver*) * code_observers_length_)); // NOLINT ...
8 years ago (2012-11-27 09:11:20 UTC) #4
Vyacheslav Egorov (Google)
8 years ago (2012-11-27 16:26:11 UTC) #5
Please take another look. 

I've moved all observer related code to new files.

https://codereview.chromium.org/11412106/diff/6003/runtime/vm/dart.cc
File runtime/vm/dart.cc (right):

https://codereview.chromium.org/11412106/diff/6003/runtime/vm/dart.cc#newcode206
runtime/vm/dart.cc:206: sizeof(CodeObserver*) * code_observers_length_));  //
NOLINT
On 2012/11/27 09:11:20, Ivan Posva wrote:
> sizeof(observer) should make the lint warning go away.

Done.

https://codereview.chromium.org/11412106/diff/6003/runtime/vm/dart.cc#newcode316
runtime/vm/dart.cc:316: RegisterCodeObserver(new VTuneCodeObserver;
On 2012/11/27 09:11:20, Ivan Posva wrote:
> Does not compile).

Indeed. Fixed

https://codereview.chromium.org/11412106/diff/6003/runtime/vm/dart.h
File runtime/vm/dart.h (right):

https://codereview.chromium.org/11412106/diff/6003/runtime/vm/dart.h#newcode21
runtime/vm/dart.h:21: class CodeObserver {
On 2012/11/27 09:11:20, Ivan Posva wrote:
> I am not certain whether this belongs into this file or whether we should put
it
> into its own file code_observer.h and code_observer.cc. Can be split at a
> different CL.

Moved all code observers related code to a separate file code_observers.(cc|h).

https://codereview.chromium.org/11412106/diff/6003/runtime/vm/dart.h#newcode29
runtime/vm/dart.h:29: // Notify code observer about newly created code object
with the
On 2012/11/27 09:11:20, Ivan Posva wrote:
> about a newly

Done.

https://codereview.chromium.org/11412106/diff/6003/runtime/vm/vtune.cc
File runtime/vm/vtune.cc (right):

https://codereview.chromium.org/11412106/diff/6003/runtime/vm/vtune.cc#newcode34
runtime/vm/vtune.cc:34: bool VTuneCodeObserver::IsActive() const {
On 2012/11/27 09:11:20, Ivan Posva wrote:
> Do you even need to supply these UNREACHABLE methods if DART_VTUNE_SUPPORT is
> not enabled?

Done.

https://codereview.chromium.org/11412106/diff/6003/runtime/vm/vtune.h
File runtime/vm/vtune.h (right):

https://codereview.chromium.org/11412106/diff/6003/runtime/vm/vtune.h#newcode12
runtime/vm/vtune.h:12: class VTuneCodeObserver : public CodeObserver {
On 2012/11/27 09:11:20, Ivan Posva wrote:
> Do not even define this if DART_VTUNE_SUPPORT is not enabled?

Done.

Powered by Google App Engine
This is Rietveld 408576698