{"action":"created","comment":{"url":"https://api.github.com/repos/Samsung/jerryscript/pulls/comments/38911877","id":38911877,"diff_hunk":"@@ -260,71 +260,23 @@ ecma_op_create_function_object (ecma_collection_header_t *formal_params_collecti\n                                                                                    first_instr_pos);\n \n   // 14.\n-  ecma_number_t* len_p = ecma_alloc_number ();\n-  *len_p = ecma_uint32_to_number (formal_params_collection_p != NULL ? formal_params_collection_p->unit_number : 0);\n-\n   // 15.\n-  ecma_property_descriptor_t length_prop_desc = ecma_make_empty_property_descriptor ();\n-  length_prop_desc.is_value_defined = true;\n-  length_prop_desc.value = ecma_make_number_value (len_p);\n-\n-  ecma_string_t* magic_string_length_p = ecma_get_magic_string (LIT_MAGIC_STRING_LENGTH);\n-  ecma_completion_value_t completion = ecma_op_object_define_own_property (f,\n-                                                                           magic_string_length_p,\n-                                                                           &length_prop_desc,\n-                                                                           false);\n-  ecma_deref_ecma_string (magic_string_length_p);\n-\n-  JERRY_ASSERT (ecma_is_completion_value_normal_true (completion)\n-                || ecma_is_completion_value_normal_false (completion));\n-\n-  ecma_dealloc_number (len_p);\n-  len_p = NULL;\n-\n   // 16.\n-  ecma_object_t *proto_p = ecma_op_create_object_object_noarg ();\n-\n   // 17.\n-  ecma_property_descriptor_t prop_desc = ecma_make_empty_property_descriptor ();\n-  {\n-    prop_desc.is_value_defined = true;\n-    prop_desc.value = ecma_make_object_value (f);\n-\n-    prop_desc.is_writable_defined = true;\n-    prop_desc.is_writable = true;\n-\n-    prop_desc.is_enumerable_defined = true;\n-    prop_desc.is_enumerable = false;\n-\n-    prop_desc.is_configurable_defined = true;\n-    prop_desc.is_configurable = true;\n-  }\n-\n-  ecma_string_t *magic_string_constructor_p = ecma_get_magic_string (LIT_MAGIC_STRING_CONSTRUCTOR);\n-  ecma_op_object_define_own_property (proto_p,\n-                                      magic_string_constructor_p,\n-                                      &prop_desc,\n-                                      false);\n-  ecma_deref_ecma_string (magic_string_constructor_p);\n-\n   // 18.","path":"jerry-core/ecma/operations/ecma-function-object.cpp","position":51,"original_position":51,"commit_id":"c5d1919ab3e0d7d9bee0235810ac246887f6a45a","original_commit_id":"c5d1919ab3e0d7d9bee0235810ac246887f6a45a","user":{"login":"ruben-ayrapetyan","id":11939769,"avatar_url":"https://avatars.githubusercontent.com/u/11939769?v=3","gravatar_id":"","url":"https://api.github.com/users/ruben-ayrapetyan","html_url":"https://github.com/ruben-ayrapetyan","followers_url":"https://api.github.com/users/ruben-ayrapetyan/followers","following_url":"https://api.github.com/users/ruben-ayrapetyan/following{/other_user}","gists_url":"https://api.github.com/users/ruben-ayrapetyan/gists{/gist_id}","starred_url":"https://api.github.com/users/ruben-ayrapetyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruben-ayrapetyan/subscriptions","organizations_url":"https://api.github.com/users/ruben-ayrapetyan/orgs","repos_url":"https://api.github.com/users/ruben-ayrapetyan/repos","events_url":"https://api.github.com/users/ruben-ayrapetyan/events{/privacy}","received_events_url":"https://api.github.com/users/ruben-ayrapetyan/received_events","type":"User","site_admin":false},"body":"No, I'll put them into `/* ... */` comment below.","created_at":"2015-09-08T10:44:11Z","updated_at":"2015-09-08T10:44:11Z","html_url":"https://github.com/Samsung/jerryscript/pull/617#discussion_r38911877","pull_request_url":"https://api.github.com/repos/Samsung/jerryscript/pulls/617","_links":{"self":{"href":"https://api.github.com/repos/Samsung/jerryscript/pulls/comments/38911877"},"html":{"href":"https://github.com/Samsung/jerryscript/pull/617#discussion_r38911877"},"pull_request":{"href":"https://api.github.com/repos/Samsung/jerryscript/pulls/617"}}},"pull_request":{"url":"https://api.github.com/repos/Samsung/jerryscript/pulls/617","id":44227880,"html_url":"https://github.com/Samsung/jerryscript/pull/617","diff_url":"https://github.com/Samsung/jerryscript/pull/617.diff","patch_url":"https://github.com/Samsung/jerryscript/pull/617.patch","issue_url":"https://api.github.com/repos/Samsung/jerryscript/issues/617","number":617,"state":"open","locked":false,"title":"Lazy instantiation of a function object's 'length' and 'prototype' properties","user":{"login":"ruben-ayrapetyan","id":11939769,"avatar_url":"https://avatars.githubusercontent.com/u/11939769?v=3","gravatar_id":"","url":"https://api.github.com/users/ruben-ayrapetyan","html_url":"https://github.com/ruben-ayrapetyan","followers_url":"https://api.github.com/users/ruben-ayrapetyan/followers","following_url":"https://api.github.com/users/ruben-ayrapetyan/following{/other_user}","gists_url":"https://api.github.com/users/ruben-ayrapetyan/gists{/gist_id}","starred_url":"https://api.github.com/users/ruben-ayrapetyan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ruben-ayrapetyan/subscriptions","organizations_url":"https://api.github.com/users/ruben-ayrapetyan/orgs","repos_url":"https://api.github.com/users/ruben-ayrapetyan/repos","events_url":"https://api.github.com/users/ruben-ayrapetyan/events{/privacy}","received_events_url":"https://api.github.com/users/ruben-ayrapetyan/received_events","type":"User","site_admin":false},"body":"Memory consumption on IoT.js\r\n\r\n`test_cwd.js`\r\n - Heap stats:\r\n  - Peak allocated chunks count: 1105 -> 1040                                                                                                 \r\n  - Peak allocated: 70184 bytes -> 66024 bytes                                                                                                       \r\n  - Peak waste: 865 bytes -> 865 bytes\r\n                                          \r\n - Pools stats:\r\n   - Peak pools: 441 -> 342                                                                                                                    \r\n   - Peak allocated chunks: 3525 -> 2734\r\n\r\n - Freya's report:\r\n  - mem_pools_alloc: 27.5 kb -> 21.3 kb\r\n  - mem_heap_alloc_block_try_give_memory_back: 52.9 kb -> 52.9 kb\r\n  - total peak: 247.8 kb -> 243.7 kb\r\n\r\n`test_httpserver.js`:\r\n - Heap stats:\r\n  - Peak allocated chunks count: 2478 -> 2216                                                                                                 \r\n  - Peak allocated: 157288 bytes -> 140892 bytes                                                                                                       \r\n  - Peak waste: 1740 bytes -> 1740 bytes\r\n                                          \r\n - Pools stats:\r\n   - Peak pools: 1441 -> 1188                                                                                                                    \r\n   - Peak allocated chunks: 11527 -> 9503\r\n\r\n - Freya's report:\r\n  - mem_pools_alloc: 90.0 kb -> 74.2 kb\r\n  - mem_heap_alloc_block_try_give_memory_back: 89.6 kb -> 89.6 kb\r\n  - total peak: 391.4 kb -> 375.5 kb","created_at":"2015-09-04T15:05:41Z","updated_at":"2015-09-08T10:44:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"729010448f978ae9e3bbc0cd7dc195b8a1e30239","assignee":{"login":"zherczeg","id":2270193,"avatar_url":"https://avatars.githubusercontent.com/u/2270193?v=3","gravatar_id":"","url":"https://api.github.com/users/zherczeg","html_url":"https://github.com/zherczeg","followers_url":"https://api.github.com/users/zherczeg/followers","following_url":"https://api.github.com/users/zherczeg/following{/other_user}","gists_url":"https://api.github.com/users/zherczeg/gists{/gist_id}","starred_url":"https://api.github.com/users/zherczeg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zherczeg/subscriptions","organizations_url":"https://api.github.com/users/zherczeg/orgs","repos_url":"https://api.github.com/users/zherczeg/repos","events_url":"https://api.github.com/users/zherczeg/events{/privacy}","received_events_url":"https://api.github.com/users/zherczeg/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/Samsung/jerryscript/pulls/617/commits","review_comments_url":"https://api.github.com/repos/Samsung/jerryscript/pulls/617/comments","review_comment_url":"https://api.github.com/repos/Samsung/jerryscript/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Samsung/jerryscript/issues/617/comments","statuses_url":"https://api.github.com/repos/Samsung/jerryscript/statuses/c5d1919ab3e0d7d9bee0235810ac246887f6a45a","head":{"label":"Samsung:Ruben-optimize-length-and-prototype-function-properties-instantiation","ref":"Ruben-optimize-length-and-prototype-function-properties-instantiation","sha":"c5d1919ab3e0d7d9bee0235810ac246887f6a45a","user":{"login":"Samsung","id":6210390,"avatar_url":"https://avatars.githubusercontent.com/u/6210390?v=3","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"repo":{"id":33339660,"name":"jerryscript","full_name":"Samsung/jerryscript","owner":{"login":"Samsung","id":6210390,"avatar_url":"https://avatars.githubusercontent.com/u/6210390?v=3","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Samsung/jerryscript","description":"Ultra-lightweight JavaScript engine for Internet of Things. http://www.jerryscript.net","fork":false,"url":"https://api.github.com/repos/Samsung/jerryscript","forks_url":"https://api.github.com/repos/Samsung/jerryscript/forks","keys_url":"https://api.github.com/repos/Samsung/jerryscript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Samsung/jerryscript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Samsung/jerryscript/teams","hooks_url":"https://api.github.com/repos/Samsung/jerryscript/hooks","issue_events_url":"https://api.github.com/repos/Samsung/jerryscript/issues/events{/number}","events_url":"https://api.github.com/repos/Samsung/jerryscript/events","assignees_url":"https://api.github.com/repos/Samsung/jerryscript/assignees{/user}","branches_url":"https://api.github.com/repos/Samsung/jerryscript/branches{/branch}","tags_url":"https://api.github.com/repos/Samsung/jerryscript/tags","blobs_url":"https://api.github.com/repos/Samsung/jerryscript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Samsung/jerryscript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Samsung/jerryscript/git/refs{/sha}","trees_url":"https://api.github.com/repos/Samsung/jerryscript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Samsung/jerryscript/statuses/{sha}","languages_url":"https://api.github.com/repos/Samsung/jerryscript/languages","stargazers_url":"https://api.github.com/repos/Samsung/jerryscript/stargazers","contributors_url":"https://api.github.com/repos/Samsung/jerryscript/contributors","subscribers_url":"https://api.github.com/repos/Samsung/jerryscript/subscribers","subscription_url":"https://api.github.com/repos/Samsung/jerryscript/subscription","commits_url":"https://api.github.com/repos/Samsung/jerryscript/commits{/sha}","git_commits_url":"https://api.github.com/repos/Samsung/jerryscript/git/commits{/sha}","comments_url":"https://api.github.com/repos/Samsung/jerryscript/comments{/number}","issue_comment_url":"https://api.github.com/repos/Samsung/jerryscript/issues/comments{/number}","contents_url":"https://api.github.com/repos/Samsung/jerryscript/contents/{+path}","compare_url":"https://api.github.com/repos/Samsung/jerryscript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Samsung/jerryscript/merges","archive_url":"https://api.github.com/repos/Samsung/jerryscript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Samsung/jerryscript/downloads","issues_url":"https://api.github.com/repos/Samsung/jerryscript/issues{/number}","pulls_url":"https://api.github.com/repos/Samsung/jerryscript/pulls{/number}","milestones_url":"https://api.github.com/repos/Samsung/jerryscript/milestones{/number}","notifications_url":"https://api.github.com/repos/Samsung/jerryscript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Samsung/jerryscript/labels{/name}","releases_url":"https://api.github.com/repos/Samsung/jerryscript/releases{/id}","created_at":"2015-04-03T01:10:31Z","updated_at":"2015-09-07T21:18:33Z","pushed_at":"2015-09-07T19:24:15Z","git_url":"git://github.com/Samsung/jerryscript.git","ssh_url":"git@github.com:Samsung/jerryscript.git","clone_url":"https://github.com/Samsung/jerryscript.git","svn_url":"https://github.com/Samsung/jerryscript","homepage":"","size":12569,"stargazers_count":940,"watchers_count":940,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":66,"mirror_url":null,"open_issues_count":101,"forks":66,"open_issues":101,"watchers":940,"default_branch":"master"}},"base":{"label":"Samsung:master","ref":"master","sha":"a26c45421988d138a01408ecfefb80816e3bcf81","user":{"login":"Samsung","id":6210390,"avatar_url":"https://avatars.githubusercontent.com/u/6210390?v=3","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"repo":{"id":33339660,"name":"jerryscript","full_name":"Samsung/jerryscript","owner":{"login":"Samsung","id":6210390,"avatar_url":"https://avatars.githubusercontent.com/u/6210390?v=3","gravatar_id":"","url":"https://api.github.com/users/Samsung","html_url":"https://github.com/Samsung","followers_url":"https://api.github.com/users/Samsung/followers","following_url":"https://api.github.com/users/Samsung/following{/other_user}","gists_url":"https://api.github.com/users/Samsung/gists{/gist_id}","starred_url":"https://api.github.com/users/Samsung/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Samsung/subscriptions","organizations_url":"https://api.github.com/users/Samsung/orgs","repos_url":"https://api.github.com/users/Samsung/repos","events_url":"https://api.github.com/users/Samsung/events{/privacy}","received_events_url":"https://api.github.com/users/Samsung/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Samsung/jerryscript","description":"Ultra-lightweight JavaScript engine for Internet of Things. http://www.jerryscript.net","fork":false,"url":"https://api.github.com/repos/Samsung/jerryscript","forks_url":"https://api.github.com/repos/Samsung/jerryscript/forks","keys_url":"https://api.github.com/repos/Samsung/jerryscript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Samsung/jerryscript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Samsung/jerryscript/teams","hooks_url":"https://api.github.com/repos/Samsung/jerryscript/hooks","issue_events_url":"https://api.github.com/repos/Samsung/jerryscript/issues/events{/number}","events_url":"https://api.github.com/repos/Samsung/jerryscript/events","assignees_url":"https://api.github.com/repos/Samsung/jerryscript/assignees{/user}","branches_url":"https://api.github.com/repos/Samsung/jerryscript/branches{/branch}","tags_url":"https://api.github.com/repos/Samsung/jerryscript/tags","blobs_url":"https://api.github.com/repos/Samsung/jerryscript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Samsung/jerryscript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Samsung/jerryscript/git/refs{/sha}","trees_url":"https://api.github.com/repos/Samsung/jerryscript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Samsung/jerryscript/statuses/{sha}","languages_url":"https://api.github.com/repos/Samsung/jerryscript/languages","stargazers_url":"https://api.github.com/repos/Samsung/jerryscript/stargazers","contributors_url":"https://api.github.com/repos/Samsung/jerryscript/contributors","subscribers_url":"https://api.github.com/repos/Samsung/jerryscript/subscribers","subscription_url":"https://api.github.com/repos/Samsung/jerryscript/subscription","commits_url":"https://api.github.com/repos/Samsung/jerryscript/commits{/sha}","git_commits_url":"https://api.github.com/repos/Samsung/jerryscript/git/commits{/sha}","comments_url":"https://api.github.com/repos/Samsung/jerryscript/comments{/number}","issue_comment_url":"https://api.github.com/repos/Samsung/jerryscript/issues/comments{/number}","contents_url":"https://api.github.com/repos/Samsung/jerryscript/contents/{+path}","compare_url":"https://api.github.com/repos/Samsung/jerryscript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Samsung/jerryscript/merges","archive_url":"https://api.github.com/repos/Samsung/jerryscript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Samsung/jerryscript/downloads","issues_url":"https://api.github.com/repos/Samsung/jerryscript/issues{/number}","pulls_url":"https://api.github.com/repos/Samsung/jerryscript/pulls{/number}","milestones_url":"https://api.github.com/repos/Samsung/jerryscript/milestones{/number}","notifications_url":"https://api.github.com/repos/Samsung/jerryscript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Samsung/jerryscript/labels{/name}","releases_url":"https://api.github.com/repos/Samsung/jerryscript/releases{/id}","created_at":"2015-04-03T01:10:31Z","updated_at":"2015-09-07T21:18:33Z","pushed_at":"2015-09-07T19:24:15Z","git_url":"git://github.com/Samsung/jerryscript.git","ssh_url":"git@github.com:Samsung/jerryscript.git","clone_url":"https://github.com/Samsung/jerryscript.git","svn_url":"https://github.com/Samsung/jerryscript","homepage":"","size":12569,"stargazers_count":940,"watchers_count":940,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":66,"mirror_url":null,"open_issues_count":101,"forks":66,"open_issues":101,"watchers":940,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Samsung/jerryscript/pulls/617"},"html":{"href":"https://github.com/Samsung/jerryscript/pull/617"},"issue":{"href":"https://api.github.com/repos/Samsung/jerryscript/issues/617"},"comments":{"href":"https://api.github.com/repos/Samsung/jerryscript/issues/617/comments"},"review_comments":{"href":"https://api.github.com/repos/Samsung/jerryscript/pulls/617/comments"},"review_comment":{"href":"https://api.github.com/repos/Samsung/jerryscript/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Samsung/jerryscript/pulls/617/commits"},"statuses":{"href":"https://api.github.com/repos/Samsung/jerryscript/statuses/c5d1919ab3e0d7d9bee0235810ac246887f6a45a"}}}}