Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(247)

Side by Side Diff: src/debug.cc

Issue 203353002: New compilation API, part 2. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/d8.cc ('k') | src/parser.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 744 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 Vector<const char> name = Natives::GetScriptName(index); 755 Vector<const char> name = Natives::GetScriptName(index);
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, NO_CACHED_DATA,
766 NATIVES_CODE); 766 NATIVES_CODE);
767 767
768 // Silently ignore stack overflows during compilation. 768 // Silently ignore stack overflows during compilation.
769 if (function_info.is_null()) { 769 if (function_info.is_null()) {
770 ASSERT(isolate->has_pending_exception()); 770 ASSERT(isolate->has_pending_exception());
771 isolate->clear_pending_exception(); 771 isolate->clear_pending_exception();
772 return false; 772 return false;
773 } 773 }
774 774
775 // Execute the shared function in the debugger context. 775 // Execute the shared function in the debugger context.
(...skipping 3033 matching lines...) Expand 10 before | Expand all | Expand 10 after
3809 { 3809 {
3810 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); 3810 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_));
3811 isolate_->debugger()->CallMessageDispatchHandler(); 3811 isolate_->debugger()->CallMessageDispatchHandler();
3812 } 3812 }
3813 } 3813 }
3814 } 3814 }
3815 3815
3816 #endif // ENABLE_DEBUGGER_SUPPORT 3816 #endif // ENABLE_DEBUGGER_SUPPORT
3817 3817
3818 } } // namespace v8::internal 3818 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698