OLD | NEW |
1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 | 534 |
535 // Function compilation complete. | 535 // Function compilation complete. |
536 RecordFunctionCompilation(Logger::FUNCTION_TAG, | 536 RecordFunctionCompilation(Logger::FUNCTION_TAG, |
537 literal->name(), | 537 literal->name(), |
538 literal->inferred_name(), | 538 literal->inferred_name(), |
539 literal->start_position(), | 539 literal->start_position(), |
540 script, | 540 script, |
541 code); | 541 code); |
542 } | 542 } |
543 | 543 |
544 // Create a boilerplate function. | 544 // Create a shared function info object. |
545 Handle<SharedFunctionInfo> result = | 545 Handle<SharedFunctionInfo> result = |
546 Factory::NewSharedFunctionInfo(literal->name(), | 546 Factory::NewSharedFunctionInfo(literal->name(), |
547 literal->materialized_literal_count(), | 547 literal->materialized_literal_count(), |
548 code); | 548 code); |
549 SetFunctionInfo(result, literal, false, script); | 549 SetFunctionInfo(result, literal, false, script); |
550 | 550 |
551 // Set the expected number of properties for instances and return | 551 // Set the expected number of properties for instances and return |
552 // the resulting function. | 552 // the resulting function. |
553 SetExpectedNofPropertiesFromEstimate(result, | 553 SetExpectedNofPropertiesFromEstimate(result, |
554 literal->expected_property_count()); | 554 literal->expected_property_count()); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 PROFILE(CodeCreateEvent(Logger::ToNativeByScript(tag, *script), | 608 PROFILE(CodeCreateEvent(Logger::ToNativeByScript(tag, *script), |
609 *code, *func_name)); | 609 *code, *func_name)); |
610 OPROFILE(CreateNativeCodeRegion(*func_name, | 610 OPROFILE(CreateNativeCodeRegion(*func_name, |
611 code->instruction_start(), | 611 code->instruction_start(), |
612 code->instruction_size())); | 612 code->instruction_size())); |
613 } | 613 } |
614 } | 614 } |
615 } | 615 } |
616 | 616 |
617 } } // namespace v8::internal | 617 } } // namespace v8::internal |
OLD | NEW |