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

Side by Side Diff: src/debug.cc

Issue 389573006: Change ScriptCompiler::CompileOptions and add d8 --cache. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: even more rebase Created 6 years, 5 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/d8.cc ('k') | src/parser.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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 // Find source and name for the requested script. 731 // Find source and name for the requested script.
732 Handle<String> source_code = 732 Handle<String> source_code =
733 isolate->bootstrapper()->NativesSourceLookup(index); 733 isolate->bootstrapper()->NativesSourceLookup(index);
734 Vector<const char> name = Natives::GetScriptName(index); 734 Vector<const char> name = Natives::GetScriptName(index);
735 Handle<String> script_name = 735 Handle<String> script_name =
736 factory->NewStringFromAscii(name).ToHandleChecked(); 736 factory->NewStringFromAscii(name).ToHandleChecked();
737 Handle<Context> context = isolate->native_context(); 737 Handle<Context> context = isolate->native_context();
738 738
739 // Compile the script. 739 // Compile the script.
740 Handle<SharedFunctionInfo> function_info; 740 Handle<SharedFunctionInfo> function_info;
741 function_info = Compiler::CompileScript(source_code, 741 function_info = Compiler::CompileScript(
742 script_name, 0, 0, 742 source_code, script_name, 0, 0, false, context, NULL, NULL,
743 false, 743 ScriptCompiler::kNoCompileOptions, NATIVES_CODE);
744 context,
745 NULL, NULL, NO_CACHED_DATA,
746 NATIVES_CODE);
747 744
748 // Silently ignore stack overflows during compilation. 745 // Silently ignore stack overflows during compilation.
749 if (function_info.is_null()) { 746 if (function_info.is_null()) {
750 ASSERT(isolate->has_pending_exception()); 747 ASSERT(isolate->has_pending_exception());
751 isolate->clear_pending_exception(); 748 isolate->clear_pending_exception();
752 return false; 749 return false;
753 } 750 }
754 751
755 // Execute the shared function in the debugger context. 752 // Execute the shared function in the debugger context.
756 Handle<JSFunction> function = 753 Handle<JSFunction> function =
(...skipping 2643 matching lines...) Expand 10 before | Expand all | Expand 10 after
3400 logger_->DebugEvent("Put", message.text()); 3397 logger_->DebugEvent("Put", message.text());
3401 } 3398 }
3402 3399
3403 3400
3404 void LockingCommandMessageQueue::Clear() { 3401 void LockingCommandMessageQueue::Clear() {
3405 base::LockGuard<base::Mutex> lock_guard(&mutex_); 3402 base::LockGuard<base::Mutex> lock_guard(&mutex_);
3406 queue_.Clear(); 3403 queue_.Clear();
3407 } 3404 }
3408 3405
3409 } } // namespace v8::internal 3406 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698