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

Side by Side Diff: src/objects.h

Issue 172503002: Handlify JSObject::CanSetCallback. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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/isolate.h ('k') | src/objects.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 2898 matching lines...) Expand 10 before | Expand all | Expand 10 after
2909 bool ReferencesObjectFromElements(FixedArray* elements, 2909 bool ReferencesObjectFromElements(FixedArray* elements,
2910 ElementsKind kind, 2910 ElementsKind kind,
2911 Object* object); 2911 Object* object);
2912 2912
2913 // Returns true if most of the elements backing storage is used. 2913 // Returns true if most of the elements backing storage is used.
2914 bool HasDenseElements(); 2914 bool HasDenseElements();
2915 2915
2916 // Gets the current elements capacity and the number of used elements. 2916 // Gets the current elements capacity and the number of used elements.
2917 void GetElementsCapacityAndUsage(int* capacity, int* used); 2917 void GetElementsCapacityAndUsage(int* capacity, int* used);
2918 2918
2919 bool CanSetCallback(Name* name); 2919 static bool CanSetCallback(Handle<JSObject> object, Handle<Name> name);
2920 static void SetElementCallback(Handle<JSObject> object, 2920 static void SetElementCallback(Handle<JSObject> object,
2921 uint32_t index, 2921 uint32_t index,
2922 Handle<Object> structure, 2922 Handle<Object> structure,
2923 PropertyAttributes attributes); 2923 PropertyAttributes attributes);
2924 static void SetPropertyCallback(Handle<JSObject> object, 2924 static void SetPropertyCallback(Handle<JSObject> object,
2925 Handle<Name> name, 2925 Handle<Name> name,
2926 Handle<Object> structure, 2926 Handle<Object> structure,
2927 PropertyAttributes attributes); 2927 PropertyAttributes attributes);
2928 static void DefineElementAccessor(Handle<JSObject> object, 2928 static void DefineElementAccessor(Handle<JSObject> object,
2929 uint32_t index, 2929 uint32_t index,
(...skipping 7843 matching lines...) Expand 10 before | Expand all | Expand 10 after
10773 } else { 10773 } else {
10774 value &= ~(1 << bit_position); 10774 value &= ~(1 << bit_position);
10775 } 10775 }
10776 return value; 10776 return value;
10777 } 10777 }
10778 }; 10778 };
10779 10779
10780 } } // namespace v8::internal 10780 } } // namespace v8::internal
10781 10781
10782 #endif // V8_OBJECTS_H_ 10782 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/isolate.h ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698