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

Side by Side Diff: samples/shell.cc

Issue 6794050: Revert "[Arguments] Merge (7442,7496] from bleeding_edge." (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/arguments
Patch Set: Created 9 years, 8 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 | « preparser/preparser-process.cc ('k') | src/SConscript » ('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 2011 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
11 // with the distribution. 11 // with the distribution.
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 ++i; 105 ++i;
106 } else if (arg[0] == '-') { 106 } else if (arg[0] == '-') {
107 // Ignore other options. They have been parsed already. 107 // Ignore other options. They have been parsed already.
108 } else { 108 } else {
109 // Use all other arguments as names of files to load and run. 109 // Use all other arguments as names of files to load and run.
110 v8::HandleScope handle_scope; 110 v8::HandleScope handle_scope;
111 v8::Handle<v8::String> file_name = v8::String::New(arg); 111 v8::Handle<v8::String> file_name = v8::String::New(arg);
112 v8::Handle<v8::String> source = ReadFile(arg); 112 v8::Handle<v8::String> source = ReadFile(arg);
113 if (source.IsEmpty()) { 113 if (source.IsEmpty()) {
114 printf("Error reading '%s'\n", arg); 114 printf("Error reading '%s'\n", arg);
115 continue;
116 } 115 }
117 if (!ExecuteString(source, file_name, false, true)) { 116 if (!ExecuteString(source, file_name, false, true)) {
118 ExitShell(1); 117 ExitShell(1);
119 return; 118 return;
120 } 119 }
121 } 120 }
122 } 121 }
123 } 122 }
124 123
125 #ifndef USING_V8_SHARED 124 #ifndef USING_V8_SHARED
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 printf("^"); 525 printf("^");
527 } 526 }
528 printf("\n"); 527 printf("\n");
529 v8::String::Utf8Value stack_trace(try_catch->StackTrace()); 528 v8::String::Utf8Value stack_trace(try_catch->StackTrace());
530 if (stack_trace.length() > 0) { 529 if (stack_trace.length() > 0) {
531 const char* stack_trace_string = ToCString(stack_trace); 530 const char* stack_trace_string = ToCString(stack_trace);
532 printf("%s\n", stack_trace_string); 531 printf("%s\n", stack_trace_string);
533 } 532 }
534 } 533 }
535 } 534 }
OLDNEW
« no previous file with comments | « preparser/preparser-process.cc ('k') | src/SConscript » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698