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

Issue 10386060: Speed up the Dart_IsBlah functions by checking the class index. This (Closed)

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

Description

Speed up the Dart_IsBlah functions by checking the class index. This allows us to avoid creating handles (and therefore handle scopes) in these functions. Before: UseDartApi : 66395 After: UseDartApi : 42730 Main improvement comes from speeding up Dart_IsError. Committed: https://code.google.com/p/dart/source/detail?r=7619

Patch Set 1 #

Patch Set 2 : #

Total comments: 12

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -98 lines) Patch
M vm/dart_api_impl.h View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M vm/dart_api_impl.cc View 1 2 3 16 chunks +52 lines, -95 lines 0 comments Download
M vm/raw_object.h View 1 2 3 3 chunks +140 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
turnidge
8 years, 7 months ago (2012-05-09 23:06:06 UTC) #1
Ivan Posva
LGTM with comments. -Ivan https://chromiumcodereview.appspot.com/10386060/diff/4001/vm/dart_api_impl.cc File vm/dart_api_impl.cc (right): https://chromiumcodereview.appspot.com/10386060/diff/4001/vm/dart_api_impl.cc#newcode262 vm/dart_api_impl.cc:262: ASSERT(kError + 5 == kInstance); ...
8 years, 7 months ago (2012-05-09 23:28:16 UTC) #2
turnidge
Ivan, Please take another look. Todd https://chromiumcodereview.appspot.com/10386060/diff/4001/vm/dart_api_impl.cc File vm/dart_api_impl.cc (right): https://chromiumcodereview.appspot.com/10386060/diff/4001/vm/dart_api_impl.cc#newcode262 vm/dart_api_impl.cc:262: ASSERT(kError + 5 ...
8 years, 7 months ago (2012-05-10 17:49:38 UTC) #3
Ivan Posva
8 years, 7 months ago (2012-05-11 20:03:57 UTC) #4
LGTM -ip

Powered by Google App Engine
This is Rietveld 408576698