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

Side by Side Diff: src/handles.h

Issue 7348008: Merge up to 8597 to experimental/gc from the bleeding edge. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
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/global-handles.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 2006-2008 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
11 // with the distribution. 11 // with the distribution.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 163
164 // ---------------------------------------------------------------------------- 164 // ----------------------------------------------------------------------------
165 // Handle operations. 165 // Handle operations.
166 // They might invoke garbage collection. The result is an handle to 166 // They might invoke garbage collection. The result is an handle to
167 // an object of expected type, or the handle is an error if running out 167 // an object of expected type, or the handle is an error if running out
168 // of space or encountering an internal error. 168 // of space or encountering an internal error.
169 169
170 void NormalizeProperties(Handle<JSObject> object, 170 void NormalizeProperties(Handle<JSObject> object,
171 PropertyNormalizationMode mode, 171 PropertyNormalizationMode mode,
172 int expected_additional_properties); 172 int expected_additional_properties);
173 void NormalizeElements(Handle<JSObject> object); 173 Handle<NumberDictionary> NormalizeElements(Handle<JSObject> object);
174 void TransformToFastProperties(Handle<JSObject> object, 174 void TransformToFastProperties(Handle<JSObject> object,
175 int unused_property_fields); 175 int unused_property_fields);
176 void NumberDictionarySet(Handle<NumberDictionary> dictionary, 176 MUST_USE_RESULT Handle<NumberDictionary> NumberDictionarySet(
177 uint32_t index, 177 Handle<NumberDictionary> dictionary,
178 Handle<Object> value, 178 uint32_t index,
179 PropertyDetails details); 179 Handle<Object> value,
180 PropertyDetails details);
180 181
181 // Flattens a string. 182 // Flattens a string.
182 void FlattenString(Handle<String> str); 183 void FlattenString(Handle<String> str);
183 184
184 // Flattens a string and returns the underlying external or sequential 185 // Flattens a string and returns the underlying external or sequential
185 // string. 186 // string.
186 Handle<String> FlattenGetString(Handle<String> str); 187 Handle<String> FlattenGetString(Handle<String> str);
187 188
188 Handle<Object> SetProperty(Handle<JSObject> object, 189 Handle<Object> SetProperty(Handle<JSReceiver> object,
189 Handle<String> key, 190 Handle<String> key,
190 Handle<Object> value, 191 Handle<Object> value,
191 PropertyAttributes attributes, 192 PropertyAttributes attributes,
192 StrictModeFlag strict_mode); 193 StrictModeFlag strict_mode);
193 194
194 Handle<Object> SetProperty(Handle<Object> object, 195 Handle<Object> SetProperty(Handle<Object> object,
195 Handle<Object> key, 196 Handle<Object> key,
196 Handle<Object> value, 197 Handle<Object> value,
197 PropertyAttributes attributes, 198 PropertyAttributes attributes,
198 StrictModeFlag strict_mode); 199 StrictModeFlag strict_mode);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 MUST_USE_RESULT Handle<Object> SetElement(Handle<JSObject> object, 233 MUST_USE_RESULT Handle<Object> SetElement(Handle<JSObject> object,
233 uint32_t index, 234 uint32_t index,
234 Handle<Object> value, 235 Handle<Object> value,
235 StrictModeFlag strict_mode); 236 StrictModeFlag strict_mode);
236 237
237 Handle<Object> SetOwnElement(Handle<JSObject> object, 238 Handle<Object> SetOwnElement(Handle<JSObject> object,
238 uint32_t index, 239 uint32_t index,
239 Handle<Object> value, 240 Handle<Object> value,
240 StrictModeFlag strict_mode); 241 StrictModeFlag strict_mode);
241 242
242 Handle<Object> GetProperty(Handle<JSObject> obj, 243 Handle<Object> GetProperty(Handle<JSReceiver> obj,
243 const char* name); 244 const char* name);
244 245
245 Handle<Object> GetProperty(Handle<Object> obj, 246 Handle<Object> GetProperty(Handle<Object> obj,
246 const char* name,
247 LookupResult* result);
248
249 Handle<Object> GetProperty(Handle<Object> obj,
250 Handle<Object> key); 247 Handle<Object> key);
251 248
252 Handle<Object> GetProperty(Handle<JSObject> obj, 249 Handle<Object> GetProperty(Handle<JSReceiver> obj,
253 Handle<String> name, 250 Handle<String> name,
254 LookupResult* result); 251 LookupResult* result);
255 252
256 253
257 Handle<Object> GetElement(Handle<Object> obj, 254 Handle<Object> GetElement(Handle<Object> obj,
258 uint32_t index); 255 uint32_t index);
259 256
260 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver, 257 Handle<Object> GetPropertyWithInterceptor(Handle<JSObject> receiver,
261 Handle<JSObject> holder, 258 Handle<JSObject> holder,
262 Handle<String> name, 259 Handle<String> name,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 inline NoHandleAllocation(); 370 inline NoHandleAllocation();
374 inline ~NoHandleAllocation(); 371 inline ~NoHandleAllocation();
375 private: 372 private:
376 int level_; 373 int level_;
377 #endif 374 #endif
378 }; 375 };
379 376
380 } } // namespace v8::internal 377 } } // namespace v8::internal
381 378
382 #endif // V8_HANDLES_H_ 379 #endif // V8_HANDLES_H_
OLDNEW
« no previous file with comments | « src/global-handles.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698