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

Side by Side Diff: src/heap.h

Issue 225823003: Implement handlified String::Equals and Name::Equals. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: refactored StringToDouble Created 6 years, 8 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/func-name-inferrer.cc ('k') | src/heap-inl.h » ('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 1171 matching lines...) Expand 10 before | Expand all | Expand 10 after
1182 MUST_USE_RESULT MaybeObject* InternalizeString(String* str); 1182 MUST_USE_RESULT MaybeObject* InternalizeString(String* str);
1183 MUST_USE_RESULT MaybeObject* InternalizeStringWithKey(HashTableKey* key); 1183 MUST_USE_RESULT MaybeObject* InternalizeStringWithKey(HashTableKey* key);
1184 1184
1185 bool InternalizeStringIfExists(String* str, String** result); 1185 bool InternalizeStringIfExists(String* str, String** result);
1186 bool InternalizeTwoCharsStringIfExists(String* str, String** result); 1186 bool InternalizeTwoCharsStringIfExists(String* str, String** result);
1187 1187
1188 // Compute the matching internalized string map for a string if possible. 1188 // Compute the matching internalized string map for a string if possible.
1189 // NULL is returned if string is in new space or not flattened. 1189 // NULL is returned if string is in new space or not flattened.
1190 Map* InternalizedStringMapForString(String* str); 1190 Map* InternalizedStringMapForString(String* str);
1191 1191
1192 // Tries to flatten a string before compare operation.
1193 //
1194 // Returns a failure in case it was decided that flattening was
1195 // necessary and failed. Note, if flattening is not necessary the
1196 // string might stay non-flat even when not a failure is returned.
1197 //
1198 // Please note this function does not perform a garbage collection.
1199 MUST_USE_RESULT inline MaybeObject* PrepareForCompare(String* str);
1200
1201 // Converts the given boolean condition to JavaScript boolean value. 1192 // Converts the given boolean condition to JavaScript boolean value.
1202 inline Object* ToBoolean(bool condition); 1193 inline Object* ToBoolean(bool condition);
1203 1194
1204 // Performs garbage collection operation. 1195 // Performs garbage collection operation.
1205 // Returns whether there is a chance that another major GC could 1196 // Returns whether there is a chance that another major GC could
1206 // collect more garbage. 1197 // collect more garbage.
1207 inline bool CollectGarbage( 1198 inline bool CollectGarbage(
1208 AllocationSpace space, 1199 AllocationSpace space,
1209 const char* gc_reason = NULL, 1200 const char* gc_reason = NULL,
1210 const GCCallbackFlags gc_callback_flags = kNoGCCallbackFlags); 1201 const GCCallbackFlags gc_callback_flags = kNoGCCallbackFlags);
(...skipping 1873 matching lines...) Expand 10 before | Expand all | Expand 10 after
3084 DisallowHeapAllocation no_allocation; // i.e. no gc allowed. 3075 DisallowHeapAllocation no_allocation; // i.e. no gc allowed.
3085 3076
3086 private: 3077 private:
3087 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer); 3078 DISALLOW_IMPLICIT_CONSTRUCTORS(PathTracer);
3088 }; 3079 };
3089 #endif // DEBUG 3080 #endif // DEBUG
3090 3081
3091 } } // namespace v8::internal 3082 } } // namespace v8::internal
3092 3083
3093 #endif // V8_HEAP_H_ 3084 #endif // V8_HEAP_H_
OLDNEW
« no previous file with comments | « src/func-name-inferrer.cc ('k') | src/heap-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698