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

Side by Side Diff: src/debug.cc

Issue 902093002: Add basic compilation support for modules (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add TODO Created 5 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
« no previous file with comments | « src/compiler.cc ('k') | src/full-codegen.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 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
738 isolate->bootstrapper()->NativesSourceLookup(index); 738 isolate->bootstrapper()->NativesSourceLookup(index);
739 Vector<const char> name = Natives::GetScriptName(index); 739 Vector<const char> name = Natives::GetScriptName(index);
740 Handle<String> script_name = 740 Handle<String> script_name =
741 factory->NewStringFromAscii(name).ToHandleChecked(); 741 factory->NewStringFromAscii(name).ToHandleChecked();
742 Handle<Context> context = isolate->native_context(); 742 Handle<Context> context = isolate->native_context();
743 743
744 // Compile the script. 744 // Compile the script.
745 Handle<SharedFunctionInfo> function_info; 745 Handle<SharedFunctionInfo> function_info;
746 function_info = Compiler::CompileScript( 746 function_info = Compiler::CompileScript(
747 source_code, script_name, 0, 0, false, false, context, NULL, NULL, 747 source_code, script_name, 0, 0, false, false, context, NULL, NULL,
748 ScriptCompiler::kNoCompileOptions, NATIVES_CODE); 748 ScriptCompiler::kNoCompileOptions, NATIVES_CODE, false);
749 749
750 // Silently ignore stack overflows during compilation. 750 // Silently ignore stack overflows during compilation.
751 if (function_info.is_null()) { 751 if (function_info.is_null()) {
752 DCHECK(isolate->has_pending_exception()); 752 DCHECK(isolate->has_pending_exception());
753 isolate->clear_pending_exception(); 753 isolate->clear_pending_exception();
754 return false; 754 return false;
755 } 755 }
756 756
757 // Execute the shared function in the debugger context. 757 // Execute the shared function in the debugger context.
758 Handle<JSFunction> function = 758 Handle<JSFunction> function =
(...skipping 2733 matching lines...) Expand 10 before | Expand all | Expand 10 after
3492 logger_->DebugEvent("Put", message.text()); 3492 logger_->DebugEvent("Put", message.text());
3493 } 3493 }
3494 3494
3495 3495
3496 void LockingCommandMessageQueue::Clear() { 3496 void LockingCommandMessageQueue::Clear() {
3497 base::LockGuard<base::Mutex> lock_guard(&mutex_); 3497 base::LockGuard<base::Mutex> lock_guard(&mutex_);
3498 queue_.Clear(); 3498 queue_.Clear();
3499 } 3499 }
3500 3500
3501 } } // namespace v8::internal 3501 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/full-codegen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698