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

Side by Side Diff: src/factory.h

Issue 253513004: Fix for a GC-stress failures after r20987. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 | « no previous file | src/factory.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef V8_FACTORY_H_ 5 #ifndef V8_FACTORY_H_
6 #define V8_FACTORY_H_ 6 #define V8_FACTORY_H_
7 7
8 #include "isolate.h" 8 #include "isolate.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 uint32_t hash_field); 153 uint32_t hash_field);
154 154
155 MUST_USE_RESULT Handle<String> NewOneByteInternalizedString( 155 MUST_USE_RESULT Handle<String> NewOneByteInternalizedString(
156 Vector<const uint8_t> str, 156 Vector<const uint8_t> str,
157 uint32_t hash_field); 157 uint32_t hash_field);
158 158
159 MUST_USE_RESULT Handle<String> NewTwoByteInternalizedString( 159 MUST_USE_RESULT Handle<String> NewTwoByteInternalizedString(
160 Vector<const uc16> str, 160 Vector<const uc16> str,
161 uint32_t hash_field); 161 uint32_t hash_field);
162 162
163 template<typename T>
164 MUST_USE_RESULT Handle<String> NewInternalizedStringImpl( 163 MUST_USE_RESULT Handle<String> NewInternalizedStringImpl(
165 T t, int chars, uint32_t hash_field); 164 Handle<String> string, int chars, uint32_t hash_field);
166 165
167 // Compute the matching internalized string map for a string if possible. 166 // Compute the matching internalized string map for a string if possible.
168 // Empty handle is returned if string is in new space or not flattened. 167 // Empty handle is returned if string is in new space or not flattened.
169 MUST_USE_RESULT MaybeHandle<Map> InternalizedStringMapForString( 168 MUST_USE_RESULT MaybeHandle<Map> InternalizedStringMapForString(
170 Handle<String> string); 169 Handle<String> string);
171 170
172 // Allocates and partially initializes an ASCII or TwoByte String. The 171 // Allocates and partially initializes an ASCII or TwoByte String. The
173 // characters of the string are uninitialized. Currently used in regexp code 172 // characters of the string are uninitialized. Currently used in regexp code
174 // only, where they are pretenured. 173 // only, where they are pretenured.
175 MUST_USE_RESULT MaybeHandle<SeqOneByteString> NewRawOneByteString( 174 MUST_USE_RESULT MaybeHandle<SeqOneByteString> NewRawOneByteString(
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 // the string representation of the number. Otherwise return undefined. 688 // the string representation of the number. Otherwise return undefined.
690 Handle<Object> GetNumberStringCache(Handle<Object> number); 689 Handle<Object> GetNumberStringCache(Handle<Object> number);
691 690
692 // Update the cache with a new number-string pair. 691 // Update the cache with a new number-string pair.
693 void SetNumberStringCache(Handle<Object> number, Handle<String> string); 692 void SetNumberStringCache(Handle<Object> number, Handle<String> string);
694 }; 693 };
695 694
696 } } // namespace v8::internal 695 } } // namespace v8::internal
697 696
698 #endif // V8_FACTORY_H_ 697 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « no previous file | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698