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

Side by Side Diff: src/d8.cc

Issue 12886013: Fix misplaced #endif (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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 | « no previous file | no next file » | 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 // 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 } else { 229 } else {
230 Context::Scope context_scope(utility_context_); 230 Context::Scope context_scope(utility_context_);
231 Handle<Object> global = utility_context_->Global(); 231 Handle<Object> global = utility_context_->Global();
232 Handle<Value> fun = global->Get(String::New("Stringify")); 232 Handle<Value> fun = global->Get(String::New("Stringify"));
233 Handle<Value> argv[1] = { result }; 233 Handle<Value> argv[1] = { result };
234 Handle<Value> s = Handle<Function>::Cast(fun)->Call(global, 1, argv); 234 Handle<Value> s = Handle<Function>::Cast(fun)->Call(global, 1, argv);
235 v8::String::Utf8Value str(s); 235 v8::String::Utf8Value str(s);
236 fwrite(*str, sizeof(**str), str.length(), stdout); 236 fwrite(*str, sizeof(**str), str.length(), stdout);
237 printf("\n"); 237 printf("\n");
238 } 238 }
239 #endif
239 } 240 }
240 #endif
241 return true; 241 return true;
242 } 242 }
243 } 243 }
244 } 244 }
245 245
246 246
247 Handle<Value> Shell::Print(const Arguments& args) { 247 Handle<Value> Shell::Print(const Arguments& args) {
248 Handle<Value> val = Write(args); 248 Handle<Value> val = Write(args);
249 printf("\n"); 249 printf("\n");
250 fflush(stdout); 250 fflush(stdout);
(...skipping 1734 matching lines...) Expand 10 before | Expand all | Expand 10 after
1985 } 1985 }
1986 1986
1987 } // namespace v8 1987 } // namespace v8
1988 1988
1989 1989
1990 #ifndef GOOGLE3 1990 #ifndef GOOGLE3
1991 int main(int argc, char* argv[]) { 1991 int main(int argc, char* argv[]) {
1992 return v8::Shell::Main(argc, argv); 1992 return v8::Shell::Main(argc, argv);
1993 } 1993 }
1994 #endif 1994 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698