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

Side by Side Diff: src/factory.h

Issue 6694044: Strict mode poison pills for function.caller and function.arguments (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Final touches. 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 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 static Handle<JSArray> NewJSArray(int init_length, 224 static Handle<JSArray> NewJSArray(int init_length,
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(
235 Handle<String> name,
236 StrictModeFlag strict_mode);
235 237
236 static Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global); 238 static Handle<JSFunction> NewFunction(Handle<Object> super, bool is_global);
237 239
238 static Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo( 240 static Handle<JSFunction> BaseNewFunctionFromSharedFunctionInfo(
239 Handle<SharedFunctionInfo> function_info, 241 Handle<SharedFunctionInfo> function_info,
240 Handle<Map> function_map, 242 Handle<Map> function_map,
241 PretenureFlag pretenure); 243 PretenureFlag pretenure);
242 244
243 static Handle<JSFunction> NewFunctionFromSharedFunctionInfo( 245 static Handle<JSFunction> NewFunctionFromSharedFunctionInfo(
244 Handle<SharedFunctionInfo> function_info, 246 Handle<SharedFunctionInfo> function_info,
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
400 JSRegExp::Type type, 402 JSRegExp::Type type,
401 Handle<String> source, 403 Handle<String> source,
402 JSRegExp::Flags flags, 404 JSRegExp::Flags flags,
403 int capture_count); 405 int capture_count);
404 406
405 private: 407 private:
406 static Handle<JSFunction> NewFunctionHelper(Handle<String> name, 408 static Handle<JSFunction> NewFunctionHelper(Handle<String> name,
407 Handle<Object> prototype); 409 Handle<Object> prototype);
408 410
409 static Handle<JSFunction> NewFunctionWithoutPrototypeHelper( 411 static Handle<JSFunction> NewFunctionWithoutPrototypeHelper(
410 Handle<String> name); 412 Handle<String> name,
413 StrictModeFlag strict_mode);
411 414
412 static Handle<DescriptorArray> CopyAppendCallbackDescriptors( 415 static Handle<DescriptorArray> CopyAppendCallbackDescriptors(
413 Handle<DescriptorArray> array, 416 Handle<DescriptorArray> array,
414 Handle<Object> descriptors); 417 Handle<Object> descriptors);
415 418
416 // Create a new map cache. 419 // Create a new map cache.
417 static Handle<MapCache> NewMapCache(int at_least_space_for); 420 static Handle<MapCache> NewMapCache(int at_least_space_for);
418 421
419 // Update the map cache in the global context with (keys, map) 422 // Update the map cache in the global context with (keys, map)
420 static Handle<MapCache> AddToMapCache(Handle<Context> context, 423 static Handle<MapCache> AddToMapCache(Handle<Context> context,
421 Handle<FixedArray> keys, 424 Handle<FixedArray> keys,
422 Handle<Map> map); 425 Handle<Map> map);
423 }; 426 };
424 427
425 428
426 } } // namespace v8::internal 429 } } // namespace v8::internal
427 430
428 #endif // V8_FACTORY_H_ 431 #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