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

Side by Side Diff: src/handles.h

Issue 8139027: Version 3.6.5 (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: '' Created 9 years, 2 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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 256
257 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, 257 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver,
258 Handle<JSObject> holder, 258 Handle<JSObject> holder,
259 Handle<String> name, 259 Handle<String> name,
260 PropertyAttributes* attributes); 260 PropertyAttributes* attributes);
261 261
262 Handle<Object> GetPrototype(Handle<Object> obj); 262 Handle<Object> GetPrototype(Handle<Object> obj);
263 263
264 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value); 264 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value);
265 265
266 // Return the object's hidden properties object. If the object has no hidden 266 // Sets a hidden property on an object. Returns obj on success, undefined
267 // properties and HiddenPropertiesFlag::ALLOW_CREATION is passed, then a new 267 // if trying to set the property on a detached proxy.
268 // hidden property object will be allocated. Otherwise Heap::undefined_value 268 Handle<Object> SetHiddenProperty(Handle<JSObject> obj,
269 // is returned. 269 Handle<String> key,
270 Handle<Object> GetHiddenProperties(Handle<JSObject> obj, 270 Handle<Object> value);
271 JSObject::HiddenPropertiesFlag flag);
272 271
273 int GetIdentityHash(Handle<JSObject> obj); 272 int GetIdentityHash(Handle<JSReceiver> obj);
274 273
275 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index); 274 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index);
276 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop); 275 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop);
277 276
278 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index); 277 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index);
279 278
280 Handle<JSObject> Copy(Handle<JSObject> obj); 279 Handle<JSObject> Copy(Handle<JSObject> obj);
281 280
282 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info); 281 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info);
283 282
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
341 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy( 340 Handle<JSGlobalProxy> ReinitializeJSGlobalProxy(
342 Handle<JSFunction> constructor, 341 Handle<JSFunction> constructor,
343 Handle<JSGlobalProxy> global); 342 Handle<JSGlobalProxy> global);
344 343
345 Handle<Object> SetPrototype(Handle<JSFunction> function, 344 Handle<Object> SetPrototype(Handle<JSFunction> function,
346 Handle<Object> prototype); 345 Handle<Object> prototype);
347 346
348 Handle<Object> PreventExtensions(Handle<JSObject> object); 347 Handle<Object> PreventExtensions(Handle<JSObject> object);
349 348
350 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table, 349 Handle<ObjectHashTable> PutIntoObjectHashTable(Handle<ObjectHashTable> table,
351 Handle<JSObject> key, 350 Handle<JSReceiver> key,
352 Handle<Object> value); 351 Handle<Object> value);
353 352
354 // Does lazy compilation of the given function. Returns true on success and 353 // Does lazy compilation of the given function. Returns true on success and
355 // false if the compilation resulted in a stack overflow. 354 // false if the compilation resulted in a stack overflow.
356 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION }; 355 enum ClearExceptionFlag { KEEP_EXCEPTION, CLEAR_EXCEPTION };
357 356
358 bool EnsureCompiled(Handle<SharedFunctionInfo> shared, 357 bool EnsureCompiled(Handle<SharedFunctionInfo> shared,
359 ClearExceptionFlag flag); 358 ClearExceptionFlag flag);
360 359
361 bool CompileLazyShared(Handle<SharedFunctionInfo> shared, 360 bool CompileLazyShared(Handle<SharedFunctionInfo> shared,
(...skipping 14 matching lines...) Expand all
376 inline NoHandleAllocation(); 375 inline NoHandleAllocation();
377 inline ~NoHandleAllocation(); 376 inline ~NoHandleAllocation();
378 private: 377 private:
379 int level_; 378 int level_;
380 #endif 379 #endif
381 }; 380 };
382 381
383 } } // namespace v8::internal 382 } } // namespace v8::internal
384 383
385 #endif // V8_HANDLES_H_ 384 #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