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

Side by Side Diff: src/handles.h

Issue 7331035: Implement API functions for handling the AccessorDescriptor (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 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 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 270
271 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index); 271 Handle<Object> DeleteElement(Handle<JSObject> obj, uint32_t index);
272 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop); 272 Handle<Object> DeleteProperty(Handle<JSObject> obj, Handle<String> prop);
273 273
274 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index); 274 Handle<Object> LookupSingleCharacterStringFromCode(uint32_t index);
275 275
276 Handle<JSObject> Copy(Handle<JSObject> obj); 276 Handle<JSObject> Copy(Handle<JSObject> obj);
277 277
278 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info); 278 Handle<Object> SetAccessor(Handle<JSObject> obj, Handle<AccessorInfo> info);
279 279
280 Handle<Object> SetAccessor(Handle<JSObject> obj,
281 Handle<String> key,
282 bool is_getter,
283 Handle<Object> fun,
284 PropertyAttributes attributes);
285
286 Handle<Object> GetAccessor(Handle<JSObject> obj,
287 Handle<String> key,
288 bool is_getter);
289
280 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray>, 290 Handle<FixedArray> AddKeysFromJSArray(Handle<FixedArray>,
281 Handle<JSArray> array); 291 Handle<JSArray> array);
282 292
283 // Get the JS object corresponding to the given script; create it 293 // Get the JS object corresponding to the given script; create it
284 // if none exists. 294 // if none exists.
285 Handle<JSValue> GetScriptWrapper(Handle<Script> script); 295 Handle<JSValue> GetScriptWrapper(Handle<Script> script);
286 296
287 // Script line number computations. 297 // Script line number computations.
288 void InitScriptLineEnds(Handle<Script> script); 298 void InitScriptLineEnds(Handle<Script> script);
289 // For string calculates an array of line end positions. If the string 299 // For string calculates an array of line end positions. If the string
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 inline NoHandleAllocation(); 380 inline NoHandleAllocation();
371 inline ~NoHandleAllocation(); 381 inline ~NoHandleAllocation();
372 private: 382 private:
373 int level_; 383 int level_;
374 #endif 384 #endif
375 }; 385 };
376 386
377 } } // namespace v8::internal 387 } } // namespace v8::internal
378 388
379 #endif // V8_HANDLES_H_ 389 #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