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

Side by Side Diff: src/factory.h

Issue 2903533002: Revert of [es2015] Precompute the descriptive string for symbols. (Closed)
Patch Set: Created 3 years, 7 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/builtins/x64/builtins-x64.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/feedback-vector.h" 8 #include "src/feedback-vector.h"
9 #include "src/globals.h" 9 #include "src/globals.h"
10 #include "src/isolate.h" 10 #include "src/isolate.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 const ExternalOneByteString::Resource* resource); 260 const ExternalOneByteString::Resource* resource);
261 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromTwoByte( 261 MUST_USE_RESULT MaybeHandle<String> NewExternalStringFromTwoByte(
262 const ExternalTwoByteString::Resource* resource); 262 const ExternalTwoByteString::Resource* resource);
263 // Create a new external string object for one-byte encoded native script. 263 // Create a new external string object for one-byte encoded native script.
264 // It does not cache the resource data pointer. 264 // It does not cache the resource data pointer.
265 Handle<ExternalOneByteString> NewNativeSourceString( 265 Handle<ExternalOneByteString> NewNativeSourceString(
266 const ExternalOneByteString::Resource* resource); 266 const ExternalOneByteString::Resource* resource);
267 267
268 // Create a symbol. 268 // Create a symbol.
269 Handle<Symbol> NewSymbol(); 269 Handle<Symbol> NewSymbol();
270 MaybeHandle<Symbol> NewSymbol(Handle<Object> name);
271 Handle<Symbol> NewPrivateSymbol(); 270 Handle<Symbol> NewPrivateSymbol();
272 MaybeHandle<Symbol> NewPrivateSymbol(Handle<Object> name);
273 271
274 // Create a promise. 272 // Create a promise.
275 Handle<JSPromise> NewJSPromise(); 273 Handle<JSPromise> NewJSPromise();
276 274
277 // Create a global (but otherwise uninitialized) context. 275 // Create a global (but otherwise uninitialized) context.
278 Handle<Context> NewNativeContext(); 276 Handle<Context> NewNativeContext();
279 277
280 // Create a script context. 278 // Create a script context.
281 Handle<Context> NewScriptContext(Handle<JSFunction> function, 279 Handle<Context> NewScriptContext(Handle<JSFunction> function,
282 Handle<ScopeInfo> scope_info); 280 Handle<ScopeInfo> scope_info);
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 void SetStrictFunctionInstanceDescriptor(Handle<Map> map, 843 void SetStrictFunctionInstanceDescriptor(Handle<Map> map,
846 FunctionMode function_mode); 844 FunctionMode function_mode);
847 845
848 void SetClassFunctionInstanceDescriptor(Handle<Map> map); 846 void SetClassFunctionInstanceDescriptor(Handle<Map> map);
849 }; 847 };
850 848
851 } // namespace internal 849 } // namespace internal
852 } // namespace v8 850 } // namespace v8
853 851
854 #endif // V8_FACTORY_H_ 852 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/builtins/x64/builtins-x64.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698