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

Issue 6771045: Never use classic code generator. (Closed)

Created:
9 years, 8 months ago by Mads Ager (chromium)
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Never use classic code generator. Crankshaft is now the default on all platforms. This is the first patch on the way to removing the classic code generator from the system. R=kmillikin@chromium.org BUG= TEST= Committed: http://code.google.com/p/v8/source/detail?r=7469

Patch Set 1 #

Patch Set 2 : Fix ARM and x64 #

Total comments: 2

Patch Set 3 : Address comments and fix testing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -121 lines) Patch
M src/arm/full-codegen-arm.cc View 1 1 chunk +0 lines, -10 lines 0 comments Download
M src/ast.h View 4 chunks +1 line, -6 lines 0 comments Download
M src/compiler.cc View 1 2 4 chunks +8 lines, -53 lines 0 comments Download
M src/flag-definitions.h View 1 1 chunk +0 lines, -5 lines 0 comments Download
M src/ia32/full-codegen-ia32.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M src/objects.h View 3 chunks +6 lines, -10 lines 0 comments Download
M src/objects-inl.h View 2 chunks +1 line, -5 lines 0 comments Download
M src/v8.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M src/x64/full-codegen-x64.cc View 1 1 chunk +0 lines, -9 lines 0 comments Download
M test/cctest/test-deoptimization.cc View 1 2 6 chunks +6 lines, -6 lines 0 comments Download
M test/cctest/test-heap.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M test/cctest/test-log.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M tools/test.py View 1 2 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Mads Ager (chromium)
9 years, 8 months ago (2011-04-01 09:27:18 UTC) #1
Kevin Millikin (Chromium)
LGTM. http://codereview.chromium.org/6771045/diff/2001/src/compiler.cc File src/compiler.cc (right): http://codereview.chromium.org/6771045/diff/2001/src/compiler.cc#newcode700 src/compiler.cc:700: if (FLAG_lazy && allow_lazy) { I think this ...
9 years, 8 months ago (2011-04-01 09:45:43 UTC) #2
Mads Ager (chromium)
9 years, 8 months ago (2011-04-01 09:54:17 UTC) #3
http://codereview.chromium.org/6771045/diff/2001/src/compiler.cc
File src/compiler.cc (right):

http://codereview.chromium.org/6771045/diff/2001/src/compiler.cc#newcode700
src/compiler.cc:700: if (FLAG_lazy && allow_lazy) {
On 2011/04/01 09:45:43, Kevin Millikin wrote:
> I think this whole conditional could be simpler:
> 
> if (FLAG_lazy && allow_lazy) {
>   Handle<Code> code = info.isolate()->builtins()->LazyCompile();
>   info.SetCode(code);
> } else if ((V8::UseCrankshaft() && MakeCrankshaftCode(&info)) ||
>            (!V8::UseCrankshaft() && FullCodeGenerator::MakeCode(&info))) {
>   ASSERT(!info.code().is_null());
>   scope_info = SerializedScopeInfo::Create(info.scope());
> } else {
>   return Handle<SharedFunctionInfo>::null();
> }

Done.

Powered by Google App Engine
This is Rietveld 408576698