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

Issue 10874072: Use the return value of vm native methods to set the return value, (Closed)

Created:
8 years, 4 months ago by turnidge
Modified:
8 years, 3 months ago
Reviewers:
siva, Ivan Posva
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Use the return value of vm native methods to set the return value, based on Siva's earlier suggestion (he actually suggested putting it in the generated stub, which I haven't done). Added SetReturnUnsafe and use it exactly one place so far. Committed: https://code.google.com/p/dart/source/detail?r=11633

Patch Set 1 #

Total comments: 9

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+244 lines, -322 lines) Patch
M lib/array.cc View 1 5 chunks +6 lines, -6 lines 0 comments Download
M lib/byte_array.cc View 1 18 chunks +22 lines, -34 lines 0 comments Download
M lib/date.cc View 1 2 chunks +4 lines, -9 lines 0 comments Download
M lib/double.cc View 1 15 chunks +29 lines, -57 lines 0 comments Download
M lib/error.cc View 1 2 4 chunks +5 lines, -0 lines 0 comments Download
M lib/growable_array.cc View 1 5 chunks +7 lines, -6 lines 0 comments Download
M lib/integers.cc View 1 15 chunks +15 lines, -27 lines 0 comments Download
M lib/isolate.cc View 1 7 chunks +8 lines, -6 lines 0 comments Download
M lib/math.cc View 1 3 chunks +21 lines, -28 lines 0 comments Download
M lib/mirrors.cc View 1 2 chunks +3 lines, -5 lines 0 comments Download
M lib/object.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M lib/regexp.cc View 1 4 chunks +7 lines, -15 lines 0 comments Download
M lib/stopwatch.cc View 1 1 chunk +2 lines, -5 lines 0 comments Download
M lib/string.cc View 1 6 chunks +12 lines, -22 lines 0 comments Download
M lib/weak_property.cc View 1 2 chunks +4 lines, -5 lines 0 comments Download
M vm/bootstrap.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M vm/bootstrap_natives.h View 1 1 chunk +11 lines, -1 line 1 comment Download
M vm/bootstrap_natives.cc View 1 2 3 3 chunks +14 lines, -10 lines 0 comments Download
M vm/code_descriptors_test.cc View 1 1 chunk +10 lines, -6 lines 0 comments Download
M vm/code_generator.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M vm/code_generator_test.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M vm/code_patcher_ia32_test.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M vm/code_patcher_x64_test.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M vm/native_arguments.h View 1 2 chunks +9 lines, -0 lines 0 comments Download
M vm/native_arguments.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M vm/native_entry.h View 1 2 3 2 chunks +8 lines, -13 lines 0 comments Download
M vm/native_entry_test.h View 1 1 chunk +3 lines, -13 lines 0 comments Download
M vm/native_entry_test.cc View 1 2 chunks +28 lines, -40 lines 0 comments Download
M vm/stub_code_ia32_test.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M vm/stub_code_x64_test.cc View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
turnidge
https://chromiumcodereview.appspot.com/10874072/diff/1/lib/array.cc File lib/array.cc (right): https://chromiumcodereview.appspot.com/10874072/diff/1/lib/array.cc#newcode58 lib/array.cc:58: return Object::null(); I could add some sort of macro ...
8 years, 4 months ago (2012-08-24 23:36:03 UTC) #1
Ivan Posva
First round of comments, some of them we already discussed. -Ivan https://chromiumcodereview.appspot.com/10874072/diff/1/lib/array.cc File lib/array.cc (right): ...
8 years, 3 months ago (2012-08-27 18:20:37 UTC) #2
turnidge
https://chromiumcodereview.appspot.com/10874072/diff/1/vm/native_arguments.h File vm/native_arguments.h (right): https://chromiumcodereview.appspot.com/10874072/diff/1/vm/native_arguments.h#newcode71 vm/native_arguments.h:71: void SetReturnUnsafe(RawObject* value) const; On 2012/08/27 18:20:37, Ivan Posva ...
8 years, 3 months ago (2012-08-28 18:08:21 UTC) #3
siva
https://chromiumcodereview.appspot.com/10874072/diff/1/vm/native_entry.h File vm/native_entry.h (right): https://chromiumcodereview.appspot.com/10874072/diff/1/vm/native_entry.h#newcode48 vm/native_entry.h:48: DN_Helper##name(arguments->isolate(), arguments)); \ I was also proposing that we ...
8 years, 3 months ago (2012-08-28 18:21:20 UTC) #4
turnidge
Hi Ivan, I think I've addressed your comments. A fair number of new files were ...
8 years, 3 months ago (2012-08-29 20:36:49 UTC) #5
Ivan Posva
8 years, 3 months ago (2012-08-30 00:52:39 UTC) #6
LGTM -ip

https://chromiumcodereview.appspot.com/10874072/diff/25003/vm/bootstrap_nativ...
File vm/bootstrap_natives.h (right):

https://chromiumcodereview.appspot.com/10874072/diff/25003/vm/bootstrap_nativ...
vm/bootstrap_natives.h:199: class BootstrapNatives {
: public AllStatic

Powered by Google App Engine
This is Rietveld 408576698