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

Side by Side Diff: src/heap.h

Issue 660086: Revert r3952 (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 | « 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 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 // Please note this function does not perform a garbage collection. 338 // Please note this function does not perform a garbage collection.
339 static Object* AllocateMap(InstanceType instance_type, int instance_size); 339 static Object* AllocateMap(InstanceType instance_type, int instance_size);
340 340
341 // Allocates a partial map for bootstrapping. 341 // Allocates a partial map for bootstrapping.
342 static Object* AllocatePartialMap(InstanceType instance_type, 342 static Object* AllocatePartialMap(InstanceType instance_type,
343 int instance_size); 343 int instance_size);
344 344
345 // Allocate a map for the specified function 345 // Allocate a map for the specified function
346 static Object* AllocateInitialMap(JSFunction* fun); 346 static Object* AllocateInitialMap(JSFunction* fun);
347 347
348 // Allocates an empty code cache.
349 static Object* AllocateCodeCache();
350
351 // Allocates and fully initializes a String. There are two String 348 // Allocates and fully initializes a String. There are two String
352 // encodings: ASCII and two byte. One should choose between the three string 349 // encodings: ASCII and two byte. One should choose between the three string
353 // allocation functions based on the encoding of the string buffer used to 350 // allocation functions based on the encoding of the string buffer used to
354 // initialized the string. 351 // initialized the string.
355 // - ...FromAscii initializes the string from a buffer that is ASCII 352 // - ...FromAscii initializes the string from a buffer that is ASCII
356 // encoded (it does not check that the buffer is ASCII encoded) and the 353 // encoded (it does not check that the buffer is ASCII encoded) and the
357 // result will be ASCII encoded. 354 // result will be ASCII encoded.
358 // - ...FromUTF8 initializes the string from a buffer that is UTF-8 355 // - ...FromUTF8 initializes the string from a buffer that is UTF-8
359 // encoded. If the characters are all single-byte characters, the 356 // encoded. If the characters are all single-byte characters, the
360 // result will be ASCII encoded, otherwise it will converted to two 357 // result will be ASCII encoded, otherwise it will converted to two
(...skipping 1349 matching lines...) Expand 10 before | Expand all | Expand 10 after
1710 1707
1711 // To speed up scavenge collections new space string are kept 1708 // To speed up scavenge collections new space string are kept
1712 // separate from old space strings. 1709 // separate from old space strings.
1713 static List<Object*> new_space_strings_; 1710 static List<Object*> new_space_strings_;
1714 static List<Object*> old_space_strings_; 1711 static List<Object*> old_space_strings_;
1715 }; 1712 };
1716 1713
1717 } } // namespace v8::internal 1714 } } // namespace v8::internal
1718 1715
1719 #endif // V8_HEAP_H_ 1716 #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