| OLD | NEW |
| 1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 | 196 |
| 197 | 197 |
| 198 void FlattenString(Handle<String> string) { | 198 void FlattenString(Handle<String> string) { |
| 199 CALL_HEAP_FUNCTION_VOID(string->TryFlatten()); | 199 CALL_HEAP_FUNCTION_VOID(string->TryFlatten()); |
| 200 ASSERT(string->IsFlat()); | 200 ASSERT(string->IsFlat()); |
| 201 } | 201 } |
| 202 | 202 |
| 203 | 203 |
| 204 Handle<Object> SetPrototype(Handle<JSFunction> function, | 204 Handle<Object> SetPrototype(Handle<JSFunction> function, |
| 205 Handle<Object> prototype) { | 205 Handle<Object> prototype) { |
| 206 ASSERT(function->should_have_prototype()); |
| 206 CALL_HEAP_FUNCTION(Accessors::FunctionSetPrototype(*function, | 207 CALL_HEAP_FUNCTION(Accessors::FunctionSetPrototype(*function, |
| 207 *prototype, | 208 *prototype, |
| 208 NULL), | 209 NULL), |
| 209 Object); | 210 Object); |
| 210 } | 211 } |
| 211 | 212 |
| 212 | 213 |
| 213 Handle<Object> SetProperty(Handle<JSObject> object, | 214 Handle<Object> SetProperty(Handle<JSObject> object, |
| 214 Handle<String> key, | 215 Handle<String> key, |
| 215 Handle<Object> value, | 216 Handle<Object> value, |
| (...skipping 580 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 796 | 797 |
| 797 OptimizedObjectForAddingMultipleProperties:: | 798 OptimizedObjectForAddingMultipleProperties:: |
| 798 ~OptimizedObjectForAddingMultipleProperties() { | 799 ~OptimizedObjectForAddingMultipleProperties() { |
| 799 // Reoptimize the object to allow fast property access. | 800 // Reoptimize the object to allow fast property access. |
| 800 if (has_been_transformed_) { | 801 if (has_been_transformed_) { |
| 801 TransformToFastProperties(object_, unused_property_fields_); | 802 TransformToFastProperties(object_, unused_property_fields_); |
| 802 } | 803 } |
| 803 } | 804 } |
| 804 | 805 |
| 805 } } // namespace v8::internal | 806 } } // namespace v8::internal |
| OLD | NEW |