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 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 Handle<String> script_name = factory->NewStringFromAscii(name); | 756 Handle<String> script_name = factory->NewStringFromAscii(name); |
757 Handle<Context> context = isolate->native_context(); | 757 Handle<Context> context = isolate->native_context(); |
758 | 758 |
759 // Compile the script. | 759 // Compile the script. |
760 Handle<SharedFunctionInfo> function_info; | 760 Handle<SharedFunctionInfo> function_info; |
761 function_info = Compiler::CompileScript(source_code, | 761 function_info = Compiler::CompileScript(source_code, |
762 script_name, 0, 0, | 762 script_name, 0, 0, |
763 false, | 763 false, |
764 context, | 764 context, |
765 NULL, NULL, | 765 NULL, NULL, |
766 Handle<String>::null(), | |
767 NATIVES_CODE); | 766 NATIVES_CODE); |
768 | 767 |
769 // Silently ignore stack overflows during compilation. | 768 // Silently ignore stack overflows during compilation. |
770 if (function_info.is_null()) { | 769 if (function_info.is_null()) { |
771 ASSERT(isolate->has_pending_exception()); | 770 ASSERT(isolate->has_pending_exception()); |
772 isolate->clear_pending_exception(); | 771 isolate->clear_pending_exception(); |
773 return false; | 772 return false; |
774 } | 773 } |
775 | 774 |
776 // Execute the shared function in the debugger context. | 775 // Execute the shared function in the debugger context. |
(...skipping 3027 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3804 { | 3803 { |
3805 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); | 3804 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); |
3806 isolate_->debugger()->CallMessageDispatchHandler(); | 3805 isolate_->debugger()->CallMessageDispatchHandler(); |
3807 } | 3806 } |
3808 } | 3807 } |
3809 } | 3808 } |
3810 | 3809 |
3811 #endif // ENABLE_DEBUGGER_SUPPORT | 3810 #endif // ENABLE_DEBUGGER_SUPPORT |
3812 | 3811 |
3813 } } // namespace v8::internal | 3812 } } // namespace v8::internal |
OLD | NEW |