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

Side by Side Diff: src/heap.h

Issue 10857030: Add basic support for Latin1 to the API. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments. Created 8 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 | Annotate | Revision Log
« no previous file with comments | « src/factory.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 658 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 // result will be converted to ASCII, otherwise it will be left as 669 // result will be converted to ASCII, otherwise it will be left as
670 // two-byte. 670 // two-byte.
671 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 671 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
672 // failed. 672 // failed.
673 // Please note this does not perform a garbage collection. 673 // Please note this does not perform a garbage collection.
674 MUST_USE_RESULT MaybeObject* AllocateStringFromAscii( 674 MUST_USE_RESULT MaybeObject* AllocateStringFromAscii(
675 Vector<const char> str, 675 Vector<const char> str,
676 PretenureFlag pretenure = NOT_TENURED); 676 PretenureFlag pretenure = NOT_TENURED);
677 MUST_USE_RESULT inline MaybeObject* AllocateStringFromUtf8( 677 MUST_USE_RESULT inline MaybeObject* AllocateStringFromUtf8(
678 Vector<const char> str, 678 Vector<const char> str,
679 PretenureFlag pretenure = NOT_TENURED,
680 String::AsciiHint ascii_hint = String::MAYBE_ASCII);
681 MUST_USE_RESULT MaybeObject* AllocateStringFromUtf8Slow(
682 Vector<const char> str,
679 PretenureFlag pretenure = NOT_TENURED); 683 PretenureFlag pretenure = NOT_TENURED);
680 MUST_USE_RESULT MaybeObject* AllocateStringFromUtf8Slow( 684 MUST_USE_RESULT inline MaybeObject* AllocateStringFromLatin1(
685 Vector<const char> str,
686 PretenureFlag pretenure = NOT_TENURED,
687 String::AsciiHint ascii_hint = String::MAYBE_ASCII);
688 MUST_USE_RESULT MaybeObject* AllocateStringFromLatin1Slow(
681 Vector<const char> str, 689 Vector<const char> str,
682 PretenureFlag pretenure = NOT_TENURED); 690 PretenureFlag pretenure = NOT_TENURED);
683 MUST_USE_RESULT MaybeObject* AllocateStringFromTwoByte( 691 MUST_USE_RESULT MaybeObject* AllocateStringFromTwoByte(
684 Vector<const uc16> str, 692 Vector<const uc16> str,
685 PretenureFlag pretenure = NOT_TENURED); 693 PretenureFlag pretenure = NOT_TENURED);
686 694
687 // Allocates a symbol in old space based on the character stream. 695 // Allocates a symbol in old space based on the character stream.
688 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation 696 // Returns Failure::RetryAfterGC(requested_bytes, space) if the allocation
689 // failed. 697 // failed.
690 // Please note this function does not perform a garbage collection. 698 // Please note this function does not perform a garbage collection.
(...skipping 2082 matching lines...) Expand 10 before | Expand all | Expand 10 after
2773 AssertNoAllocation no_alloc; // i.e. no gc allowed. 2781 AssertNoAllocation no_alloc; // i.e. no gc allowed.
2774 2782
2775 private: 2783 private:
2776 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 2784 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
2777 }; 2785 };
2778 #endif // DEBUG || LIVE_OBJECT_LIST 2786 #endif // DEBUG || LIVE_OBJECT_LIST
2779 2787
2780 } } // namespace v8::internal 2788 } } // namespace v8::internal
2781 2789
2782 #endif // V8_HEAP_H_ 2790 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698