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

Side by Side Diff: src/profile-generator.cc

Issue 8199004: Reimplement Function.prototype.bind. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1914 matching lines...) Expand 10 before | Expand all | Expand 10 after
1925 heap_->prototype_symbol(), js_fun->prototype()); 1925 heap_->prototype_symbol(), js_fun->prototype());
1926 } 1926 }
1927 } 1927 }
1928 SetInternalReference(js_fun, entry, 1928 SetInternalReference(js_fun, entry,
1929 "shared", js_fun->shared(), 1929 "shared", js_fun->shared(),
1930 JSFunction::kSharedFunctionInfoOffset); 1930 JSFunction::kSharedFunctionInfoOffset);
1931 TagObject(js_fun->unchecked_context(), "(context)"); 1931 TagObject(js_fun->unchecked_context(), "(context)");
1932 SetInternalReference(js_fun, entry, 1932 SetInternalReference(js_fun, entry,
1933 "context", js_fun->unchecked_context(), 1933 "context", js_fun->unchecked_context(),
1934 JSFunction::kContextOffset); 1934 JSFunction::kContextOffset);
1935 TagObject(js_fun->literals(), "(function literals)"); 1935 TagObject(js_fun->literals_or_bindings(),
1936 "(function literals_or_bindings)");
1936 SetInternalReference(js_fun, entry, 1937 SetInternalReference(js_fun, entry,
1937 "literals", js_fun->literals(), 1938 "literals_or_bindings",
1939 js_fun->literals_or_bindings(),
1938 JSFunction::kLiteralsOffset); 1940 JSFunction::kLiteralsOffset);
1939 } 1941 }
1940 TagObject(js_obj->properties(), "(object properties)"); 1942 TagObject(js_obj->properties(), "(object properties)");
1941 SetInternalReference(obj, entry, 1943 SetInternalReference(obj, entry,
1942 "properties", js_obj->properties(), 1944 "properties", js_obj->properties(),
1943 JSObject::kPropertiesOffset); 1945 JSObject::kPropertiesOffset);
1944 TagObject(js_obj->elements(), "(object elements)"); 1946 TagObject(js_obj->elements(), "(object elements)");
1945 SetInternalReference(obj, entry, 1947 SetInternalReference(obj, entry,
1946 "elements", js_obj->elements(), 1948 "elements", js_obj->elements(),
1947 JSObject::kElementsOffset); 1949 JSObject::kElementsOffset);
(...skipping 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after
3395 3397
3396 3398
3397 void HeapSnapshotJSONSerializer::SortHashMap( 3399 void HeapSnapshotJSONSerializer::SortHashMap(
3398 HashMap* map, List<HashMap::Entry*>* sorted_entries) { 3400 HashMap* map, List<HashMap::Entry*>* sorted_entries) {
3399 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p)) 3401 for (HashMap::Entry* p = map->Start(); p != NULL; p = map->Next(p))
3400 sorted_entries->Add(p); 3402 sorted_entries->Add(p);
3401 sorted_entries->Sort(SortUsingEntryValue); 3403 sorted_entries->Sort(SortUsingEntryValue);
3402 } 3404 }
3403 3405
3404 } } // namespace v8::internal 3406 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698