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

Side by Side Diff: src/factory.h

Issue 2424623002: [wasm] Use a Managed<WasmModule> to hold metadata about modules. (Closed)
Patch Set: [wasm] Use a Managed<WasmModule> to hold metadata about modules. Created 4 years, 2 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
« no previous file with comments | « src/api.cc ('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 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 "src/globals.h" 8 #include "src/globals.h"
9 #include "src/isolate.h" 9 #include "src/isolate.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 Vector<const char> str, 176 Vector<const char> str,
177 PretenureFlag pretenure = NOT_TENURED) { 177 PretenureFlag pretenure = NOT_TENURED) {
178 return NewStringFromOneByte(Vector<const uint8_t>::cast(str), pretenure); 178 return NewStringFromOneByte(Vector<const uint8_t>::cast(str), pretenure);
179 } 179 }
180 180
181 // UTF8 strings are pretenured when used for regexp literal patterns and 181 // UTF8 strings are pretenured when used for regexp literal patterns and
182 // flags in the parser. 182 // flags in the parser.
183 MUST_USE_RESULT MaybeHandle<String> NewStringFromUtf8( 183 MUST_USE_RESULT MaybeHandle<String> NewStringFromUtf8(
184 Vector<const char> str, PretenureFlag pretenure = NOT_TENURED); 184 Vector<const char> str, PretenureFlag pretenure = NOT_TENURED);
185 185
186 MUST_USE_RESULT MaybeHandle<String> NewStringFromUtf8SubString(
187 Handle<SeqOneByteString> str, int begin, int end,
188 PretenureFlag pretenure = NOT_TENURED);
189
186 MUST_USE_RESULT MaybeHandle<String> NewStringFromTwoByte( 190 MUST_USE_RESULT MaybeHandle<String> NewStringFromTwoByte(
187 Vector<const uc16> str, PretenureFlag pretenure = NOT_TENURED); 191 Vector<const uc16> str, PretenureFlag pretenure = NOT_TENURED);
188 192
189 MUST_USE_RESULT MaybeHandle<String> NewStringFromTwoByte( 193 MUST_USE_RESULT MaybeHandle<String> NewStringFromTwoByte(
190 const ZoneVector<uc16>* str, PretenureFlag pretenure = NOT_TENURED); 194 const ZoneVector<uc16>* str, PretenureFlag pretenure = NOT_TENURED);
191 195
192 Handle<JSStringIterator> NewJSStringIterator(Handle<String> string); 196 Handle<JSStringIterator> NewJSStringIterator(Handle<String> string);
193 197
194 // Allocates an internalized string in old space based on the character 198 // Allocates an internalized string in old space based on the character
195 // stream. 199 // stream.
(...skipping 594 matching lines...) Expand 10 before | Expand all | Expand 10 after
790 FunctionMode function_mode); 794 FunctionMode function_mode);
791 795
792 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, 796 void SetStrictFunctionInstanceDescriptor(Handle<Map> map,
793 FunctionMode function_mode); 797 FunctionMode function_mode);
794 }; 798 };
795 799
796 } // namespace internal 800 } // namespace internal
797 } // namespace v8 801 } // namespace v8
798 802
799 #endif // V8_FACTORY_H_ 803 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698