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

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

Issue 196343021: Revert "Continued fix for 351257. Reusing the feedback vector is too complex." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 9 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-debug.cc ('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 1463 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 return TRACK_ALLOCATION_SITE; 1474 return TRACK_ALLOCATION_SITE;
1475 } 1475 }
1476 1476
1477 return DONT_TRACK_ALLOCATION_SITE; 1477 return DONT_TRACK_ALLOCATION_SITE;
1478 } 1478 }
1479 1479
1480 1480
1481 AllocationSiteMode AllocationSite::GetMode(ElementsKind from, 1481 AllocationSiteMode AllocationSite::GetMode(ElementsKind from,
1482 ElementsKind to) { 1482 ElementsKind to) {
1483 if (IsFastSmiElementsKind(from) && 1483 if (IsFastSmiElementsKind(from) &&
1484 IsMoreGeneralElementsKindTransition(from, to)) { 1484 IsMoreGeneralElementsKindTransition(from, to)) {
1485 return TRACK_ALLOCATION_SITE; 1485 return TRACK_ALLOCATION_SITE;
1486 } 1486 }
1487 1487
1488 return DONT_TRACK_ALLOCATION_SITE; 1488 return DONT_TRACK_ALLOCATION_SITE;
1489 } 1489 }
1490 1490
1491 1491
1492 inline bool AllocationSite::CanTrack(InstanceType type) { 1492 inline bool AllocationSite::CanTrack(InstanceType type) {
1493 if (FLAG_allocation_site_pretenuring) { 1493 if (FLAG_allocation_site_pretenuring) {
1494 return type == JS_ARRAY_TYPE || 1494 return type == JS_ARRAY_TYPE ||
(...skipping 3478 matching lines...) Expand 10 before | Expand all | Expand 10 after
4973 ACCESSORS_TO_SMI(BreakPointInfo, code_position, kCodePositionIndex) 4973 ACCESSORS_TO_SMI(BreakPointInfo, code_position, kCodePositionIndex)
4974 ACCESSORS_TO_SMI(BreakPointInfo, source_position, kSourcePositionIndex) 4974 ACCESSORS_TO_SMI(BreakPointInfo, source_position, kSourcePositionIndex)
4975 ACCESSORS_TO_SMI(BreakPointInfo, statement_position, kStatementPositionIndex) 4975 ACCESSORS_TO_SMI(BreakPointInfo, statement_position, kStatementPositionIndex)
4976 ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsIndex) 4976 ACCESSORS(BreakPointInfo, break_point_objects, Object, kBreakPointObjectsIndex)
4977 #endif 4977 #endif
4978 4978
4979 ACCESSORS(SharedFunctionInfo, name, Object, kNameOffset) 4979 ACCESSORS(SharedFunctionInfo, name, Object, kNameOffset)
4980 ACCESSORS(SharedFunctionInfo, optimized_code_map, Object, 4980 ACCESSORS(SharedFunctionInfo, optimized_code_map, Object,
4981 kOptimizedCodeMapOffset) 4981 kOptimizedCodeMapOffset)
4982 ACCESSORS(SharedFunctionInfo, construct_stub, Code, kConstructStubOffset) 4982 ACCESSORS(SharedFunctionInfo, construct_stub, Code, kConstructStubOffset)
4983 ACCESSORS(SharedFunctionInfo, feedback_vector, FixedArray,
4984 kFeedbackVectorOffset)
4985 ACCESSORS(SharedFunctionInfo, initial_map, Object, kInitialMapOffset) 4983 ACCESSORS(SharedFunctionInfo, initial_map, Object, kInitialMapOffset)
4986 ACCESSORS(SharedFunctionInfo, instance_class_name, Object, 4984 ACCESSORS(SharedFunctionInfo, instance_class_name, Object,
4987 kInstanceClassNameOffset) 4985 kInstanceClassNameOffset)
4988 ACCESSORS(SharedFunctionInfo, function_data, Object, kFunctionDataOffset) 4986 ACCESSORS(SharedFunctionInfo, function_data, Object, kFunctionDataOffset)
4989 ACCESSORS(SharedFunctionInfo, script, Object, kScriptOffset) 4987 ACCESSORS(SharedFunctionInfo, script, Object, kScriptOffset)
4990 ACCESSORS(SharedFunctionInfo, debug_info, Object, kDebugInfoOffset) 4988 ACCESSORS(SharedFunctionInfo, debug_info, Object, kDebugInfoOffset)
4991 ACCESSORS(SharedFunctionInfo, inferred_name, String, kInferredNameOffset) 4989 ACCESSORS(SharedFunctionInfo, inferred_name, String, kInferredNameOffset)
4992 SMI_ACCESSORS(SharedFunctionInfo, ast_node_count, kAstNodeCountOffset) 4990 SMI_ACCESSORS(SharedFunctionInfo, ast_node_count, kAstNodeCountOffset)
4993 4991
4994 4992
(...skipping 1652 matching lines...) Expand 10 before | Expand all | Expand 10 after
6647 } 6645 }
6648 6646
6649 6647
6650 bool TypeFeedbackInfo::matches_inlined_type_change_checksum(int checksum) { 6648 bool TypeFeedbackInfo::matches_inlined_type_change_checksum(int checksum) {
6651 int value = Smi::cast(READ_FIELD(this, kStorage2Offset))->value(); 6649 int value = Smi::cast(READ_FIELD(this, kStorage2Offset))->value();
6652 int mask = (1 << kTypeChangeChecksumBits) - 1; 6650 int mask = (1 << kTypeChangeChecksumBits) - 1;
6653 return InlinedTypeChangeChecksum::decode(value) == (checksum & mask); 6651 return InlinedTypeChangeChecksum::decode(value) == (checksum & mask);
6654 } 6652 }
6655 6653
6656 6654
6655 ACCESSORS(TypeFeedbackInfo, feedback_vector, FixedArray,
6656 kFeedbackVectorOffset)
6657
6658
6657 SMI_ACCESSORS(AliasedArgumentsEntry, aliased_context_slot, kAliasedContextSlot) 6659 SMI_ACCESSORS(AliasedArgumentsEntry, aliased_context_slot, kAliasedContextSlot)
6658 6660
6659 6661
6660 Relocatable::Relocatable(Isolate* isolate) { 6662 Relocatable::Relocatable(Isolate* isolate) {
6661 isolate_ = isolate; 6663 isolate_ = isolate;
6662 prev_ = isolate->relocatable_top(); 6664 prev_ = isolate->relocatable_top();
6663 isolate->set_relocatable_top(this); 6665 isolate->set_relocatable_top(this);
6664 } 6666 }
6665 6667
6666 6668
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
6758 #undef READ_UINT32_FIELD 6760 #undef READ_UINT32_FIELD
6759 #undef WRITE_UINT32_FIELD 6761 #undef WRITE_UINT32_FIELD
6760 #undef READ_SHORT_FIELD 6762 #undef READ_SHORT_FIELD
6761 #undef WRITE_SHORT_FIELD 6763 #undef WRITE_SHORT_FIELD
6762 #undef READ_BYTE_FIELD 6764 #undef READ_BYTE_FIELD
6763 #undef WRITE_BYTE_FIELD 6765 #undef WRITE_BYTE_FIELD
6764 6766
6765 } } // namespace v8::internal 6767 } } // namespace v8::internal
6766 6768
6767 #endif // V8_OBJECTS_INL_H_ 6769 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects-debug.cc ('k') | src/objects-printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698