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

Side by Side Diff: src/handles.h

Issue 8050013: Move logic for hidden properties into the JSObject. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix typo. 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/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 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 258
259 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, 259 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver,
260 Handle<JSObject> holder, 260 Handle<JSObject> holder,
261 Handle<String> name, 261 Handle<String> name,
262 PropertyAttributes* attributes); 262 PropertyAttributes* attributes);
263 263
264 Handle<Object> GetPrototype(Handle<Object> obj); 264 Handle<Object> GetPrototype(Handle<Object> obj);
265 265
266 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value); 266 Handle<Object> SetPrototype(Handle<JSObject> obj, Handle<Object> value);
267 267
268 // Return the object's hidden properties object. If the object has no hidden 268 // Sets a hidden property on an object. Returns obj on success, undefined
269 // properties and HiddenPropertiesFlag::ALLOW_CREATION is passed, then a new 269 // if trying to set the property on a detached proxy.
270 // hidden property object will be allocated. Otherwise Heap::undefined_value 270 Handle<Object> SetHiddenProperty(Handle<JSObject> obj,
271 // is returned. 271 Handle<String> key,
272 Handle<Object> GetHiddenProperties(Handle<JSObject> obj, CreationFlag flag); 272 Handle<Object> value);
273 273
274 int GetIdentityHash(Handle<JSReceiver> obj); 274 int GetIdentityHash(Handle<JSReceiver> obj);
275 275
276 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index); 276 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index);
277 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop); 277 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop);
278 278
279 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index); 279 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index);
280 280
281 Handle<JSObject> Copy(Handle<JSObject> obj); 281 Handle<JSObject> Copy(Handle<JSObject> obj);
282 282
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 public: 393 public:
394 explicit StringLock(Handle<String> string); 394 explicit StringLock(Handle<String> string);
395 ~StringLock(); 395 ~StringLock();
396 private: 396 private:
397 Handle<String> string_; 397 Handle<String> string_;
398 }; 398 };
399 399
400 } } // namespace v8::internal 400 } } // namespace v8::internal
401 401
402 #endif // V8_HANDLES_H_ 402 #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