{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/23765","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/23765/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/23765/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/23765/events","html_url":"https://github.com/dart-lang/sdk/issues/23765","id":92505104,"number":23765,"title":"We should consider intrinsifying Object_instanceOf for calls from unoptimized code","user":{"login":"a-siva","id":8633293,"avatar_url":"https://avatars.githubusercontent.com/u/8633293?v=3","gravatar_id":"","url":"https://api.github.com/users/a-siva","html_url":"https://github.com/a-siva","followers_url":"https://api.github.com/users/a-siva/followers","following_url":"https://api.github.com/users/a-siva/following{/other_user}","gists_url":"https://api.github.com/users/a-siva/gists{/gist_id}","starred_url":"https://api.github.com/users/a-siva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a-siva/subscriptions","organizations_url":"https://api.github.com/users/a-siva/orgs","repos_url":"https://api.github.com/users/a-siva/repos","events_url":"https://api.github.com/users/a-siva/events{/privacy}","received_events_url":"https://api.github.com/users/a-siva/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Accepted","name":"Accepted","color":"ededed"},{"url":"https://api.github.com/repos/dart-lang/sdk/labels/Area-VM","name":"Area-VM","color":"ededed"}],"state":"closed","locked":false,"assignee":{"login":"sgmitrovic","id":5032565,"avatar_url":"https://avatars.githubusercontent.com/u/5032565?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmitrovic","html_url":"https://github.com/sgmitrovic","followers_url":"https://api.github.com/users/sgmitrovic/followers","following_url":"https://api.github.com/users/sgmitrovic/following{/other_user}","gists_url":"https://api.github.com/users/sgmitrovic/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmitrovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmitrovic/subscriptions","organizations_url":"https://api.github.com/users/sgmitrovic/orgs","repos_url":"https://api.github.com/users/sgmitrovic/repos","events_url":"https://api.github.com/users/sgmitrovic/events{/privacy}","received_events_url":"https://api.github.com/users/sgmitrovic/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-07-01T23:16:19Z","updated_at":"2015-07-09T22:12:02Z","closed_at":"2015-07-09T22:12:02Z","body":"The function Object_instanceOf is called a lot from unoptimized code due to patterns like '(a is double)' being used. It would be nice if we could intrinsify this so that we don't make native calls.\r\nThe profile of a sky app (mine-digger) shows about 13% of ticks in this native function.\r\n@sgmitrovic "},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/120162862","html_url":"https://github.com/dart-lang/sdk/issues/23765#issuecomment-120162862","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/23765","id":120162862,"user":{"login":"sgmitrovic","id":5032565,"avatar_url":"https://avatars.githubusercontent.com/u/5032565?v=3","gravatar_id":"","url":"https://api.github.com/users/sgmitrovic","html_url":"https://github.com/sgmitrovic","followers_url":"https://api.github.com/users/sgmitrovic/followers","following_url":"https://api.github.com/users/sgmitrovic/following{/other_user}","gists_url":"https://api.github.com/users/sgmitrovic/gists{/gist_id}","starred_url":"https://api.github.com/users/sgmitrovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sgmitrovic/subscriptions","organizations_url":"https://api.github.com/users/sgmitrovic/orgs","repos_url":"https://api.github.com/users/sgmitrovic/repos","events_url":"https://api.github.com/users/sgmitrovic/events{/privacy}","received_events_url":"https://api.github.com/users/sgmitrovic/received_events","type":"User","site_admin":false},"created_at":"2015-07-09T22:12:02Z","updated_at":"2015-07-09T22:12:02Z","body":"Added specialized instanceOf methods for some common types: String, Smi, int, num, double. This causes significant reduction of time spent in instanceOf and significant reduction of startup time. Adding intrinsics for each of those natives did not demonstrate any performance improvement, therefore I would refrain from adding intrinsics unless they need is demonstrated through profiling."}}