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

Side by Side Diff: src/handles.h

Issue 661181: - Pushed source code for functions into old space.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 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/api.cc ('k') | src/handles.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 KeyCollectionType type); 280 KeyCollectionType type);
281 Handle<JSArray> GetKeysFor(Handle<JSObject> object); 281 Handle<JSArray> GetKeysFor(Handle<JSObject> object);
282 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, 282 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object,
283 bool cache_result); 283 bool cache_result);
284 284
285 // Computes the union of keys and return the result. 285 // Computes the union of keys and return the result.
286 // Used for implementing "for (n in object) { }" 286 // Used for implementing "for (n in object) { }"
287 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, 287 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first,
288 Handle<FixedArray> second); 288 Handle<FixedArray> second);
289 289
290 Handle<String> SubString(Handle<String> str, int start, int end); 290 Handle<String> SubString(Handle<String> str,
291 int start,
292 int end,
293 PretenureFlag pretenure = NOT_TENURED);
291 294
292 295
293 // Sets the expected number of properties for the function's instances. 296 // Sets the expected number of properties for the function's instances.
294 void SetExpectedNofProperties(Handle<JSFunction> func, int nof); 297 void SetExpectedNofProperties(Handle<JSFunction> func, int nof);
295 298
296 // Sets the prototype property for a function instance. 299 // Sets the prototype property for a function instance.
297 void SetPrototypeProperty(Handle<JSFunction> func, Handle<JSObject> value); 300 void SetPrototypeProperty(Handle<JSFunction> func, Handle<JSObject> value);
298 301
299 // Sets the expected number of properties based on estimate from compiler. 302 // Sets the expected number of properties based on estimate from compiler.
300 void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared, 303 void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared,
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 private: 370 private:
368 bool has_been_transformed_; // Tells whether the object has been transformed. 371 bool has_been_transformed_; // Tells whether the object has been transformed.
369 int unused_property_fields_; // Captures the unused number of field. 372 int unused_property_fields_; // Captures the unused number of field.
370 Handle<JSObject> object_; // The object being optimized. 373 Handle<JSObject> object_; // The object being optimized.
371 }; 374 };
372 375
373 376
374 } } // namespace v8::internal 377 } } // namespace v8::internal
375 378
376 #endif // V8_HANDLES_H_ 379 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « src/api.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698