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

Side by Side Diff: src/heap.h

Issue 6489: Exclude the bit-field bits from string hash codes. String hash codes... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 2 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 | « no previous file | src/heap.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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 323 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 static Object* AllocateStringFromTwoByte( 334 static Object* AllocateStringFromTwoByte(
335 Vector<const uc16> str, 335 Vector<const uc16> str,
336 PretenureFlag pretenure = NOT_TENURED); 336 PretenureFlag pretenure = NOT_TENURED);
337 337
338 // Allocates a symbol in old space based on the character stream. 338 // Allocates a symbol in old space based on the character stream.
339 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 339 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
340 // failed. 340 // failed.
341 // Please note this function does not perform a garbage collection. 341 // Please note this function does not perform a garbage collection.
342 static Object* AllocateSymbol(unibrow::CharacterStream* buffer, 342 static Object* AllocateSymbol(unibrow::CharacterStream* buffer,
343 int chars, 343 int chars,
344 int hash); 344 uint32_t length_field);
345 345
346 // Allocates and partially initializes a String. There are two String 346 // Allocates and partially initializes a String. There are two String
347 // encodings: ASCII and two byte. These functions allocate a string of the 347 // encodings: ASCII and two byte. These functions allocate a string of the
348 // given length and set its map and length fields. The characters of the 348 // given length and set its map and length fields. The characters of the
349 // string are uninitialized. 349 // string are uninitialized.
350 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 350 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
351 // failed. 351 // failed.
352 // Please note this does not perform a garbage collection. 352 // Please note this does not perform a garbage collection.
353 static Object* AllocateRawAsciiString( 353 static Object* AllocateRawAsciiString(
354 int length, 354 int length,
(...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 int marked_count_; 1162 int marked_count_;
1163 1163
1164 // The count from the end of the previous full GC. Will be zero if there 1164 // The count from the end of the previous full GC. Will be zero if there
1165 // was no previous full GC. 1165 // was no previous full GC.
1166 int previous_marked_count_; 1166 int previous_marked_count_;
1167 }; 1167 };
1168 1168
1169 } } // namespace v8::internal 1169 } } // namespace v8::internal
1170 1170
1171 #endif // V8_HEAP_H_ 1171 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698