| 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 801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 KEEP_INOBJECT_PROPERTIES, | 812 KEEP_INOBJECT_PROPERTIES, |
| 813 expected_additional_properties); | 813 expected_additional_properties); |
| 814 has_been_transformed_ = true; | 814 has_been_transformed_ = true; |
| 815 | 815 |
| 816 } else { | 816 } else { |
| 817 has_been_transformed_ = false; | 817 has_been_transformed_ = false; |
| 818 } | 818 } |
| 819 } | 819 } |
| 820 | 820 |
| 821 | 821 |
| 822 Handle<Code> ComputeLazyCompile(int argc) { | |
| 823 CALL_HEAP_FUNCTION(StubCache::ComputeLazyCompile(argc), Code); | |
| 824 } | |
| 825 | |
| 826 | |
| 827 OptimizedObjectForAddingMultipleProperties:: | 822 OptimizedObjectForAddingMultipleProperties:: |
| 828 ~OptimizedObjectForAddingMultipleProperties() { | 823 ~OptimizedObjectForAddingMultipleProperties() { |
| 829 // Reoptimize the object to allow fast property access. | 824 // Reoptimize the object to allow fast property access. |
| 830 if (has_been_transformed_) { | 825 if (has_been_transformed_) { |
| 831 TransformToFastProperties(object_, unused_property_fields_); | 826 TransformToFastProperties(object_, unused_property_fields_); |
| 832 } | 827 } |
| 833 } | 828 } |
| 834 | 829 |
| 835 } } // namespace v8::internal | 830 } } // namespace v8::internal |
| OLD | NEW |