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

Issue 11312019: Remove references to ObjectNotClosureException and ClosureArgumentMismatchException (Closed)

Created:
8 years, 1 month ago by regis
Modified:
8 years, 1 month ago
Reviewers:
srdjan
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Remove references to ObjectNotClosureException and ClosureArgumentMismatchException from the VM (issue 6124). These are replaced with NoSuchMethodError for now (work in progress). Committed: https://code.google.com/p/dart/source/detail?r=14362

Patch Set 1 #

Total comments: 16

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -59 lines) Patch
M runtime/lib/errors_patch.dart View 1 1 chunk +0 lines, -12 lines 0 comments Download
M runtime/vm/code_generator.cc View 1 3 chunks +96 lines, -11 lines 0 comments Download
M runtime/vm/exceptions.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M runtime/vm/exceptions.cc View 1 1 chunk +0 lines, -8 lines 0 comments Download
M runtime/vm/flow_graph_compiler_ia32.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M runtime/vm/flow_graph_compiler_x64.cc View 1 2 chunks +3 lines, -0 lines 0 comments Download
M runtime/vm/symbols.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M tests/co19/co19-dart2dart.status View 1 3 chunks +0 lines, -9 lines 0 comments Download
M tests/co19/co19-runtime.status View 1 4 chunks +1 line, -11 lines 0 comments Download
M tests/language/language.status View 1 2 chunks +0 lines, -6 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
regis
8 years, 1 month ago (2012-10-31 17:32:08 UTC) #1
srdjan
LGTM https://codereview.chromium.org/11312019/diff/1/runtime/lib/object.cc File runtime/lib/object.cc (right): https://codereview.chromium.org/11312019/diff/1/runtime/lib/object.cc#newcode28 runtime/lib/object.cc:28: // TODO(regis): Change to Exceptions::kNoSuchMethod. Remove the TODO ...
8 years, 1 month ago (2012-10-31 17:52:51 UTC) #2
regis
8 years, 1 month ago (2012-10-31 18:04:37 UTC) #3
Thanks!

https://codereview.chromium.org/11312019/diff/1/runtime/lib/object.cc
File runtime/lib/object.cc (right):

https://codereview.chromium.org/11312019/diff/1/runtime/lib/object.cc#newcode28
runtime/lib/object.cc:28: // TODO(regis): Change to Exceptions::kNoSuchMethod.
On 2012/10/31 17:52:51, srdjan wrote:
> Remove the TODO since this has not been agreed upon.

Done.

https://codereview.chromium.org/11312019/diff/1/runtime/vm/code_generator.cc
File runtime/vm/code_generator.cc (right):

https://codereview.chromium.org/11312019/diff/1/runtime/vm/code_generator.cc#...
runtime/vm/code_generator.cc:1193: 
On 2012/10/31 17:52:51, srdjan wrote:
> Please add a comment saying that the object is not a closure and that we are
> throwing an exception.

Added:
  // The result instance is not a closure, try to invoke method "call" before
  // throwing a NoSuchMethodError.

https://codereview.chromium.org/11312019/diff/1/runtime/vm/code_generator.cc#...
runtime/vm/code_generator.cc:1199: GrowableArray<const Object*> dart_arguments;
On 2012/10/31 17:52:51, srdjan wrote:
> dart_arguments(4);

Done (5).

https://codereview.chromium.org/11312019/diff/1/runtime/vm/code_generator.cc#...
runtime/vm/code_generator.cc:1203: const Object& null_object =
Object::Handle(Object::null());
On 2012/10/31 17:52:51, srdjan wrote:
> Why not just Object::Handle();?

Done.

https://codereview.chromium.org/11312019/diff/1/runtime/vm/code_generator.cc#...
runtime/vm/code_generator.cc:1209: // Report if a function with same name (but
different arguments) has been
On 2012/10/31 17:52:51, srdjan wrote:
> Maybe adapt argument that we are not looking at any function, but specifically
> at  function named 'call'.

Done.

https://codereview.chromium.org/11312019/diff/1/runtime/vm/code_generator.cc#...
runtime/vm/code_generator.cc:1385: // TODO(regis): Change to
Exceptions::kNoSuchMethod.
On 2012/10/31 17:52:51, srdjan wrote:
> Remove TODO

Done.

https://codereview.chromium.org/11312019/diff/1/runtime/vm/code_generator.cc#...
runtime/vm/code_generator.cc:1399: // found.
On 2012/10/31 17:52:51, srdjan wrote:
> ditto 'a function with ...' -> 'function named "call" .." or similar 

Done.

https://codereview.chromium.org/11312019/diff/1/runtime/vm/code_generator.cc#...
runtime/vm/code_generator.cc:1432: const Object& null_object =
Object::Handle(Object::null());
On 2012/10/31 17:52:51, srdjan wrote:
> Why not Object::Handle(); ?

Done.

Powered by Google App Engine
This is Rietveld 408576698