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

Side by Side Diff: src/handles.h

Issue 844006: Merge changes up to V8 version 2.1.3 into the partial snapshots (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/partial_snapshots/
Patch Set: Created 10 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/globals.h ('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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 Handle<Object> SetElement(Handle<JSObject> object, 231 Handle<Object> SetElement(Handle<JSObject> object,
232 uint32_t index, 232 uint32_t index,
233 Handle<Object> value); 233 Handle<Object> value);
234 234
235 Handle<Object> GetProperty(Handle<JSObject> obj, 235 Handle<Object> GetProperty(Handle<JSObject> obj,
236 const char* name); 236 const char* name);
237 237
238 Handle<Object> GetProperty(Handle<Object> obj, 238 Handle<Object> GetProperty(Handle<Object> obj,
239 Handle<Object> key); 239 Handle<Object> key);
240 240
241 Handle<Object> GetElement(Handle<Object> obj,
242 uint32_t index);
243
241 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, 244 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver,
242 Handle<JSObject> holder, 245 Handle<JSObject> holder,
243 Handle<String> name, 246 Handle<String> name,
244 PropertyAttributes* attributes); 247 PropertyAttributes* attributes);
245 248
246 Handle<Object> GetPrototype(Handle<Object> obj); 249 Handle<Object> GetPrototype(Handle<Object> obj);
247 250
248 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value); 251 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value);
249 252
250 // Return the object's hidden properties object. If the object has no hidden 253 // Return the object's hidden properties object. If the object has no hidden
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 KeyCollectionType type); 288 KeyCollectionType type);
286 Handle<JSArray> GetKeysFor(Handle<JSObject> object); 289 Handle<JSArray> GetKeysFor(Handle<JSObject> object);
287 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object, 290 Handle<FixedArray> GetEnumPropertyKeys(Handle<JSObject> object,
288 bool cache_result); 291 bool cache_result);
289 292
290 // Computes the union of keys and return the result. 293 // Computes the union of keys and return the result.
291 // Used for implementing "for (n in object) { }" 294 // Used for implementing "for (n in object) { }"
292 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first, 295 Handle<FixedArray> UnionOfKeys(Handle<FixedArray> first,
293 Handle<FixedArray> second); 296 Handle<FixedArray> second);
294 297
295 Handle<String> SubString(Handle<String> str, int start, int end); 298 Handle<String> SubString(Handle<String> str,
299 int start,
300 int end,
301 PretenureFlag pretenure = NOT_TENURED);
296 302
297 303
298 // Sets the expected number of properties for the function's instances. 304 // Sets the expected number of properties for the function's instances.
299 void SetExpectedNofProperties(Handle<JSFunction> func, int nof); 305 void SetExpectedNofProperties(Handle<JSFunction> func, int nof);
300 306
301 // Sets the prototype property for a function instance. 307 // Sets the prototype property for a function instance.
302 void SetPrototypeProperty(Handle<JSFunction> func, Handle<JSObject> value); 308 void SetPrototypeProperty(Handle<JSFunction> func, Handle<JSObject> value);
303 309
304 // Sets the expected number of properties based on estimate from compiler. 310 // Sets the expected number of properties based on estimate from compiler.
305 void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared, 311 void SetExpectedNofPropertiesFromEstimate(Handle<SharedFunctionInfo> shared,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 private: 371 private:
366 bool has_been_transformed_; // Tells whether the object has been transformed. 372 bool has_been_transformed_; // Tells whether the object has been transformed.
367 int unused_property_fields_; // Captures the unused number of field. 373 int unused_property_fields_; // Captures the unused number of field.
368 Handle<JSObject> object_; // The object being optimized. 374 Handle<JSObject> object_; // The object being optimized.
369 }; 375 };
370 376
371 377
372 } } // namespace v8::internal 378 } } // namespace v8::internal
373 379
374 #endif // V8_HANDLES_H_ 380 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « src/globals.h ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698