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

Side by Side Diff: src/factory.h

Issue 6696018: Revert "Strict mode ThrowTypeError functions for" (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 9 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/contexts.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 214 matching lines...) Expand 10 before | Expand all | Expand 10 after
225 PretenureFlag pretenure = NOT_TENURED); 225 PretenureFlag pretenure = NOT_TENURED);
226 226
227 static Handle<JSArray> NewJSArrayWithElements( 227 static Handle<JSArray> NewJSArrayWithElements(
228 Handle<FixedArray> elements, 228 Handle<FixedArray> elements,
229 PretenureFlag pretenure = NOT_TENURED); 229 PretenureFlag pretenure = NOT_TENURED);
230 230
231 static Handle<JSFunction> NewFunction(Handle<String> name, 231 static Handle<JSFunction> NewFunction(Handle<String> name,
232 Handle<Object> prototype); 232 Handle<Object> prototype);
233 233
234 static Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name); 234 static Handle<JSFunction> NewFunctionWithoutPrototype(Handle<String> name);
235 static Handle<JSFunction> NewFunctionWithoutPrototypeStrict(
236 Handle<String> name);
237 235
238 static Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); 236 static Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global);
239 237
240 static Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( 238 static Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo(
241 Handle<SharedFunctionInfo> function_info, 239 Handle<SharedFunctionInfo> function_info,
242 Handle<Map> function_map, 240 Handle<Map> function_map,
243 PretenureFlag pretenure); 241 PretenureFlag pretenure);
244 242
245 static Handle<JSFunction> NewFunctionFromSharedFunctionInfo( 243 static Handle<JSFunction> NewFunctionFromSharedFunctionInfo(
246 Handle<SharedFunctionInfo> function_info, 244 Handle<SharedFunctionInfo> function_info,
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 Handle<String> source, 401 Handle<String> source,
404 JSRegExp::Flags flags, 402 JSRegExp::Flags flags,
405 int capture_count); 403 int capture_count);
406 404
407 private: 405 private:
408 static Handle<JSFunction> NewFunctionHelper(Handle<String> name, 406 static Handle<JSFunction> NewFunctionHelper(Handle<String> name,
409 Handle<Object> prototype); 407 Handle<Object> prototype);
410 408
411 static Handle<JSFunction> NewFunctionWithoutPrototypeHelper( 409 static Handle<JSFunction> NewFunctionWithoutPrototypeHelper(
412 Handle<String> name); 410 Handle<String> name);
413 static Handle<JSFunction> NewFunctionWithoutPrototypeStrictHelper(
414 Handle<String> name);
415 411
416 static Handle<DescriptorArray> CopyAppendCallbackDescriptors( 412 static Handle<DescriptorArray> CopyAppendCallbackDescriptors(
417 Handle<DescriptorArray> array, 413 Handle<DescriptorArray> array,
418 Handle<Object> descriptors); 414 Handle<Object> descriptors);
419 415
420 // Create a new map cache. 416 // Create a new map cache.
421 static Handle<MapCache> NewMapCache(int at_least_space_for); 417 static Handle<MapCache> NewMapCache(int at_least_space_for);
422 418
423 // Update the map cache in the global context with (keys, map) 419 // Update the map cache in the global context with (keys, map)
424 static Handle<MapCache> AddToMapCache(Handle<Context> context, 420 static Handle<MapCache> AddToMapCache(Handle<Context> context,
425 Handle<FixedArray> keys, 421 Handle<FixedArray> keys,
426 Handle<Map> map); 422 Handle<Map> map);
427 }; 423 };
428 424
429 425
430 } } // namespace v8::internal 426 } } // namespace v8::internal
431 427
432 #endif // V8_FACTORY_H_ 428 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/contexts.h ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698