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

Issue 141713002: Outline of how to factor out compiler and runtime specifics. (Closed)

Created:
6 years, 11 months ago by ahe
Modified:
6 years, 9 months ago
Reviewers:
kustermann
CC:
reviews_dartlang.org, ricow1, Bill Hesse
Visibility:
Public.

Description

Outline of how to factor out compiler and runtime specifics. Committed in one commit with https://codereview.chromium.org/179173003/. Committed: https://code.google.com/p/dart/source/detail?r=33197

Patch Set 1 #

Total comments: 14

Patch Set 2 : Address Martin's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -39 lines) Patch
A dart/tools/testing/dart/compiler_configuration.dart View 1 1 chunk +81 lines, -0 lines 0 comments Download
A dart/tools/testing/dart/runtime_configuration.dart View 1 1 chunk +72 lines, -0 lines 0 comments Download
M dart/tools/testing/dart/test_options.dart View 1 2 chunks +13 lines, -39 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
ahe
This is an outline of a direction I want to take. I'm about to add ...
6 years, 11 months ago (2014-01-17 12:50:16 UTC) #1
kustermann
I think this is a good starting point. https://codereview.chromium.org/141713002/diff/1/dart/tools/testing/dart/runtime_configuration.dart File dart/tools/testing/dart/runtime_configuration.dart (right): https://codereview.chromium.org/141713002/diff/1/dart/tools/testing/dart/runtime_configuration.dart#newcode33 dart/tools/testing/dart/runtime_configuration.dart:33: throw ...
6 years, 11 months ago (2014-01-17 13:00:53 UTC) #2
kustermann
rubberstamp lgtm https://codereview.chromium.org/141713002/diff/1/dart/tools/testing/dart/compiler_configuration.dart File dart/tools/testing/dart/compiler_configuration.dart (right): https://codereview.chromium.org/141713002/diff/1/dart/tools/testing/dart/compiler_configuration.dart#newcode64 dart/tools/testing/dart/compiler_configuration.dart:64: class Dart2dartCompilerConfiguration extends Dart2xCompilerConfiguration { Dart2dart => ...
6 years, 11 months ago (2014-01-17 14:19:32 UTC) #3
ahe
Thank you, Martin. I plan to submit patch set 2 as is. But I want ...
6 years, 11 months ago (2014-01-17 16:39:58 UTC) #4
kustermann
6 years, 11 months ago (2014-01-17 17:20:16 UTC) #5
https://codereview.chromium.org/141713002/diff/1/dart/tools/testing/dart/runt...
File dart/tools/testing/dart/runtime_configuration.dart (right):

https://codereview.chromium.org/141713002/diff/1/dart/tools/testing/dart/runt...
dart/tools/testing/dart/runtime_configuration.dart:42: switch (arch) {
On 2014/01/17 16:39:58, ahe wrote:
> On 2014/01/17 14:19:33, kustermann wrote:
> > => if (['simarm', 'simmips', ...].contains(arch)) {}
> 
> That doesn't make any sense to me. That coding pattern is inherently
inefficient
> and also harder to read.

I think the coding pattern itself is not "inherently inefficient". How efficient
this code will be depends really on the implementation of the compiler.

The reason why I made the comment is because I think it's more readable, than
having a switch-case: it's more verbose, you've to think about the different
cases and the default case, is it fall-through or not. ['...'].contains(arch) is
easier for me.

But, feel free to keep it :)

Powered by Google App Engine
This is Rietveld 408576698