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

Issue 10389023: Fixed compilation time measurement, restructure some code. (Closed)

Created:
8 years, 7 months ago by srdjan
Modified:
8 years, 7 months ago
Reviewers:
regis, siva
CC:
reviews_dartlang.org, vm-dev_dartlang.org, hausner, regis, Kevin Millikin (Google)
Visibility:
Public.

Description

Fixed compilation time measurement, restructure some code. Do not use slow ToFullyQualifiedCString in production backend (saves 10% in backend time with compile-all). Committed: https://code.google.com/p/dart/source/detail?r=7435

Patch Set 1 #

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 3

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+219 lines, -113 lines) Patch
M runtime/vm/allocation.h View 1 1 chunk +5 lines, -3 lines 0 comments Download
M runtime/vm/code_generator_ia32.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M runtime/vm/code_generator_ia32.cc View 1 2 chunks +5 lines, -0 lines 0 comments Download
M runtime/vm/compiler.cc View 1 2 3 4 5 6 chunks +107 lines, -65 lines 0 comments Download
M runtime/vm/flow_graph_builder.cc View 2 chunks +1 line, -2 lines 0 comments Download
M runtime/vm/flow_graph_compiler_arm.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 chunk +0 lines, -1 line 0 comments Download
M runtime/vm/flow_graph_compiler_x64.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 2 chunks +11 lines, -4 lines 0 comments Download
M runtime/vm/object.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M runtime/vm/object.cc View 1 2 3 4 5 2 chunks +11 lines, -2 lines 0 comments Download
M runtime/vm/object_test.cc View 1 2 3 4 5 6 6 chunks +20 lines, -9 lines 0 comments Download
M runtime/vm/opt_code_generator_ia32.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M runtime/vm/opt_code_generator_ia32.cc View 1 2 chunks +7 lines, -1 line 0 comments Download
M runtime/vm/stub_code_ia32_test.cc View 1 2 3 4 5 3 chunks +12 lines, -4 lines 0 comments Download
M runtime/vm/stub_code_x64_test.cc View 1 2 3 4 5 6 3 chunks +12 lines, -4 lines 0 comments Download
M runtime/vm/timer.h View 1 2 3 4 3 chunks +14 lines, -15 lines 0 comments Download
M runtime/vm/unit_test.cc View 1 2 3 4 5 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
srdjan
8 years, 7 months ago (2012-05-08 21:02:17 UTC) #1
regis
LGTM https://chromiumcodereview.appspot.com/10389023/diff/6001/runtime/vm/code_generator_ia32.h File runtime/vm/code_generator_ia32.h (right): https://chromiumcodereview.appspot.com/10389023/diff/6001/runtime/vm/code_generator_ia32.h#newcode80 runtime/vm/code_generator_ia32.h:80: virtual void InitGenerator(); Add comment explaining why you ...
8 years, 7 months ago (2012-05-08 21:26:41 UTC) #2
hausner
LGTM with comments https://chromiumcodereview.appspot.com/10389023/diff/6001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://chromiumcodereview.appspot.com/10389023/diff/6001/runtime/vm/object.cc#newcode3656 runtime/vm/object.cc:3656: const char* library_name = String::Handle(library.url()).ToCString(); Extra ...
8 years, 7 months ago (2012-05-08 21:41:01 UTC) #3
srdjan
https://chromiumcodereview.appspot.com/10389023/diff/6001/runtime/vm/code_generator_ia32.h File runtime/vm/code_generator_ia32.h (right): https://chromiumcodereview.appspot.com/10389023/diff/6001/runtime/vm/code_generator_ia32.h#newcode80 runtime/vm/code_generator_ia32.h:80: virtual void InitGenerator(); On 2012/05/08 21:26:41, regis wrote: > ...
8 years, 7 months ago (2012-05-08 21:43:17 UTC) #4
srdjan
https://chromiumcodereview.appspot.com/10389023/diff/6001/runtime/vm/object.cc File runtime/vm/object.cc (right): https://chromiumcodereview.appspot.com/10389023/diff/6001/runtime/vm/object.cc#newcode3656 runtime/vm/object.cc:3656: const char* library_name = String::Handle(library.url()).ToCString(); On 2012/05/08 21:41:01, hausner ...
8 years, 7 months ago (2012-05-08 21:51:31 UTC) #5
siva
LGTM https://chromiumcodereview.appspot.com/10389023/diff/12004/runtime/vm/compiler.cc File runtime/vm/compiler.cc (right): https://chromiumcodereview.appspot.com/10389023/diff/12004/runtime/vm/compiler.cc#newcode191 runtime/vm/compiler.cc:191: Code::Handle(Code::FinalizeCodeForFunction(function, &assembler)); Why not have FinalizeCode and FinalizeStubCode ...
8 years, 7 months ago (2012-05-08 22:08:45 UTC) #6
srdjan
8 years, 7 months ago (2012-05-08 23:54:31 UTC) #7
https://chromiumcodereview.appspot.com/10389023/diff/12004/runtime/vm/compile...
File runtime/vm/compiler.cc (right):

https://chromiumcodereview.appspot.com/10389023/diff/12004/runtime/vm/compile...
runtime/vm/compiler.cc:218: }
On 2012/05/08 22:08:45, asiva wrote:
> You may get a compilation error on the build bot because
> we are relying on the initialized value of 'is_compiled' here.
> Maybe just set is_compiled = false; and get rid of the
> initialization above.

Done.

Powered by Google App Engine
This is Rietveld 408576698