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

Side by Side Diff: src/debug.cc

Issue 20646006: Pipe a script's CORS status through V8 during compilation. (Closed) Base URL: https://chromium.googlesource.com/external/v8.git@master
Patch Set: . Created 7 years, 4 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
« no previous file with comments | « src/compiler.cc ('k') | src/objects.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 768 matching lines...) Expand 10 before | Expand all | Expand 10 after
779 isolate->bootstrapper()->NativesSourceLookup(index); 779 isolate->bootstrapper()->NativesSourceLookup(index);
780 Vector<const char> name = Natives::GetScriptName(index); 780 Vector<const char> name = Natives::GetScriptName(index);
781 Handle<String> script_name = factory->NewStringFromAscii(name); 781 Handle<String> script_name = factory->NewStringFromAscii(name);
782 Handle<Context> context = isolate->native_context(); 782 Handle<Context> context = isolate->native_context();
783 783
784 // Compile the script. 784 // Compile the script.
785 Handle<SharedFunctionInfo> function_info; 785 Handle<SharedFunctionInfo> function_info;
786 function_info = Compiler::Compile(source_code, 786 function_info = Compiler::Compile(source_code,
787 script_name, 787 script_name,
788 0, 0, 788 0, 0,
789 false,
789 context, 790 context,
790 NULL, NULL, 791 NULL, NULL,
791 Handle<String>::null(), 792 Handle<String>::null(),
792 NATIVES_CODE); 793 NATIVES_CODE);
793 794
794 // Silently ignore stack overflows during compilation. 795 // Silently ignore stack overflows during compilation.
795 if (function_info.is_null()) { 796 if (function_info.is_null()) {
796 ASSERT(isolate->has_pending_exception()); 797 ASSERT(isolate->has_pending_exception());
797 isolate->clear_pending_exception(); 798 isolate->clear_pending_exception();
798 return false; 799 return false;
(...skipping 3059 matching lines...) Expand 10 before | Expand all | Expand 10 after
3858 { 3859 {
3859 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_)); 3860 Locker locker(reinterpret_cast<v8::Isolate*>(isolate_));
3860 isolate_->debugger()->CallMessageDispatchHandler(); 3861 isolate_->debugger()->CallMessageDispatchHandler();
3861 } 3862 }
3862 } 3863 }
3863 } 3864 }
3864 3865
3865 #endif // ENABLE_DEBUGGER_SUPPORT 3866 #endif // ENABLE_DEBUGGER_SUPPORT
3866 3867
3867 } } // namespace v8::internal 3868 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698