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

Side by Side Diff: src/debug.cc

Issue 1135343005: Revert of [V8] Added Script::is_opaque flag for embedders (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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 // 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 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
638 Handle<String> source_code = 638 Handle<String> source_code =
639 isolate->bootstrapper()->SourceLookup<Natives>(index); 639 isolate->bootstrapper()->SourceLookup<Natives>(index);
640 Vector<const char> name = Natives::GetScriptName(index); 640 Vector<const char> name = Natives::GetScriptName(index);
641 Handle<String> script_name = 641 Handle<String> script_name =
642 factory->NewStringFromAscii(name).ToHandleChecked(); 642 factory->NewStringFromAscii(name).ToHandleChecked();
643 Handle<Context> context = isolate->native_context(); 643 Handle<Context> context = isolate->native_context();
644 644
645 // Compile the script. 645 // Compile the script.
646 Handle<SharedFunctionInfo> function_info; 646 Handle<SharedFunctionInfo> function_info;
647 function_info = Compiler::CompileScript( 647 function_info = Compiler::CompileScript(
648 source_code, script_name, 0, 0, ScriptOriginOptions(), Handle<Object>(), 648 source_code, script_name, 0, 0, false, false, Handle<Object>(), context,
649 context, NULL, NULL, ScriptCompiler::kNoCompileOptions, NATIVES_CODE, 649 NULL, NULL, ScriptCompiler::kNoCompileOptions, NATIVES_CODE, false);
650 false);
651 650
652 // Silently ignore stack overflows during compilation. 651 // Silently ignore stack overflows during compilation.
653 if (function_info.is_null()) { 652 if (function_info.is_null()) {
654 DCHECK(isolate->has_pending_exception()); 653 DCHECK(isolate->has_pending_exception());
655 isolate->clear_pending_exception(); 654 isolate->clear_pending_exception();
656 return false; 655 return false;
657 } 656 }
658 657
659 // Execute the shared function in the debugger context. 658 // Execute the shared function in the debugger context.
660 Handle<JSFunction> function = 659 Handle<JSFunction> function =
(...skipping 2740 matching lines...) Expand 10 before | Expand all | Expand 10 after
3401 logger_->DebugEvent("Put", message.text()); 3400 logger_->DebugEvent("Put", message.text());
3402 } 3401 }
3403 3402
3404 3403
3405 void LockingCommandMessageQueue::Clear() { 3404 void LockingCommandMessageQueue::Clear() {
3406 base::LockGuard<base::Mutex> lock_guard(&mutex_); 3405 base::LockGuard<base::Mutex> lock_guard(&mutex_);
3407 queue_.Clear(); 3406 queue_.Clear();
3408 } 3407 }
3409 3408
3410 } } // namespace v8::internal 3409 } } // 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