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

Side by Side Diff: src/factory.h

Issue 6529032: Merge 6168:6800 from bleeding_edge to experimental/gc branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: Created 9 years, 10 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/extensions/gc-extension.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 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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // Copy the map adding more inobject properties if possible without 189 // Copy the map adding more inobject properties if possible without
190 // overflowing the instance size. 190 // overflowing the instance size.
191 static Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props); 191 static Handle<Map> CopyMap(Handle<Map> map, int extra_inobject_props);
192 192
193 static Handle<Map> CopyMapDropTransitions(Handle<Map> map); 193 static Handle<Map> CopyMapDropTransitions(Handle<Map> map);
194 194
195 static Handle<Map> GetFastElementsMap(Handle<Map> map); 195 static Handle<Map> GetFastElementsMap(Handle<Map> map);
196 196
197 static Handle<Map> GetSlowElementsMap(Handle<Map> map); 197 static Handle<Map> GetSlowElementsMap(Handle<Map> map);
198 198
199 static Handle<Map> GetPixelArrayElementsMap(Handle<Map> map);
200
199 static Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array); 201 static Handle<FixedArray> CopyFixedArray(Handle<FixedArray> array);
200 202
201 // Numbers (eg, literals) are pretenured by the parser. 203 // Numbers (eg, literals) are pretenured by the parser.
202 static Handle<Object> NewNumber(double value, 204 static Handle<Object> NewNumber(double value,
203 PretenureFlag pretenure = NOT_TENURED); 205 PretenureFlag pretenure = NOT_TENURED);
204 206
205 static Handle<Object> NewNumberFromInt(int value); 207 static Handle<Object> NewNumberFromInt(int value);
206 static Handle<Object> NewNumberFromUint(uint32_t value); 208 static Handle<Object> NewNumberFromUint(uint32_t value);
207 209
208 // These objects are used by the api to create env-independent data 210 // These objects are used by the api to create env-independent data
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 return Handle<String>(&Heap::hidden_symbol_); 360 return Handle<String>(&Heap::hidden_symbol_);
359 } 361 }
360 362
361 static Handle<SharedFunctionInfo> NewSharedFunctionInfo( 363 static Handle<SharedFunctionInfo> NewSharedFunctionInfo(
362 Handle<String> name, 364 Handle<String> name,
363 int number_of_literals, 365 int number_of_literals,
364 Handle<Code> code, 366 Handle<Code> code,
365 Handle<SerializedScopeInfo> scope_info); 367 Handle<SerializedScopeInfo> scope_info);
366 static Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name); 368 static Handle<SharedFunctionInfo> NewSharedFunctionInfo(Handle<String> name);
367 369
370 static Handle<JSMessageObject> NewJSMessageObject(
371 Handle<String> type,
372 Handle<JSArray> arguments,
373 int start_position,
374 int end_position,
375 Handle<Object> script,
376 Handle<Object> stack_trace,
377 Handle<Object> stack_frames);
378
368 static Handle<NumberDictionary> DictionaryAtNumberPut( 379 static Handle<NumberDictionary> DictionaryAtNumberPut(
369 Handle<NumberDictionary>, 380 Handle<NumberDictionary>,
370 uint32_t key, 381 uint32_t key,
371 Handle<Object> value); 382 Handle<Object> value);
372 383
373 #ifdef ENABLE_DEBUGGER_SUPPORT 384 #ifdef ENABLE_DEBUGGER_SUPPORT
374 static Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared); 385 static Handle<DebugInfo> NewDebugInfo(Handle<SharedFunctionInfo> shared);
375 #endif 386 #endif
376 387
377 // Return a map using the map cache in the global context. 388 // Return a map using the map cache in the global context.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 // Update the map cache in the global context with (keys, map) 423 // Update the map cache in the global context with (keys, map)
413 static Handle<MapCache> AddToMapCache(Handle<Context> context, 424 static Handle<MapCache> AddToMapCache(Handle<Context> context,
414 Handle<FixedArray> keys, 425 Handle<FixedArray> keys,
415 Handle<Map> map); 426 Handle<Map> map);
416 }; 427 };
417 428
418 429
419 } } // namespace v8::internal 430 } } // namespace v8::internal
420 431
421 #endif // V8_FACTORY_H_ 432 #endif // V8_FACTORY_H_
OLDNEW
« no previous file with comments | « src/extensions/gc-extension.cc ('k') | src/factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698