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

Side by Side Diff: src/heap.h

Issue 201953002: Experimental parser: small fixes (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/parser
Patch Set: Created 6 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
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 850 matching lines...) Expand 10 before | Expand all | Expand 10 after
861 } 861 }
862 MUST_USE_RESULT inline MaybeObject* AllocateStringFromUtf8( 862 MUST_USE_RESULT inline MaybeObject* AllocateStringFromUtf8(
863 Vector<const char> str, 863 Vector<const char> str,
864 PretenureFlag pretenure = NOT_TENURED); 864 PretenureFlag pretenure = NOT_TENURED);
865 MUST_USE_RESULT MaybeObject* AllocateStringFromUtf8Slow( 865 MUST_USE_RESULT MaybeObject* AllocateStringFromUtf8Slow(
866 Vector<const char> str, 866 Vector<const char> str,
867 int non_ascii_start, 867 int non_ascii_start,
868 PretenureFlag pretenure = NOT_TENURED); 868 PretenureFlag pretenure = NOT_TENURED);
869 MUST_USE_RESULT MaybeObject* AllocateStringFromTwoByte( 869 MUST_USE_RESULT MaybeObject* AllocateStringFromTwoByte(
870 Vector<const uc16> str, 870 Vector<const uc16> str,
871 bool check_for_one_byte,
871 PretenureFlag pretenure = NOT_TENURED); 872 PretenureFlag pretenure = NOT_TENURED);
872 873
873 // Allocates an internalized string in old space based on the character 874 // Allocates an internalized string in old space based on the character
874 // stream. Returns Failure::RetryAfterGC(requested_bytes, space) if the 875 // stream. Returns Failure::RetryAfterGC(requested_bytes, space) if the
875 // allocation failed. 876 // allocation failed.
876 // Please note this function does not perform a garbage collection. 877 // Please note this function does not perform a garbage collection.
877 MUST_USE_RESULT inline MaybeObject* AllocateInternalizedStringFromUtf8( 878 MUST_USE_RESULT inline MaybeObject* AllocateInternalizedStringFromUtf8(
878 Vector<const char> str, 879 Vector<const char> str,
879 int chars, 880 int chars,
880 uint32_t hash_field); 881 uint32_t hash_field);
(...skipping 2243 matching lines...) Expand 10 before | Expand all | Expand 10 after
3124 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3125 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3125 3126
3126 private: 3127 private:
3127 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3128 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3128 }; 3129 };
3129 #endif // DEBUG 3130 #endif // DEBUG
3130 3131
3131 } } // namespace v8::internal 3132 } } // namespace v8::internal
3132 3133
3133 #endif // V8_HEAP_H_ 3134 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/factory.cc ('k') | src/heap.cc » ('j') | src/lexer/lexer-shell.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698