| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 void FlattenString(Handle<String> str); | 179 void FlattenString(Handle<String> str); |
| 180 | 180 |
| 181 // Flattens a string and returns the underlying external or sequential | 181 // Flattens a string and returns the underlying external or sequential |
| 182 // string. | 182 // string. |
| 183 Handle<String> FlattenGetString(Handle<String> str); | 183 Handle<String> FlattenGetString(Handle<String> str); |
| 184 | 184 |
| 185 Handle<Object> SetProperty(Handle<JSObject> object, | 185 Handle<Object> SetProperty(Handle<JSObject> object, |
| 186 Handle<String> key, | 186 Handle<String> key, |
| 187 Handle<Object> value, | 187 Handle<Object> value, |
| 188 PropertyAttributes attributes, | 188 PropertyAttributes attributes, |
| 189 StrictModeFlag strict); | 189 StrictModeFlag strict_mode); |
| 190 | 190 |
| 191 Handle<Object> SetProperty(Handle<Object> object, | 191 Handle<Object> SetProperty(Handle<Object> object, |
| 192 Handle<Object> key, | 192 Handle<Object> key, |
| 193 Handle<Object> value, | 193 Handle<Object> value, |
| 194 PropertyAttributes attributes, | 194 PropertyAttributes attributes, |
| 195 StrictModeFlag strict); | 195 StrictModeFlag strict_mode); |
| 196 | 196 |
| 197 Handle<Object> ForceSetProperty(Handle<JSObject> object, | 197 Handle<Object> ForceSetProperty(Handle<JSObject> object, |
| 198 Handle<Object> key, | 198 Handle<Object> key, |
| 199 Handle<Object> value, | 199 Handle<Object> value, |
| 200 PropertyAttributes attributes); | 200 PropertyAttributes attributes); |
| 201 | 201 |
| 202 Handle<Object> SetNormalizedProperty(Handle<JSObject> object, | 202 Handle<Object> SetNormalizedProperty(Handle<JSObject> object, |
| 203 Handle<String> key, | 203 Handle<String> key, |
| 204 Handle<Object> value, | 204 Handle<Object> value, |
| 205 PropertyDetails details); | 205 PropertyDetails details); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 217 // and which therefore has no accessors and alikes. | 217 // and which therefore has no accessors and alikes. |
| 218 void SetLocalPropertyNoThrow(Handle<JSObject> object, | 218 void SetLocalPropertyNoThrow(Handle<JSObject> object, |
| 219 Handle<String> key, | 219 Handle<String> key, |
| 220 Handle<Object> value, | 220 Handle<Object> value, |
| 221 PropertyAttributes attributes = NONE); | 221 PropertyAttributes attributes = NONE); |
| 222 | 222 |
| 223 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, | 223 Handle<Object> SetPropertyWithInterceptor(Handle<JSObject> object, |
| 224 Handle<String> key, | 224 Handle<String> key, |
| 225 Handle<Object> value, | 225 Handle<Object> value, |
| 226 PropertyAttributes attributes, | 226 PropertyAttributes attributes, |
| 227 StrictModeFlag strict); | 227 StrictModeFlag strict_mode); |
| 228 | 228 |
| 229 Handle<Object> SetElement(Handle<JSObject> object, | 229 Handle<Object> SetElement(Handle<JSObject> object, |
| 230 uint32_t index, | 230 uint32_t index, |
| 231 Handle<Object> value); | 231 Handle<Object> value); |
| 232 | 232 |
| 233 Handle<Object> SetOwnElement(Handle<JSObject> object, | 233 Handle<Object> SetOwnElement(Handle<JSObject> object, |
| 234 uint32_t index, | 234 uint32_t index, |
| 235 Handle<Object> value); | 235 Handle<Object> value); |
| 236 | 236 |
| 237 Handle<Object> GetProperty(Handle<JSObject> obj, | 237 Handle<Object> GetProperty(Handle<JSObject> obj, |
| (...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 private: | 377 private: |
| 378 bool has_been_transformed_; // Tells whether the object has been transformed. | 378 bool has_been_transformed_; // Tells whether the object has been transformed. |
| 379 int unused_property_fields_; // Captures the unused number of field. | 379 int unused_property_fields_; // Captures the unused number of field. |
| 380 Handle<JSObject> object_; // The object being optimized. | 380 Handle<JSObject> object_; // The object being optimized. |
| 381 }; | 381 }; |
| 382 | 382 |
| 383 | 383 |
| 384 } } // namespace v8::internal | 384 } } // namespace v8::internal |
| 385 | 385 |
| 386 #endif // V8_HANDLES_H_ | 386 #endif // V8_HANDLES_H_ |
| OLD | NEW |