OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 Handle<Object> SetProperty(Handle<Object> object, | 203 Handle<Object> SetProperty(Handle<Object> object, |
204 Handle<Object> key, | 204 Handle<Object> key, |
205 Handle<Object> value, | 205 Handle<Object> value, |
206 PropertyAttributes attributes); | 206 PropertyAttributes attributes); |
207 | 207 |
208 Handle<Object> ForceSetProperty(Handle<JSObject> object, | 208 Handle<Object> ForceSetProperty(Handle<JSObject> object, |
209 Handle<Object> key, | 209 Handle<Object> key, |
210 Handle<Object> value, | 210 Handle<Object> value, |
211 PropertyAttributes attributes); | 211 PropertyAttributes attributes); |
212 | 212 |
| 213 Handle<Object> SetNormalizedProperty(Handle<JSObject> object, |
| 214 Handle<String> key, |
| 215 Handle<Object> value, |
| 216 PropertyDetails details); |
| 217 |
213 Handle<Object> ForceDeleteProperty(Handle<JSObject> object, | 218 Handle<Object> ForceDeleteProperty(Handle<JSObject> object, |
214 Handle<Object> key); | 219 Handle<Object> key); |
215 | 220 |
216 Handle<Object> IgnoreAttributesAndSetLocalProperty(Handle<JSObject> object, | 221 Handle<Object> IgnoreAttributesAndSetLocalProperty(Handle<JSObject> object, |
217 Handle<String> key, | 222 Handle<String> key, |
218 Handle<Object> value, | 223 Handle<Object> value, |
219 PropertyAttributes attributes); | 224 PropertyAttributes attributes); |
220 | 225 |
221 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, | 226 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, |
222 Handle<String> key, | 227 Handle<String> key, |
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 Handle<Object> receiver, | 336 Handle<Object> receiver, |
332 ClearExceptionFlag flag); | 337 ClearExceptionFlag flag); |
333 | 338 |
334 bool CompileLazyInLoop(Handle<JSFunction> function, | 339 bool CompileLazyInLoop(Handle<JSFunction> function, |
335 Handle<Object> receiver, | 340 Handle<Object> receiver, |
336 ClearExceptionFlag flag); | 341 ClearExceptionFlag flag); |
337 | 342 |
338 // Returns the lazy compilation stub for argc arguments. | 343 // Returns the lazy compilation stub for argc arguments. |
339 Handle<Code> ComputeLazyCompile(int argc); | 344 Handle<Code> ComputeLazyCompile(int argc); |
340 | 345 |
341 // These deal with lazily loaded properties. | |
342 void SetupLazy(Handle<JSObject> obj, | |
343 int index, | |
344 Handle<Context> compile_context, | |
345 Handle<Context> function_context); | |
346 void LoadLazy(Handle<JSObject> obj, bool* pending_exception); | |
347 | |
348 class NoHandleAllocation BASE_EMBEDDED { | 346 class NoHandleAllocation BASE_EMBEDDED { |
349 public: | 347 public: |
350 #ifndef DEBUG | 348 #ifndef DEBUG |
351 NoHandleAllocation() {} | 349 NoHandleAllocation() {} |
352 ~NoHandleAllocation() {} | 350 ~NoHandleAllocation() {} |
353 #else | 351 #else |
354 inline NoHandleAllocation(); | 352 inline NoHandleAllocation(); |
355 inline ~NoHandleAllocation(); | 353 inline ~NoHandleAllocation(); |
356 private: | 354 private: |
357 int extensions_; | 355 int extensions_; |
(...skipping 15 matching lines...) Expand all Loading... |
373 private: | 371 private: |
374 bool has_been_transformed_; // Tells whether the object has been transformed. | 372 bool has_been_transformed_; // Tells whether the object has been transformed. |
375 int unused_property_fields_; // Captures the unused number of field. | 373 int unused_property_fields_; // Captures the unused number of field. |
376 Handle<JSObject> object_; // The object being optimized. | 374 Handle<JSObject> object_; // The object being optimized. |
377 }; | 375 }; |
378 | 376 |
379 | 377 |
380 } } // namespace v8::internal | 378 } } // namespace v8::internal |
381 | 379 |
382 #endif // V8_HANDLES_H_ | 380 #endif // V8_HANDLES_H_ |
OLD | NEW |