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

Side by Side Diff: src/objects.h

Issue 25732002: Handlify GetPropertyWithFailedAccessCheck. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 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 | « no previous file | src/objects.cc » ('j') | src/objects.cc » ('J')
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 2099 matching lines...) Expand 10 before | Expand all | Expand 10 after
2110 MUST_USE_RESULT inline MaybeObject* EnsureWritableFastElements(); 2110 MUST_USE_RESULT inline MaybeObject* EnsureWritableFastElements();
2111 2111
2112 // Collects elements starting at index 0. 2112 // Collects elements starting at index 0.
2113 // Undefined values are placed after non-undefined values. 2113 // Undefined values are placed after non-undefined values.
2114 // Returns the number of non-undefined values. 2114 // Returns the number of non-undefined values.
2115 MUST_USE_RESULT MaybeObject* PrepareElementsForSort(uint32_t limit); 2115 MUST_USE_RESULT MaybeObject* PrepareElementsForSort(uint32_t limit);
2116 // As PrepareElementsForSort, but only on objects where elements is 2116 // As PrepareElementsForSort, but only on objects where elements is
2117 // a dictionary, and it will stay a dictionary. 2117 // a dictionary, and it will stay a dictionary.
2118 MUST_USE_RESULT MaybeObject* PrepareSlowElementsForSort(uint32_t limit); 2118 MUST_USE_RESULT MaybeObject* PrepareSlowElementsForSort(uint32_t limit);
2119 2119
2120 static Handle<Object> GetPropertyWithCallback(Handle<JSObject> holder,
Michael Starzinger 2013/10/02 18:39:53 nit: s/holder/object/ for consistency.
2121 Handle<Object> receiver,
2122 Handle<Object> structure,
2123 Handle<Name> name);
2124
2120 MUST_USE_RESULT MaybeObject* GetPropertyWithCallback(Object* receiver, 2125 MUST_USE_RESULT MaybeObject* GetPropertyWithCallback(Object* receiver,
2121 Object* structure, 2126 Object* structure,
2122 Name* name); 2127 Name* name);
2123 2128
2124 static Handle<Object> SetPropertyWithCallback( 2129 static Handle<Object> SetPropertyWithCallback(
2125 Handle<JSObject> object, 2130 Handle<JSObject> object,
2126 Handle<Object> structure, 2131 Handle<Object> structure,
2127 Handle<Name> name, 2132 Handle<Name> name,
2128 Handle<Object> value, 2133 Handle<Object> value,
2129 Handle<JSObject> holder, 2134 Handle<JSObject> holder,
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
2236 Handle<Object> getter, 2241 Handle<Object> getter,
2237 Handle<Object> setter, 2242 Handle<Object> setter,
2238 PropertyAttributes attributes, 2243 PropertyAttributes attributes,
2239 v8::AccessControl access_control = v8::DEFAULT); 2244 v8::AccessControl access_control = v8::DEFAULT);
2240 2245
2241 // Defines an AccessorInfo property on the given object. 2246 // Defines an AccessorInfo property on the given object.
2242 static Handle<Object> SetAccessor(Handle<JSObject> object, 2247 static Handle<Object> SetAccessor(Handle<JSObject> object,
2243 Handle<AccessorInfo> info); 2248 Handle<AccessorInfo> info);
2244 2249
2245 // Used from Object::GetProperty(). 2250 // Used from Object::GetProperty().
2246 MUST_USE_RESULT MaybeObject* GetPropertyWithFailedAccessCheck( 2251 static Handle<Object> GetPropertyWithFailedAccessCheck(
2247 Object* receiver, 2252 Handle<JSObject> failed_check_obj,
Michael Starzinger 2013/10/02 18:39:53 nit: s/failed_check_obj/object/ for consistency.
2253 Handle<Object> receiver,
2248 LookupResult* result, 2254 LookupResult* result,
2249 Name* name, 2255 Handle<Name> name,
2250 PropertyAttributes* attributes); 2256 PropertyAttributes* attributes);
2251 static Handle<Object> GetPropertyWithInterceptor( 2257 static Handle<Object> GetPropertyWithInterceptor(
2252 Handle<JSObject> holder, 2258 Handle<JSObject> holder,
2253 Handle<Object> receiver, 2259 Handle<Object> receiver,
2254 Handle<Name> name, 2260 Handle<Name> name,
2255 PropertyAttributes* attributes); 2261 PropertyAttributes* attributes);
2256 static Handle<Object> GetPropertyPostInterceptor( 2262 static Handle<Object> GetPropertyPostInterceptor(
2257 Handle<JSObject> holder, 2263 Handle<JSObject> holder,
2258 Handle<Object> receiver, 2264 Handle<Object> receiver,
2259 Handle<Name> name, 2265 Handle<Name> name,
(...skipping 7982 matching lines...) Expand 10 before | Expand all | Expand 10 after
10242 } else { 10248 } else {
10243 value &= ~(1 << bit_position); 10249 value &= ~(1 << bit_position);
10244 } 10250 }
10245 return value; 10251 return value;
10246 } 10252 }
10247 }; 10253 };
10248 10254
10249 } } // namespace v8::internal 10255 } } // namespace v8::internal
10250 10256
10251 #endif // V8_OBJECTS_H_ 10257 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | src/objects.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698