eb88e500d2
which combines Dart_GetNativeArgument and Dart_GetNativeInstanceField Dartium always gets the receiver by first getting the NativeArgument corresponding to 0 using Dart_GetNativeArgument and then invokes Dart_GetNativeInstanceField on the returned handle to get the native field corresponding to the native DOM element. When Dartium is changed to use this combined API call the numbers for a sample Dromaeo-drt benchmark is as follows: Dromaeo-drt getAttribute runs-per-second 653.0 Dromaeo-drt element_property_access runs-per-second 579.0 Dromaeo-drt setAttribute runs-per-second 396.0 Dromaeo-drt element_property_assignment runs-per-second 539.0 When the old API calls are used: Dromaeo-drt getAttribute runs-per-second 596.0 Dromaeo-drt element_property_access runs-per-second 528.0 Dromaeo-drt setAttribute runs-per-second 385.0 Dromaeo-drt element_property_assignment runs-per-second 513.49 R=srdjan@google.com Review URL: https://codereview.chromium.org//19563005 git-svn-id: https://dart.googlecode.com/svn/branches/bleeding_edge/dart@25354 260f80e4-7a28-3924-810f-c04153c831b5