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

Side by Side Diff: src/objects-inl.h

Issue 23463047: Add field nested_sites to AllocationSite. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment responsio. Created 7 years, 3 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-printer.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1318 1318
1319 return AllocationSite::GetMode(GetElementsKind()) == 1319 return AllocationSite::GetMode(GetElementsKind()) ==
1320 TRACK_ALLOCATION_SITE; 1320 TRACK_ALLOCATION_SITE;
1321 } 1321 }
1322 return false; 1322 return false;
1323 } 1323 }
1324 1324
1325 1325
1326 void AllocationSite::Initialize() { 1326 void AllocationSite::Initialize() {
1327 SetElementsKind(GetInitialFastElementsKind()); 1327 SetElementsKind(GetInitialFastElementsKind());
1328 set_nested_site(Smi::FromInt(0));
1328 set_dependent_code(DependentCode::cast(GetHeap()->empty_fixed_array()), 1329 set_dependent_code(DependentCode::cast(GetHeap()->empty_fixed_array()),
1329 SKIP_WRITE_BARRIER); 1330 SKIP_WRITE_BARRIER);
1330 } 1331 }
1331 1332
1332 1333
1333 // Heuristic: We only need to create allocation site info if the boilerplate 1334 // Heuristic: We only need to create allocation site info if the boilerplate
1334 // elements kind is the initial elements kind. 1335 // elements kind is the initial elements kind.
1335 AllocationSiteMode AllocationSite::GetMode( 1336 AllocationSiteMode AllocationSite::GetMode(
1336 ElementsKind boilerplate_elements_kind) { 1337 ElementsKind boilerplate_elements_kind) {
1337 if (FLAG_track_allocation_sites && 1338 if (FLAG_track_allocation_sites &&
(...skipping 3142 matching lines...) Expand 10 before | Expand all | Expand 10 after
4480 ACCESSORS(ObjectTemplateInfo, constructor, Object, kConstructorOffset) 4481 ACCESSORS(ObjectTemplateInfo, constructor, Object, kConstructorOffset)
4481 ACCESSORS(ObjectTemplateInfo, internal_field_count, Object, 4482 ACCESSORS(ObjectTemplateInfo, internal_field_count, Object,
4482 kInternalFieldCountOffset) 4483 kInternalFieldCountOffset)
4483 4484
4484 ACCESSORS(SignatureInfo, receiver, Object, kReceiverOffset) 4485 ACCESSORS(SignatureInfo, receiver, Object, kReceiverOffset)
4485 ACCESSORS(SignatureInfo, args, Object, kArgsOffset) 4486 ACCESSORS(SignatureInfo, args, Object, kArgsOffset)
4486 4487
4487 ACCESSORS(TypeSwitchInfo, types, Object, kTypesOffset) 4488 ACCESSORS(TypeSwitchInfo, types, Object, kTypesOffset)
4488 4489
4489 ACCESSORS(AllocationSite, transition_info, Object, kTransitionInfoOffset) 4490 ACCESSORS(AllocationSite, transition_info, Object, kTransitionInfoOffset)
4491 ACCESSORS(AllocationSite, nested_site, Object, kNestedSiteOffset)
4490 ACCESSORS(AllocationSite, dependent_code, DependentCode, 4492 ACCESSORS(AllocationSite, dependent_code, DependentCode,
4491 kDependentCodeOffset) 4493 kDependentCodeOffset)
4492 ACCESSORS(AllocationSite, weak_next, Object, kWeakNextOffset) 4494 ACCESSORS(AllocationSite, weak_next, Object, kWeakNextOffset)
4493 ACCESSORS(AllocationMemento, allocation_site, Object, kAllocationSiteOffset) 4495 ACCESSORS(AllocationMemento, allocation_site, Object, kAllocationSiteOffset)
4494 4496
4495 ACCESSORS(Script, source, Object, kSourceOffset) 4497 ACCESSORS(Script, source, Object, kSourceOffset)
4496 ACCESSORS(Script, name, Object, kNameOffset) 4498 ACCESSORS(Script, name, Object, kNameOffset)
4497 ACCESSORS(Script, id, Smi, kIdOffset) 4499 ACCESSORS(Script, id, Smi, kIdOffset)
4498 ACCESSORS_TO_SMI(Script, line_offset, kLineOffsetOffset) 4500 ACCESSORS_TO_SMI(Script, line_offset, kLineOffsetOffset)
4499 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset) 4501 ACCESSORS_TO_SMI(Script, column_offset, kColumnOffsetOffset)
(...skipping 1793 matching lines...) Expand 10 before | Expand all | Expand 10 after
6293 #undef WRITE_UINT32_FIELD 6295 #undef WRITE_UINT32_FIELD
6294 #undef READ_SHORT_FIELD 6296 #undef READ_SHORT_FIELD
6295 #undef WRITE_SHORT_FIELD 6297 #undef WRITE_SHORT_FIELD
6296 #undef READ_BYTE_FIELD 6298 #undef READ_BYTE_FIELD
6297 #undef WRITE_BYTE_FIELD 6299 #undef WRITE_BYTE_FIELD
6298 6300
6299 6301
6300 } } // namespace v8::internal 6302 } } // namespace v8::internal
6301 6303
6302 #endif // V8_OBJECTS_INL_H_ 6304 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698