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

Issue 10542123: Add support for leaf runtime calls (Closed)

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

Description

Add support for leaf runtime calls - use a NoGCScope around these calls - do not save and restore exit frame info, context register etc. - Do not create a zone and handlescope by default Committed: https://code.google.com/p/dart/source/detail?r=8699

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -23 lines) Patch
M vm/runtime_entry.h View 1 2 3 4 4 chunks +27 lines, -5 lines 0 comments Download
M vm/runtime_entry_ia32.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M vm/runtime_entry_test.cc View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M vm/runtime_entry_x64.cc View 1 2 3 4 1 chunk +5 lines, -1 line 0 comments Download
M vm/stub_code.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M vm/stub_code_ia32.cc View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
M vm/stub_code_ia32_test.cc View 1 2 3 4 3 chunks +51 lines, -8 lines 0 comments Download
M vm/stub_code_x64.cc View 1 2 3 4 1 chunk +43 lines, -0 lines 0 comments Download
M vm/stub_code_x64_test.cc View 1 2 3 4 3 chunks +52 lines, -8 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
siva
8 years, 6 months ago (2012-06-12 18:51:11 UTC) #1
srdjan
DBC http://codereview.chromium.org/10542123/diff/6002/vm/runtime_entry.h File vm/runtime_entry.h (right): http://codereview.chromium.org/10542123/diff/6002/vm/runtime_entry.h#newcode45 vm/runtime_entry.h:45: int argument_count_; const http://codereview.chromium.org/10542123/diff/6002/vm/runtime_entry.h#newcode46 vm/runtime_entry.h:46: bool is_leaf_; const ...
8 years, 6 months ago (2012-06-12 20:10:41 UTC) #2
siva
http://codereview.chromium.org/10542123/diff/6002/vm/runtime_entry.h File vm/runtime_entry.h (right): http://codereview.chromium.org/10542123/diff/6002/vm/runtime_entry.h#newcode45 vm/runtime_entry.h:45: int argument_count_; On 2012/06/12 20:10:41, srdjan wrote: > const ...
8 years, 6 months ago (2012-06-12 21:18:04 UTC) #3
Ivan Posva
LGTM with comment. -Ivan https://chromiumcodereview.appspot.com/10542123/diff/11012/vm/runtime_entry_test.cc File vm/runtime_entry_test.cc (right): https://chromiumcodereview.appspot.com/10542123/diff/11012/vm/runtime_entry_test.cc#newcode54 vm/runtime_entry_test.cc:54: return Smi::New(result); I would avoid ...
8 years, 6 months ago (2012-06-14 04:09:35 UTC) #4
siva
8 years, 6 months ago (2012-06-15 00:09:41 UTC) #5
https://chromiumcodereview.appspot.com/10542123/diff/11012/vm/runtime_entry_t...
File vm/runtime_entry_test.cc (right):

https://chromiumcodereview.appspot.com/10542123/diff/11012/vm/runtime_entry_t...
vm/runtime_entry_test.cc:54: return Smi::New(result);
On 2012/06/14 04:09:35, Ivan Posva wrote:
> I would avoid any calls to handle based methods here, even if they are known
not
> to involve handles or allocation.
> 
> How about:
> intptr_t result = reinterpret_cast<intptr_t>(args.At(0)) +
> reinterpret_cast<intptr_t>(args.At(1));
> return result;

Done.

Powered by Google App Engine
This is Rietveld 408576698