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

Issue 10052027: Add fast paths for Smi values in the dart embedding api. (Closed)

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

Description

Add fast paths for Smi values in the dart embedding api. This speeds up the UseDartApi microbenchmark by 30%. Thanks to Carl for suggesting this. Committed: https://code.google.com/p/dart/source/detail?r=6602

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+70 lines, -17 lines) Patch
M vm/dart_api_impl.h View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
M vm/dart_api_impl.cc View 1 2 6 chunks +48 lines, -5 lines 0 comments Download
M vm/object.h View 1 2 2 chunks +10 lines, -2 lines 1 comment Download
M vm/object.cc View 1 2 1 chunk +0 lines, -10 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
turnidge
8 years, 8 months ago (2012-04-11 22:59:40 UTC) #1
cshapiro
lgtm if possible reusing the equivalent code in the Smi or RawObject types is preferable. ...
8 years, 8 months ago (2012-04-11 23:29:09 UTC) #2
siva
DBC https://chromiumcodereview.appspot.com/10052027/diff/6001/vm/dart_api_impl.cc File vm/dart_api_impl.cc (right): https://chromiumcodereview.appspot.com/10052027/diff/6001/vm/dart_api_impl.cc#newcode1166 vm/dart_api_impl.cc:1166: if ((value <= Smi::kMaxValue) && (value >= Smi::kMinValue)) ...
8 years, 8 months ago (2012-04-12 02:18:13 UTC) #3
turnidge
https://chromiumcodereview.appspot.com/10052027/diff/6001/vm/dart_api_impl.cc File vm/dart_api_impl.cc (right): https://chromiumcodereview.appspot.com/10052027/diff/6001/vm/dart_api_impl.cc#newcode1166 vm/dart_api_impl.cc:1166: if ((value <= Smi::kMaxValue) && (value >= Smi::kMinValue)) { ...
8 years, 8 months ago (2012-04-16 20:07:24 UTC) #4
cshapiro
8 years, 8 months ago (2012-04-16 20:32:45 UTC) #5
https://chromiumcodereview.appspot.com/10052027/diff/13001/vm/object.h
File vm/object.h (right):

https://chromiumcodereview.appspot.com/10052027/diff/13001/vm/object.h#newcod...
vm/object.h:2750: friend class Api;  // For ValueFromRaw
Co-locate this with the other friend classes below?

Powered by Google App Engine
This is Rietveld 408576698