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

Side by Side Diff: src/heap.h

Issue 11308066: Rename IsAsciiRepresentation (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 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/handles.cc ('k') | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 // encoded. If the characters are all single-byte characters, the 699 // encoded. If the characters are all single-byte characters, the
700 // result will be ASCII encoded, otherwise it will converted to two 700 // result will be ASCII encoded, otherwise it will converted to two
701 // byte. 701 // byte.
702 // - ...FromTwoByte initializes the string from a buffer that is two-byte 702 // - ...FromTwoByte initializes the string from a buffer that is two-byte
703 // encoded. If the characters are all single-byte characters, the 703 // encoded. If the characters are all single-byte characters, the
704 // result will be converted to ASCII, otherwise it will be left as 704 // result will be converted to ASCII, otherwise it will be left as
705 // two-byte. 705 // two-byte.
706 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 706 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
707 // failed. 707 // failed.
708 // Please note this does not perform a garbage collection. 708 // Please note this does not perform a garbage collection.
709 MUST_USE_RESULT MaybeObject* AllocateStringFromAscii( 709 MUST_USE_RESULT MaybeObject* AllocateStringFromOneByte(
710 Vector<const char> str, 710 Vector<const char> str,
711 PretenureFlag pretenure = NOT_TENURED); 711 PretenureFlag pretenure = NOT_TENURED);
712 MUST_USE_RESULT inline MaybeObject* AllocateStringFromUtf8( 712 MUST_USE_RESULT inline MaybeObject* AllocateStringFromUtf8(
713 Vector<const char> str, 713 Vector<const char> str,
714 PretenureFlag pretenure = NOT_TENURED); 714 PretenureFlag pretenure = NOT_TENURED);
715 MUST_USE_RESULT MaybeObject* AllocateStringFromUtf8Slow( 715 MUST_USE_RESULT MaybeObject* AllocateStringFromUtf8Slow(
716 Vector<const char> str, 716 Vector<const char> str,
717 int non_ascii_start, 717 int non_ascii_start,
718 PretenureFlag pretenure = NOT_TENURED); 718 PretenureFlag pretenure = NOT_TENURED);
719 MUST_USE_RESULT MaybeObject* AllocateStringFromTwoByte( 719 MUST_USE_RESULT MaybeObject* AllocateStringFromTwoByte(
(...skipping 23 matching lines...) Expand all
743 Vector<const char> str, 743 Vector<const char> str,
744 int chars); 744 int chars);
745 745
746 // Allocates and partially initializes a String. There are two String 746 // Allocates and partially initializes a String. There are two String
747 // encodings: ASCII and two byte. These functions allocate a string of the 747 // encodings: ASCII and two byte. These functions allocate a string of the
748 // given length and set its map and length fields. The characters of the 748 // given length and set its map and length fields. The characters of the
749 // string are uninitialized. 749 // string are uninitialized.
750 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 750 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
751 // failed. 751 // failed.
752 // Please note this does not perform a garbage collection. 752 // Please note this does not perform a garbage collection.
753 MUST_USE_RESULT MaybeObject* AllocateRawAsciiString( 753 MUST_USE_RESULT MaybeObject* AllocateRawOneByteString(
754 int length, 754 int length,
755 PretenureFlag pretenure = NOT_TENURED); 755 PretenureFlag pretenure = NOT_TENURED);
756 MUST_USE_RESULT MaybeObject* AllocateRawTwoByteString( 756 MUST_USE_RESULT MaybeObject* AllocateRawTwoByteString(
757 int length, 757 int length,
758 PretenureFlag pretenure = NOT_TENURED); 758 PretenureFlag pretenure = NOT_TENURED);
759 759
760 // Computes a single character string where the character has code. 760 // Computes a single character string where the character has code.
761 // A cache is used for ASCII codes. 761 // A cache is used for ASCII codes.
762 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 762 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
763 // failed. Please note this does not perform a garbage collection. 763 // failed. Please note this does not perform a garbage collection.
(...skipping 2064 matching lines...) Expand 10 before | Expand all | Expand 10 after
2828 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2828 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2829 2829
2830 private: 2830 private:
2831 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2831 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2832 }; 2832 };
2833 #endif // DEBUG || LIVE_OBJECT_LIST 2833 #endif // DEBUG || LIVE_OBJECT_LIST
2834 2834
2835 } } // namespace v8::internal 2835 } } // namespace v8::internal
2836 2836
2837 #endif // V8_HEAP_H_ 2837 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/handles.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698