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

Side by Side Diff: src/factory.h

Issue 11411005: Rename SeqAsciiString (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/bootstrapper.h ('k') | 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 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 int deopt_entry_count, 75 int deopt_entry_count,
76 PretenureFlag pretenure); 76 PretenureFlag pretenure);
77 // Allocates a pre-tenured empty AccessorPair. 77 // Allocates a pre-tenured empty AccessorPair.
78 Handle<AccessorPair> NewAccessorPair(); 78 Handle<AccessorPair> NewAccessorPair();
79 79
80 Handle<TypeFeedbackInfo> NewTypeFeedbackInfo(); 80 Handle<TypeFeedbackInfo> NewTypeFeedbackInfo();
81 81
82 Handle<String> LookupSymbol(Vector<const char> str); 82 Handle<String> LookupSymbol(Vector<const char> str);
83 Handle<String> LookupSymbol(Handle<String> str); 83 Handle<String> LookupSymbol(Handle<String> str);
84 Handle<String> LookupAsciiSymbol(Vector<const char> str); 84 Handle<String> LookupAsciiSymbol(Vector<const char> str);
85 Handle<String> LookupAsciiSymbol(Handle<SeqAsciiString>, 85 Handle<String> LookupAsciiSymbol(Handle<SeqOneByteString>,
86 int from, 86 int from,
87 int length); 87 int length);
88 Handle<String> LookupTwoByteSymbol(Vector<const uc16> str); 88 Handle<String> LookupTwoByteSymbol(Vector<const uc16> str);
89 Handle<String> LookupAsciiSymbol(const char* str) { 89 Handle<String> LookupAsciiSymbol(const char* str) {
90 return LookupSymbol(CStrVector(str)); 90 return LookupSymbol(CStrVector(str));
91 } 91 }
92 92
93 93
94 // String creation functions. Most of the string creation functions take 94 // String creation functions. Most of the string creation functions take
95 // a Heap::PretenureFlag argument to optionally request that they be 95 // a Heap::PretenureFlag argument to optionally request that they be
(...skipping 27 matching lines...) Expand all
123 Vector<const char> str, 123 Vector<const char> str,
124 PretenureFlag pretenure = NOT_TENURED); 124 PretenureFlag pretenure = NOT_TENURED);
125 125
126 Handle<String> NewStringFromTwoByte( 126 Handle<String> NewStringFromTwoByte(
127 Vector<const uc16> str, 127 Vector<const uc16> str,
128 PretenureFlag pretenure = NOT_TENURED); 128 PretenureFlag pretenure = NOT_TENURED);
129 129
130 // Allocates and partially initializes an ASCII or TwoByte String. The 130 // Allocates and partially initializes an ASCII or TwoByte String. The
131 // characters of the string are uninitialized. Currently used in regexp code 131 // characters of the string are uninitialized. Currently used in regexp code
132 // only, where they are pretenured. 132 // only, where they are pretenured.
133 Handle<SeqAsciiString> NewRawAsciiString( 133 Handle<SeqOneByteString> NewRawOneByteString(
134 int length, 134 int length,
135 PretenureFlag pretenure = NOT_TENURED); 135 PretenureFlag pretenure = NOT_TENURED);
136 Handle<SeqTwoByteString> NewRawTwoByteString( 136 Handle<SeqTwoByteString> NewRawTwoByteString(
137 int length, 137 int length,
138 PretenureFlag pretenure = NOT_TENURED); 138 PretenureFlag pretenure = NOT_TENURED);
139 139
140 // Create a new cons string object which consists of a pair of strings. 140 // Create a new cons string object which consists of a pair of strings.
141 Handle<String> NewConsString(Handle<String> first, 141 Handle<String> NewConsString(Handle<String> first,
142 Handle<String> second); 142 Handle<String> second);
143 143
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
512 // Update the map cache in the native context with (keys, map) 512 // Update the map cache in the native context with (keys, map)
513 Handle<MapCache> AddToMapCache(Handle<Context> context, 513 Handle<MapCache> AddToMapCache(Handle<Context> context,
514 Handle<FixedArray> keys, 514 Handle<FixedArray> keys,
515 Handle<Map> map); 515 Handle<Map> map);
516 }; 516 };
517 517
518 518
519 } } // namespace v8::internal 519 } } // namespace v8::internal
520 520
521 #endif // V8_FACTORY_H_ 521 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/bootstrapper.h ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698