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

Side by Side Diff: src/debug.cc

Issue 983603003: Allow passing sourceMapUrl when compiling scripts (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebased Created 5 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
« no previous file with comments | « src/compiler.cc ('k') | test/cctest/compiler/test-linkage.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/api.h" 7 #include "src/api.h"
8 #include "src/arguments.h" 8 #include "src/arguments.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/code-stubs.h" 10 #include "src/code-stubs.h"
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after
630 Handle<String> source_code = 630 Handle<String> source_code =
631 isolate->bootstrapper()->NativesSourceLookup(index); 631 isolate->bootstrapper()->NativesSourceLookup(index);
632 Vector<const char> name = Natives::GetScriptName(index); 632 Vector<const char> name = Natives::GetScriptName(index);
633 Handle<String> script_name = 633 Handle<String> script_name =
634 factory->NewStringFromAscii(name).ToHandleChecked(); 634 factory->NewStringFromAscii(name).ToHandleChecked();
635 Handle<Context> context = isolate->native_context(); 635 Handle<Context> context = isolate->native_context();
636 636
637 // Compile the script. 637 // Compile the script.
638 Handle<SharedFunctionInfo> function_info; 638 Handle<SharedFunctionInfo> function_info;
639 function_info = Compiler::CompileScript( 639 function_info = Compiler::CompileScript(
640 source_code, script_name, 0, 0, false, false, context, NULL, NULL, 640 source_code, script_name, 0, 0, false, false, Handle<Object>(), context,
641 ScriptCompiler::kNoCompileOptions, NATIVES_CODE, false); 641 NULL, NULL, ScriptCompiler::kNoCompileOptions, NATIVES_CODE, false);
642 642
643 // Silently ignore stack overflows during compilation. 643 // Silently ignore stack overflows during compilation.
644 if (function_info.is_null()) { 644 if (function_info.is_null()) {
645 DCHECK(isolate->has_pending_exception()); 645 DCHECK(isolate->has_pending_exception());
646 isolate->clear_pending_exception(); 646 isolate->clear_pending_exception();
647 return false; 647 return false;
648 } 648 }
649 649
650 // Execute the shared function in the debugger context. 650 // Execute the shared function in the debugger context.
651 Handle<JSFunction> function = 651 Handle<JSFunction> function =
(...skipping 2729 matching lines...) Expand 10 before | Expand all | Expand 10 after
3381 logger_->DebugEvent("Put", message.text()); 3381 logger_->DebugEvent("Put", message.text());
3382 } 3382 }
3383 3383
3384 3384
3385 void LockingCommandMessageQueue::Clear() { 3385 void LockingCommandMessageQueue::Clear() {
3386 base::LockGuard<base::Mutex> lock_guard(&mutex_); 3386 base::LockGuard<base::Mutex> lock_guard(&mutex_);
3387 queue_.Clear(); 3387 queue_.Clear();
3388 } 3388 }
3389 3389
3390 } } // namespace v8::internal 3390 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | test/cctest/compiler/test-linkage.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698