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

Side by Side Diff: src/objects.cc

Issue 18173013: AllocationSite objects weakly linked for traversal (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed final nits Created 7 years, 5 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
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after
1699 break; 1699 break;
1700 case SHARED_FUNCTION_INFO_TYPE: { 1700 case SHARED_FUNCTION_INFO_TYPE: {
1701 SharedFunctionInfo::BodyDescriptor::IterateBody(this, v); 1701 SharedFunctionInfo::BodyDescriptor::IterateBody(this, v);
1702 break; 1702 break;
1703 } 1703 }
1704 1704
1705 #define MAKE_STRUCT_CASE(NAME, Name, name) \ 1705 #define MAKE_STRUCT_CASE(NAME, Name, name) \
1706 case NAME##_TYPE: 1706 case NAME##_TYPE:
1707 STRUCT_LIST(MAKE_STRUCT_CASE) 1707 STRUCT_LIST(MAKE_STRUCT_CASE)
1708 #undef MAKE_STRUCT_CASE 1708 #undef MAKE_STRUCT_CASE
1709 StructBodyDescriptor::IterateBody(this, object_size, v); 1709 if (type == ALLOCATION_SITE_TYPE) {
1710 AllocationSite::BodyDescriptor::IterateBody(this, v);
1711 } else {
1712 StructBodyDescriptor::IterateBody(this, object_size, v);
1713 }
1710 break; 1714 break;
1711 default: 1715 default:
1712 PrintF("Unknown type: %d\n", type); 1716 PrintF("Unknown type: %d\n", type);
1713 UNREACHABLE(); 1717 UNREACHABLE();
1714 } 1718 }
1715 } 1719 }
1716 1720
1717 1721
1718 bool HeapNumber::HeapNumberBooleanValue() { 1722 bool HeapNumber::HeapNumberBooleanValue() {
1719 // NaN, +0, and -0 should return the false object 1723 // NaN, +0, and -0 should return the false object
(...skipping 14228 matching lines...) Expand 10 before | Expand all | Expand 10 after
15948 15952
15949 void PropertyCell::AddDependentCode(Handle<Code> code) { 15953 void PropertyCell::AddDependentCode(Handle<Code> code) {
15950 Handle<DependentCode> codes = DependentCode::Insert( 15954 Handle<DependentCode> codes = DependentCode::Insert(
15951 Handle<DependentCode>(dependent_code()), 15955 Handle<DependentCode>(dependent_code()),
15952 DependentCode::kPropertyCellChangedGroup, code); 15956 DependentCode::kPropertyCellChangedGroup, code);
15953 if (*codes != dependent_code()) set_dependent_code(*codes); 15957 if (*codes != dependent_code()) set_dependent_code(*codes);
15954 } 15958 }
15955 15959
15956 15960
15957 } } // namespace v8::internal 15961 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698