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

Side by Side Diff: src/objects.cc

Issue 390012: Push bleeding_edge revision 3267 to trunk.... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 11 years, 1 month 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-debug.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 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 4903 matching lines...) Expand 10 before | Expand all | Expand 10 after
4914 return instance_size; 4914 return instance_size;
4915 } 4915 }
4916 4916
4917 4917
4918 int SharedFunctionInfo::CalculateInObjectProperties() { 4918 int SharedFunctionInfo::CalculateInObjectProperties() {
4919 return (CalculateInstanceSize() - JSObject::kHeaderSize) / kPointerSize; 4919 return (CalculateInstanceSize() - JSObject::kHeaderSize) / kPointerSize;
4920 } 4920 }
4921 4921
4922 4922
4923 void SharedFunctionInfo::SetThisPropertyAssignmentsInfo( 4923 void SharedFunctionInfo::SetThisPropertyAssignmentsInfo(
4924 bool only_this_property_assignments,
4925 bool only_simple_this_property_assignments, 4924 bool only_simple_this_property_assignments,
4926 FixedArray* assignments) { 4925 FixedArray* assignments) {
4927 set_compiler_hints(BooleanBit::set(compiler_hints(), 4926 set_compiler_hints(BooleanBit::set(compiler_hints(),
4928 kHasOnlyThisPropertyAssignments,
4929 only_this_property_assignments));
4930 set_compiler_hints(BooleanBit::set(compiler_hints(),
4931 kHasOnlySimpleThisPropertyAssignments, 4927 kHasOnlySimpleThisPropertyAssignments,
4932 only_simple_this_property_assignments)); 4928 only_simple_this_property_assignments));
4933 set_this_property_assignments(assignments); 4929 set_this_property_assignments(assignments);
4934 set_this_property_assignments_count(assignments->length() / 3); 4930 set_this_property_assignments_count(assignments->length() / 3);
4935 } 4931 }
4936 4932
4937 4933
4938 void SharedFunctionInfo::ClearThisPropertyAssignmentsInfo() { 4934 void SharedFunctionInfo::ClearThisPropertyAssignmentsInfo() {
4939 set_compiler_hints(BooleanBit::set(compiler_hints(), 4935 set_compiler_hints(BooleanBit::set(compiler_hints(),
4940 kHasOnlyThisPropertyAssignments,
4941 false));
4942 set_compiler_hints(BooleanBit::set(compiler_hints(),
4943 kHasOnlySimpleThisPropertyAssignments, 4936 kHasOnlySimpleThisPropertyAssignments,
4944 false)); 4937 false));
4945 set_this_property_assignments(Heap::undefined_value()); 4938 set_this_property_assignments(Heap::undefined_value());
4946 set_this_property_assignments_count(0); 4939 set_this_property_assignments_count(0);
4947 } 4940 }
4948 4941
4949 4942
4950 String* SharedFunctionInfo::GetThisPropertyAssignmentName(int index) { 4943 String* SharedFunctionInfo::GetThisPropertyAssignmentName(int index) {
4951 Object* obj = this_property_assignments(); 4944 Object* obj = this_property_assignments();
4952 ASSERT(obj->IsFixedArray()); 4945 ASSERT(obj->IsFixedArray());
(...skipping 3354 matching lines...) Expand 10 before | Expand all | Expand 10 after
8307 if (break_point_objects()->IsUndefined()) return 0; 8300 if (break_point_objects()->IsUndefined()) return 0;
8308 // Single beak point. 8301 // Single beak point.
8309 if (!break_point_objects()->IsFixedArray()) return 1; 8302 if (!break_point_objects()->IsFixedArray()) return 1;
8310 // Multiple break points. 8303 // Multiple break points.
8311 return FixedArray::cast(break_point_objects())->length(); 8304 return FixedArray::cast(break_point_objects())->length();
8312 } 8305 }
8313 #endif 8306 #endif
8314 8307
8315 8308
8316 } } // namespace v8::internal 8309 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/objects.h ('k') | src/objects-debug.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698