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 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
445 | 445 |
446 // Update the shared function info with the compiled code. | 446 // Update the shared function info with the compiled code. |
447 shared->set_code(*code); | 447 shared->set_code(*code); |
448 | 448 |
449 // Set the expected number of properties for instances. | 449 // Set the expected number of properties for instances. |
450 SetExpectedNofPropertiesFromEstimate(shared, lit->expected_property_count()); | 450 SetExpectedNofPropertiesFromEstimate(shared, lit->expected_property_count()); |
451 | 451 |
452 // Set the optimication hints after performing lazy compilation, as these are | 452 // Set the optimication hints after performing lazy compilation, as these are |
453 // not set when the function is set up as a lazily compiled function. | 453 // not set when the function is set up as a lazily compiled function. |
454 shared->SetThisPropertyAssignmentsInfo( | 454 shared->SetThisPropertyAssignmentsInfo( |
455 lit->has_only_this_property_assignments(), | |
456 lit->has_only_simple_this_property_assignments(), | 455 lit->has_only_simple_this_property_assignments(), |
457 *lit->this_property_assignments()); | 456 *lit->this_property_assignments()); |
458 | 457 |
459 // Check the function has compiled code. | 458 // Check the function has compiled code. |
460 ASSERT(shared->is_compiled()); | 459 ASSERT(shared->is_compiled()); |
461 return true; | 460 return true; |
462 } | 461 } |
463 | 462 |
464 | 463 |
465 CodeGenSelector::CodeGenTag CodeGenSelector::Select(FunctionLiteral* fun) { | 464 CodeGenSelector::CodeGenTag CodeGenSelector::Select(FunctionLiteral* fun) { |
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 | 892 |
894 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { | 893 void CodeGenSelector::VisitThisFunction(ThisFunction* expr) { |
895 BAILOUT("ThisFunction"); | 894 BAILOUT("ThisFunction"); |
896 } | 895 } |
897 | 896 |
898 #undef BAILOUT | 897 #undef BAILOUT |
899 #undef CHECK_BAILOUT | 898 #undef CHECK_BAILOUT |
900 | 899 |
901 | 900 |
902 } } // namespace v8::internal | 901 } } // namespace v8::internal |
OLD | NEW |