{"action":"created","comment":{"url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/pulls/comments/31909164","id":31909164,"diff_hunk":"@@ -1588,9 +1588,27 @@ def func(interp, s_frame, w_block_closure, w_a0):\n CTXT_AT_PUT = 211\n CTXT_SIZE = 212\n \n+@expose_primitive(CTXT_SIZE, unwrap_spec=[object])\n+def func(interp, s_frame, w_rcvr):\n+    from spyvm.interpreter import Return\n+    from spyvm.error import MethodNotFound\n+    try:\n+        s_frame._sendSelector(interp.image.w_numTemps, 0, interp, w_rcvr,\n+                              w_rcvr.class_shadow(interp.space))\n+    except Return, ret:\n+        # numTemps should always return\n+        ret_value = ret.value\n+        if isinstance(ret_value, model.W_SmallInteger):\n+            return interp.space.wrap_int(ret_value.value + 1)","path":"spyvm/primitives.py","position":15,"original_position":15,"commit_id":"b5bca631f7e0caf26965d956e9090d0de1133d45","original_commit_id":"b5bca631f7e0caf26965d956e9090d0de1133d45","user":{"login":"krono","id":119279,"avatar_url":"https://avatars.githubusercontent.com/u/119279?v=3","gravatar_id":"","url":"https://api.github.com/users/krono","html_url":"https://github.com/krono","followers_url":"https://api.github.com/users/krono/followers","following_url":"https://api.github.com/users/krono/following{/other_user}","gists_url":"https://api.github.com/users/krono/gists{/gist_id}","starred_url":"https://api.github.com/users/krono/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krono/subscriptions","organizations_url":"https://api.github.com/users/krono/orgs","repos_url":"https://api.github.com/users/krono/repos","events_url":"https://api.github.com/users/krono/events{/privacy}","received_events_url":"https://api.github.com/users/krono/received_events","type":"User","site_admin":false},"body":"I am unsure here.\r\nThe primitive shoud work whether or not the image redefines `numTemps` on contexts","created_at":"2015-06-08T12:34:57Z","updated_at":"2015-06-08T12:34:57Z","html_url":"https://github.com/HPI-SWA-Lab/RSqueak/pull/81#discussion_r31909164","pull_request_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/pulls/81","_links":{"self":{"href":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/pulls/comments/31909164"},"html":{"href":"https://github.com/HPI-SWA-Lab/RSqueak/pull/81#discussion_r31909164"},"pull_request":{"href":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/pulls/81"}}},"pull_request":{"url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/pulls/81","id":37147518,"html_url":"https://github.com/HPI-SWA-Lab/RSqueak/pull/81","diff_url":"https://github.com/HPI-SWA-Lab/RSqueak/pull/81.diff","patch_url":"https://github.com/HPI-SWA-Lab/RSqueak/pull/81.patch","issue_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/issues/81","number":81,"state":"open","locked":false,"title":"Fix MethodContext>>basicSize","user":{"login":"matthias-springer","id":2033320,"avatar_url":"https://avatars.githubusercontent.com/u/2033320?v=3","gravatar_id":"","url":"https://api.github.com/users/matthias-springer","html_url":"https://github.com/matthias-springer","followers_url":"https://api.github.com/users/matthias-springer/followers","following_url":"https://api.github.com/users/matthias-springer/following{/other_user}","gists_url":"https://api.github.com/users/matthias-springer/gists{/gist_id}","starred_url":"https://api.github.com/users/matthias-springer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matthias-springer/subscriptions","organizations_url":"https://api.github.com/users/matthias-springer/orgs","repos_url":"https://api.github.com/users/matthias-springer/repos","events_url":"https://api.github.com/users/matthias-springer/events{/privacy}","received_events_url":"https://api.github.com/users/matthias-springer/received_events","type":"User","site_admin":false},"body":"This is an attempt to fix #79.","created_at":"2015-06-08T12:21:27Z","updated_at":"2015-06-08T12:34:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a0bc6c090c9d8d42938c405295931379eb9c4392","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/pulls/81/commits","review_comments_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/pulls/81/comments","review_comment_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/pulls/comments{/number}","comments_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/issues/81/comments","statuses_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/statuses/b5bca631f7e0caf26965d956e9090d0de1133d45","head":{"label":"HPI-SWA-Lab:matthias/context_size","ref":"matthias/context_size","sha":"b5bca631f7e0caf26965d956e9090d0de1133d45","user":{"login":"HPI-SWA-Lab","id":5765023,"avatar_url":"https://avatars.githubusercontent.com/u/5765023?v=3","gravatar_id":"","url":"https://api.github.com/users/HPI-SWA-Lab","html_url":"https://github.com/HPI-SWA-Lab","followers_url":"https://api.github.com/users/HPI-SWA-Lab/followers","following_url":"https://api.github.com/users/HPI-SWA-Lab/following{/other_user}","gists_url":"https://api.github.com/users/HPI-SWA-Lab/gists{/gist_id}","starred_url":"https://api.github.com/users/HPI-SWA-Lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HPI-SWA-Lab/subscriptions","organizations_url":"https://api.github.com/users/HPI-SWA-Lab/orgs","repos_url":"https://api.github.com/users/HPI-SWA-Lab/repos","events_url":"https://api.github.com/users/HPI-SWA-Lab/events{/privacy}","received_events_url":"https://api.github.com/users/HPI-SWA-Lab/received_events","type":"Organization","site_admin":false},"repo":{"id":27872143,"name":"RSqueak","full_name":"HPI-SWA-Lab/RSqueak","owner":{"login":"HPI-SWA-Lab","id":5765023,"avatar_url":"https://avatars.githubusercontent.com/u/5765023?v=3","gravatar_id":"","url":"https://api.github.com/users/HPI-SWA-Lab","html_url":"https://github.com/HPI-SWA-Lab","followers_url":"https://api.github.com/users/HPI-SWA-Lab/followers","following_url":"https://api.github.com/users/HPI-SWA-Lab/following{/other_user}","gists_url":"https://api.github.com/users/HPI-SWA-Lab/gists{/gist_id}","starred_url":"https://api.github.com/users/HPI-SWA-Lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HPI-SWA-Lab/subscriptions","organizations_url":"https://api.github.com/users/HPI-SWA-Lab/orgs","repos_url":"https://api.github.com/users/HPI-SWA-Lab/repos","events_url":"https://api.github.com/users/HPI-SWA-Lab/events{/privacy}","received_events_url":"https://api.github.com/users/HPI-SWA-Lab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HPI-SWA-Lab/RSqueak","description":"A Squeak VM written in RPython","fork":false,"url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak","forks_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/forks","keys_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/teams","hooks_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/hooks","issue_events_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/issues/events{/number}","events_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/events","assignees_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/assignees{/user}","branches_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/branches{/branch}","tags_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/tags","blobs_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/git/refs{/sha}","trees_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/statuses/{sha}","languages_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/languages","stargazers_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/stargazers","contributors_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/contributors","subscribers_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/subscribers","subscription_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/subscription","commits_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/commits{/sha}","git_commits_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/git/commits{/sha}","comments_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/comments{/number}","issue_comment_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/issues/comments{/number}","contents_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/contents/{+path}","compare_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/merges","archive_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/downloads","issues_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/issues{/number}","pulls_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/pulls{/number}","milestones_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/milestones{/number}","notifications_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/labels{/name}","releases_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/releases{/id}","created_at":"2014-12-11T13:12:13Z","updated_at":"2015-06-08T05:54:56Z","pushed_at":"2015-06-08T12:21:27Z","git_url":"git://github.com/HPI-SWA-Lab/RSqueak.git","ssh_url":"git@github.com:HPI-SWA-Lab/RSqueak.git","clone_url":"https://github.com/HPI-SWA-Lab/RSqueak.git","svn_url":"https://github.com/HPI-SWA-Lab/RSqueak","homepage":"","size":699135,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":33,"forks":2,"open_issues":33,"watchers":14,"default_branch":"master"}},"base":{"label":"HPI-SWA-Lab:master","ref":"master","sha":"5a9d353a7ce37f6ffaf8ef235ab0a5634af605d9","user":{"login":"HPI-SWA-Lab","id":5765023,"avatar_url":"https://avatars.githubusercontent.com/u/5765023?v=3","gravatar_id":"","url":"https://api.github.com/users/HPI-SWA-Lab","html_url":"https://github.com/HPI-SWA-Lab","followers_url":"https://api.github.com/users/HPI-SWA-Lab/followers","following_url":"https://api.github.com/users/HPI-SWA-Lab/following{/other_user}","gists_url":"https://api.github.com/users/HPI-SWA-Lab/gists{/gist_id}","starred_url":"https://api.github.com/users/HPI-SWA-Lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HPI-SWA-Lab/subscriptions","organizations_url":"https://api.github.com/users/HPI-SWA-Lab/orgs","repos_url":"https://api.github.com/users/HPI-SWA-Lab/repos","events_url":"https://api.github.com/users/HPI-SWA-Lab/events{/privacy}","received_events_url":"https://api.github.com/users/HPI-SWA-Lab/received_events","type":"Organization","site_admin":false},"repo":{"id":27872143,"name":"RSqueak","full_name":"HPI-SWA-Lab/RSqueak","owner":{"login":"HPI-SWA-Lab","id":5765023,"avatar_url":"https://avatars.githubusercontent.com/u/5765023?v=3","gravatar_id":"","url":"https://api.github.com/users/HPI-SWA-Lab","html_url":"https://github.com/HPI-SWA-Lab","followers_url":"https://api.github.com/users/HPI-SWA-Lab/followers","following_url":"https://api.github.com/users/HPI-SWA-Lab/following{/other_user}","gists_url":"https://api.github.com/users/HPI-SWA-Lab/gists{/gist_id}","starred_url":"https://api.github.com/users/HPI-SWA-Lab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HPI-SWA-Lab/subscriptions","organizations_url":"https://api.github.com/users/HPI-SWA-Lab/orgs","repos_url":"https://api.github.com/users/HPI-SWA-Lab/repos","events_url":"https://api.github.com/users/HPI-SWA-Lab/events{/privacy}","received_events_url":"https://api.github.com/users/HPI-SWA-Lab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/HPI-SWA-Lab/RSqueak","description":"A Squeak VM written in RPython","fork":false,"url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak","forks_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/forks","keys_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/teams","hooks_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/hooks","issue_events_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/issues/events{/number}","events_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/events","assignees_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/assignees{/user}","branches_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/branches{/branch}","tags_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/tags","blobs_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/git/refs{/sha}","trees_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/statuses/{sha}","languages_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/languages","stargazers_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/stargazers","contributors_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/contributors","subscribers_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/subscribers","subscription_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/subscription","commits_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/commits{/sha}","git_commits_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/git/commits{/sha}","comments_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/comments{/number}","issue_comment_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/issues/comments{/number}","contents_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/contents/{+path}","compare_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/merges","archive_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/downloads","issues_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/issues{/number}","pulls_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/pulls{/number}","milestones_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/milestones{/number}","notifications_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/labels{/name}","releases_url":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/releases{/id}","created_at":"2014-12-11T13:12:13Z","updated_at":"2015-06-08T05:54:56Z","pushed_at":"2015-06-08T12:21:27Z","git_url":"git://github.com/HPI-SWA-Lab/RSqueak.git","ssh_url":"git@github.com:HPI-SWA-Lab/RSqueak.git","clone_url":"https://github.com/HPI-SWA-Lab/RSqueak.git","svn_url":"https://github.com/HPI-SWA-Lab/RSqueak","homepage":"","size":699135,"stargazers_count":14,"watchers_count":14,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":33,"forks":2,"open_issues":33,"watchers":14,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/pulls/81"},"html":{"href":"https://github.com/HPI-SWA-Lab/RSqueak/pull/81"},"issue":{"href":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/issues/81"},"comments":{"href":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/issues/81/comments"},"review_comments":{"href":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/pulls/81/comments"},"review_comment":{"href":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/pulls/81/commits"},"statuses":{"href":"https://api.github.com/repos/HPI-SWA-Lab/RSqueak/statuses/b5bca631f7e0caf26965d956e9090d0de1133d45"}}}}