OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 if (script->name()->IsString()) { | 406 if (script->name()->IsString()) { |
407 PROFILE(isolate, CodeCreateEvent( | 407 PROFILE(isolate, CodeCreateEvent( |
408 info->is_eval() | 408 info->is_eval() |
409 ? Logger::EVAL_TAG | 409 ? Logger::EVAL_TAG |
410 : Logger::ToNativeByScript(Logger::SCRIPT_TAG, *script), | 410 : Logger::ToNativeByScript(Logger::SCRIPT_TAG, *script), |
411 *info->code(), | 411 *info->code(), |
412 *result, | 412 *result, |
413 String::cast(script->name()))); | 413 String::cast(script->name()))); |
414 GDBJIT(AddCode(Handle<String>(String::cast(script->name())), | 414 GDBJIT(AddCode(Handle<String>(String::cast(script->name())), |
415 script, | 415 script, |
416 info->code())); | 416 info->code(), |
| 417 info)); |
417 } else { | 418 } else { |
418 PROFILE(isolate, CodeCreateEvent( | 419 PROFILE(isolate, CodeCreateEvent( |
419 info->is_eval() | 420 info->is_eval() |
420 ? Logger::EVAL_TAG | 421 ? Logger::EVAL_TAG |
421 : Logger::ToNativeByScript(Logger::SCRIPT_TAG, *script), | 422 : Logger::ToNativeByScript(Logger::SCRIPT_TAG, *script), |
422 *info->code(), | 423 *info->code(), |
423 *result, | 424 *result, |
424 isolate->heap()->empty_string())); | 425 isolate->heap()->empty_string())); |
425 GDBJIT(AddCode(Handle<String>(), script, info->code())); | 426 GDBJIT(AddCode(Handle<String>(), script, info->code(), info)); |
426 } | 427 } |
427 | 428 |
428 // Hint to the runtime system used when allocating space for initial | 429 // Hint to the runtime system used when allocating space for initial |
429 // property space by setting the expected number of properties for | 430 // property space by setting the expected number of properties for |
430 // the instances of the function. | 431 // the instances of the function. |
431 SetExpectedNofPropertiesFromEstimate(result, lit->expected_property_count()); | 432 SetExpectedNofPropertiesFromEstimate(result, lit->expected_property_count()); |
432 | 433 |
433 #ifdef ENABLE_DEBUGGER_SUPPORT | 434 #ifdef ENABLE_DEBUGGER_SUPPORT |
434 // Notify debugger | 435 // Notify debugger |
435 isolate->debugger()->OnAfterCompile( | 436 isolate->debugger()->OnAfterCompile( |
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
781 PROFILE(info->isolate(), | 782 PROFILE(info->isolate(), |
782 CodeCreateEvent(Logger::ToNativeByScript(tag, *script), | 783 CodeCreateEvent(Logger::ToNativeByScript(tag, *script), |
783 *code, | 784 *code, |
784 *shared, | 785 *shared, |
785 shared->DebugName())); | 786 shared->DebugName())); |
786 } | 787 } |
787 } | 788 } |
788 | 789 |
789 GDBJIT(AddCode(Handle<String>(shared->DebugName()), | 790 GDBJIT(AddCode(Handle<String>(shared->DebugName()), |
790 Handle<Script>(info->script()), | 791 Handle<Script>(info->script()), |
791 Handle<Code>(info->code()))); | 792 Handle<Code>(info->code()), |
| 793 info)); |
792 } | 794 } |
793 | 795 |
794 } } // namespace v8::internal | 796 } } // namespace v8::internal |
OLD | NEW |