| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 446 *result, | 446 *result, |
| 447 isolate->heap()->empty_string())); | 447 isolate->heap()->empty_string())); |
| 448 GDBJIT(AddCode(Handle<String>(), script, info->code(), info)); | 448 GDBJIT(AddCode(Handle<String>(), script, info->code(), info)); |
| 449 } | 449 } |
| 450 | 450 |
| 451 // Hint to the runtime system used when allocating space for initial | 451 // Hint to the runtime system used when allocating space for initial |
| 452 // property space by setting the expected number of properties for | 452 // property space by setting the expected number of properties for |
| 453 // the instances of the function. | 453 // the instances of the function. |
| 454 SetExpectedNofPropertiesFromEstimate(result, lit->expected_property_count()); | 454 SetExpectedNofPropertiesFromEstimate(result, lit->expected_property_count()); |
| 455 | 455 |
| 456 script->set_compilation_state( |
| 457 Smi::FromInt(Script::COMPILATION_STATE_COMPILED)); |
| 458 |
| 456 #ifdef ENABLE_DEBUGGER_SUPPORT | 459 #ifdef ENABLE_DEBUGGER_SUPPORT |
| 457 // Notify debugger | 460 // Notify debugger |
| 458 isolate->debugger()->OnAfterCompile( | 461 isolate->debugger()->OnAfterCompile( |
| 459 script, Debugger::NO_AFTER_COMPILE_FLAGS); | 462 script, Debugger::NO_AFTER_COMPILE_FLAGS); |
| 460 #endif | 463 #endif |
| 461 | 464 |
| 462 live_edit_tracker.RecordFunctionInfo(result, lit); | 465 live_edit_tracker.RecordFunctionInfo(result, lit); |
| 463 | 466 |
| 464 return result; | 467 return result; |
| 465 } | 468 } |
| (...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 804 } | 807 } |
| 805 } | 808 } |
| 806 | 809 |
| 807 GDBJIT(AddCode(Handle<String>(shared->DebugName()), | 810 GDBJIT(AddCode(Handle<String>(shared->DebugName()), |
| 808 Handle<Script>(info->script()), | 811 Handle<Script>(info->script()), |
| 809 Handle<Code>(info->code()), | 812 Handle<Code>(info->code()), |
| 810 info)); | 813 info)); |
| 811 } | 814 } |
| 812 | 815 |
| 813 } } // namespace v8::internal | 816 } } // namespace v8::internal |
| OLD | NEW |