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

Side by Side Diff: src/d8.cc

Issue 2693002: More precise break points and stepping when debugging... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 6 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/codegen.cc ('k') | src/debug.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
569 if (chars == NULL) return Handle<String>(); 569 if (chars == NULL) return Handle<String>();
570 Handle<String> result = String::New(chars); 570 Handle<String> result = String::New(chars);
571 delete[] chars; 571 delete[] chars;
572 return result; 572 return result;
573 } 573 }
574 574
575 575
576 void Shell::RunShell() { 576 void Shell::RunShell() {
577 LineEditor* editor = LineEditor::Get(); 577 LineEditor* editor = LineEditor::Get();
578 printf("V8 version %s [console: %s]\n", V8::GetVersion(), editor->name()); 578 printf("V8 version %s [console: %s]\n", V8::GetVersion(), editor->name());
579 if (i::FLAG_debugger) {
580 printf("JavaScript debugger enabled\n");
581 }
579 editor->Open(); 582 editor->Open();
580 while (true) { 583 while (true) {
581 Locker locker; 584 Locker locker;
582 HandleScope handle_scope; 585 HandleScope handle_scope;
583 Context::Scope context_scope(evaluation_context_); 586 Context::Scope context_scope(evaluation_context_);
584 i::SmartPointer<char> input = editor->Prompt(Shell::kPrompt); 587 i::SmartPointer<char> input = editor->Prompt(Shell::kPrompt);
585 if (input.is_empty()) 588 if (input.is_empty())
586 break; 589 break;
587 editor->AddHistory(*input); 590 editor->AddHistory(*input);
588 Handle<String> name = String::New("(d8)"); 591 Handle<String> name = String::New("(d8)");
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
771 return 0; 774 return 0;
772 } 775 }
773 776
774 777
775 } // namespace v8 778 } // namespace v8
776 779
777 780
778 int main(int argc, char* argv[]) { 781 int main(int argc, char* argv[]) {
779 return v8::Shell::Main(argc, argv); 782 return v8::Shell::Main(argc, argv);
780 } 783 }
OLDNEW
« no previous file with comments | « src/codegen.cc ('k') | src/debug.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698