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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // Flattens a string. | 190 // Flattens a string. |
191 void FlattenString(Handle<String> str); | 191 void FlattenString(Handle<String> str); |
192 | 192 |
193 // Flattens a string and returns the underlying external or sequential | 193 // Flattens a string and returns the underlying external or sequential |
194 // string. | 194 // string. |
195 Handle<String> FlattenGetString(Handle<String> str); | 195 Handle<String> FlattenGetString(Handle<String> str); |
196 | 196 |
197 Handle<Object> SetProperty(Handle<JSObject> object, | 197 Handle<Object> SetProperty(Handle<JSObject> object, |
198 Handle<String> key, | 198 Handle<String> key, |
199 Handle<Object> value, | 199 Handle<Object> value, |
200 PropertyAttributes attributes); | 200 PropertyAttributes attributes, |
| 201 StrictModeFlag strict); |
201 | 202 |
202 Handle<Object> SetProperty(Handle<Object> object, | 203 Handle<Object> SetProperty(Handle<Object> object, |
203 Handle<Object> key, | 204 Handle<Object> key, |
204 Handle<Object> value, | 205 Handle<Object> value, |
205 PropertyAttributes attributes); | 206 PropertyAttributes attributes, |
| 207 StrictModeFlag strict); |
206 | 208 |
207 Handle<Object> ForceSetProperty(Handle<JSObject> object, | 209 Handle<Object> ForceSetProperty(Handle<JSObject> object, |
208 Handle<Object> key, | 210 Handle<Object> key, |
209 Handle<Object> value, | 211 Handle<Object> value, |
210 PropertyAttributes attributes); | 212 PropertyAttributes attributes); |
211 | 213 |
212 Handle<Object> SetNormalizedProperty(Handle<JSObject> object, | 214 Handle<Object> SetNormalizedProperty(Handle<JSObject> object, |
213 Handle<String> key, | 215 Handle<String> key, |
214 Handle<Object> value, | 216 Handle<Object> value, |
215 PropertyDetails details); | 217 PropertyDetails details); |
(...skipping 10 matching lines...) Expand all Loading... |
226 // Used to set local properties on the object we totally control | 228 // Used to set local properties on the object we totally control |
227 // and which therefore has no accessors and alikes. | 229 // and which therefore has no accessors and alikes. |
228 void SetLocalPropertyNoThrow(Handle<JSObject> object, | 230 void SetLocalPropertyNoThrow(Handle<JSObject> object, |
229 Handle<String> key, | 231 Handle<String> key, |
230 Handle<Object> value, | 232 Handle<Object> value, |
231 PropertyAttributes attributes = NONE); | 233 PropertyAttributes attributes = NONE); |
232 | 234 |
233 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, | 235 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, |
234 Handle<String> key, | 236 Handle<String> key, |
235 Handle<Object> value, | 237 Handle<Object> value, |
236 PropertyAttributes attributes); | 238 PropertyAttributes attributes, |
| 239 StrictModeFlag strict); |
237 | 240 |
238 Handle<Object> SetElement(Handle<JSObject> object, | 241 Handle<Object> SetElement(Handle<JSObject> object, |
239 uint32_t index, | 242 uint32_t index, |
240 Handle<Object> value); | 243 Handle<Object> value); |
241 | 244 |
242 Handle<Object> SetOwnElement(Handle<JSObject> object, | 245 Handle<Object> SetOwnElement(Handle<JSObject> object, |
243 uint32_t index, | 246 uint32_t index, |
244 Handle<Object> value); | 247 Handle<Object> value); |
245 | 248 |
246 Handle<Object> GetProperty(Handle<JSObject> obj, | 249 Handle<Object> GetProperty(Handle<JSObject> obj, |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 private: | 387 private: |
385 bool has_been_transformed_; // Tells whether the object has been transformed. | 388 bool has_been_transformed_; // Tells whether the object has been transformed. |
386 int unused_property_fields_; // Captures the unused number of field. | 389 int unused_property_fields_; // Captures the unused number of field. |
387 Handle<JSObject> object_; // The object being optimized. | 390 Handle<JSObject> object_; // The object being optimized. |
388 }; | 391 }; |
389 | 392 |
390 | 393 |
391 } } // namespace v8::internal | 394 } } // namespace v8::internal |
392 | 395 |
393 #endif // V8_HANDLES_H_ | 396 #endif // V8_HANDLES_H_ |
OLD | NEW |