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