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

Side by Side Diff: src/debug.cc

Issue 606053: Enable passing of script data via script creation methods (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: '' Created 10 years, 10 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/compiler.cc ('k') | src/handles.cc » ('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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after
683 683
684 // Find source and name for the requested script. 684 // Find source and name for the requested script.
685 Handle<String> source_code = Bootstrapper::NativesSourceLookup(index); 685 Handle<String> source_code = Bootstrapper::NativesSourceLookup(index);
686 Vector<const char> name = Natives::GetScriptName(index); 686 Vector<const char> name = Natives::GetScriptName(index);
687 Handle<String> script_name = Factory::NewStringFromAscii(name); 687 Handle<String> script_name = Factory::NewStringFromAscii(name);
688 688
689 // Compile the script. 689 // Compile the script.
690 bool allow_natives_syntax = FLAG_allow_natives_syntax; 690 bool allow_natives_syntax = FLAG_allow_natives_syntax;
691 FLAG_allow_natives_syntax = true; 691 FLAG_allow_natives_syntax = true;
692 Handle<JSFunction> boilerplate; 692 Handle<JSFunction> boilerplate;
693 boilerplate = Compiler::Compile(source_code, script_name, 0, 0, NULL, NULL); 693 boilerplate = Compiler::Compile(source_code, script_name, 0, 0, NULL, NULL,
694 Handle<String>::null());
694 FLAG_allow_natives_syntax = allow_natives_syntax; 695 FLAG_allow_natives_syntax = allow_natives_syntax;
695 696
696 // Silently ignore stack overflows during compilation. 697 // Silently ignore stack overflows during compilation.
697 if (boilerplate.is_null()) { 698 if (boilerplate.is_null()) {
698 ASSERT(Top::has_pending_exception()); 699 ASSERT(Top::has_pending_exception());
699 Top::clear_pending_exception(); 700 Top::clear_pending_exception();
700 return false; 701 return false;
701 } 702 }
702 703
703 // Execute the boilerplate function in the debugger context. 704 // Execute the boilerplate function in the debugger context.
(...skipping 2090 matching lines...) Expand 10 before | Expand all | Expand 10 after
2794 { 2795 {
2795 Locker locker; 2796 Locker locker;
2796 Debugger::CallMessageDispatchHandler(); 2797 Debugger::CallMessageDispatchHandler();
2797 } 2798 }
2798 } 2799 }
2799 } 2800 }
2800 2801
2801 #endif // ENABLE_DEBUGGER_SUPPORT 2802 #endif // ENABLE_DEBUGGER_SUPPORT
2802 2803
2803 } } // namespace v8::internal 2804 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/handles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698