| 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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 789 expected_additional_properties); | 789 expected_additional_properties); |
| 790 has_been_transformed_ = true; | 790 has_been_transformed_ = true; |
| 791 | 791 |
| 792 } else { | 792 } else { |
| 793 has_been_transformed_ = false; | 793 has_been_transformed_ = false; |
| 794 } | 794 } |
| 795 } | 795 } |
| 796 | 796 |
| 797 | 797 |
| 798 Handle<Code> ComputeLazyCompile(int argc) { | 798 Handle<Code> ComputeLazyCompile(int argc) { |
| 799 CALL_HEAP_FUNCTION(StubCache::ComputeLazyCompile(argc), Code); | 799 CALL_HEAP_FUNCTION(Isolate::Current()->stub_cache()->ComputeLazyCompile(argc), |
| 800 Code); |
| 800 } | 801 } |
| 801 | 802 |
| 802 | 803 |
| 803 OptimizedObjectForAddingMultipleProperties:: | 804 OptimizedObjectForAddingMultipleProperties:: |
| 804 ~OptimizedObjectForAddingMultipleProperties() { | 805 ~OptimizedObjectForAddingMultipleProperties() { |
| 805 // Reoptimize the object to allow fast property access. | 806 // Reoptimize the object to allow fast property access. |
| 806 if (has_been_transformed_) { | 807 if (has_been_transformed_) { |
| 807 TransformToFastProperties(object_, unused_property_fields_); | 808 TransformToFastProperties(object_, unused_property_fields_); |
| 808 } | 809 } |
| 809 } | 810 } |
| 810 | 811 |
| 811 } } // namespace v8::internal | 812 } } // namespace v8::internal |
| OLD | NEW |