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

Side by Side Diff: src/objects.cc

Issue 3107022: Remove unused function. (Closed)
Patch Set: Created 10 years, 4 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
« 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 1098 matching lines...) Expand 10 before | Expand all | Expand 10 after
1109 #undef MAKE_STRUCT_CASE 1109 #undef MAKE_STRUCT_CASE
1110 StructBodyDescriptor::IterateBody(this, object_size, v); 1110 StructBodyDescriptor::IterateBody(this, object_size, v);
1111 break; 1111 break;
1112 default: 1112 default:
1113 PrintF("Unknown type: %d\n", type); 1113 PrintF("Unknown type: %d\n", type);
1114 UNREACHABLE(); 1114 UNREACHABLE();
1115 } 1115 }
1116 } 1116 }
1117 1117
1118 1118
1119 void HeapObject::IterateStructBody(int object_size, ObjectVisitor* v) {
1120 IteratePointers(v, HeapObject::kHeaderSize, object_size);
1121 }
1122
1123
1124 Object* HeapNumber::HeapNumberToBoolean() { 1119 Object* HeapNumber::HeapNumberToBoolean() {
1125 // NaN, +0, and -0 should return the false object 1120 // NaN, +0, and -0 should return the false object
1126 #if __BYTE_ORDER == __LITTLE_ENDIAN 1121 #if __BYTE_ORDER == __LITTLE_ENDIAN
1127 union IeeeDoubleLittleEndianArchType u; 1122 union IeeeDoubleLittleEndianArchType u;
1128 #elif __BYTE_ORDER == __BIG_ENDIAN 1123 #elif __BYTE_ORDER == __BIG_ENDIAN
1129 union IeeeDoubleBigEndianArchType u; 1124 union IeeeDoubleBigEndianArchType u;
1130 #endif 1125 #endif
1131 u.d = value(); 1126 u.d = value();
1132 if (u.bits.exp == 2047) { 1127 if (u.bits.exp == 2047) {
1133 // Detect NaN for IEEE double precision floating point. 1128 // Detect NaN for IEEE double precision floating point.
(...skipping 7607 matching lines...) Expand 10 before | Expand all | Expand 10 after
8741 if (break_point_objects()->IsUndefined()) return 0; 8736 if (break_point_objects()->IsUndefined()) return 0;
8742 // Single beak point. 8737 // Single beak point.
8743 if (!break_point_objects()->IsFixedArray()) return 1; 8738 if (!break_point_objects()->IsFixedArray()) return 1;
8744 // Multiple break points. 8739 // Multiple break points.
8745 return FixedArray::cast(break_point_objects())->length(); 8740 return FixedArray::cast(break_point_objects())->length();
8746 } 8741 }
8747 #endif 8742 #endif
8748 8743
8749 8744
8750 } } // namespace v8::internal 8745 } } // 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