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

Side by Side Diff: src/objects.cc

Issue 669051: - Rearrange fields in SharedFunctionInfo. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 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.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 4940 matching lines...) Expand 10 before | Expand all | Expand 10 after
4951 start_position(), 4951 start_position(),
4952 start_position() + max_length); 4952 start_position() + max_length);
4953 accumulator->Add("...\n"); 4953 accumulator->Add("...\n");
4954 } else { 4954 } else {
4955 accumulator->Put(script_source, start_position(), end_position()); 4955 accumulator->Put(script_source, start_position(), end_position());
4956 } 4956 }
4957 } 4957 }
4958 4958
4959 4959
4960 void SharedFunctionInfo::SharedFunctionInfoIterateBody(ObjectVisitor* v) { 4960 void SharedFunctionInfo::SharedFunctionInfoIterateBody(ObjectVisitor* v) {
4961 IteratePointers(v, kNameOffset, kConstructStubOffset + kPointerSize); 4961 IteratePointers(v,
4962 IteratePointers(v, kInstanceClassNameOffset, kScriptOffset + kPointerSize); 4962 kNameOffset,
4963 IteratePointers(v, kDebugInfoOffset, kInferredNameOffset + kPointerSize); 4963 kThisPropertyAssignmentsOffset + kPointerSize);
4964 IteratePointers(v, kThisPropertyAssignmentsOffset,
4965 kThisPropertyAssignmentsOffset + kPointerSize);
4966 } 4964 }
4967 4965
4968 4966
4969 void ObjectVisitor::VisitCodeTarget(RelocInfo* rinfo) { 4967 void ObjectVisitor::VisitCodeTarget(RelocInfo* rinfo) {
4970 ASSERT(RelocInfo::IsCodeTarget(rinfo->rmode())); 4968 ASSERT(RelocInfo::IsCodeTarget(rinfo->rmode()));
4971 Object* target = Code::GetCodeFromTargetAddress(rinfo->target_address()); 4969 Object* target = Code::GetCodeFromTargetAddress(rinfo->target_address());
4972 Object* old_target = target; 4970 Object* old_target = target;
4973 VisitPointer(&target); 4971 VisitPointer(&target);
4974 CHECK_EQ(target, old_target); // VisitPointer doesn't change Code* *target. 4972 CHECK_EQ(target, old_target); // VisitPointer doesn't change Code* *target.
4975 } 4973 }
(...skipping 3399 matching lines...) Expand 10 before | Expand all | Expand 10 after
8375 if (break_point_objects()->IsUndefined()) return 0; 8373 if (break_point_objects()->IsUndefined()) return 0;
8376 // Single beak point. 8374 // Single beak point.
8377 if (!break_point_objects()->IsFixedArray()) return 1; 8375 if (!break_point_objects()->IsFixedArray()) return 1;
8378 // Multiple break points. 8376 // Multiple break points.
8379 return FixedArray::cast(break_point_objects())->length(); 8377 return FixedArray::cast(break_point_objects())->length();
8380 } 8378 }
8381 #endif 8379 #endif
8382 8380
8383 8381
8384 } } // namespace v8::internal 8382 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698