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

Side by Side Diff: src/flags.cc

Issue 6529055: [Isolates] Merge crankshaft (r5922 from bleeding_edge). (Closed)
Patch Set: Win32 port Created 9 years, 10 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/flag-definitions.h ('k') | src/frame-element.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 static void SplitArgument(const char* arg, 272 static void SplitArgument(const char* arg,
273 char* buffer, 273 char* buffer,
274 int buffer_size, 274 int buffer_size,
275 const char** name, 275 const char** name,
276 const char** value, 276 const char** value,
277 bool* is_bool) { 277 bool* is_bool) {
278 *name = NULL; 278 *name = NULL;
279 *value = NULL; 279 *value = NULL;
280 *is_bool = false; 280 *is_bool = false;
281 281
282 if (*arg == '-') { 282 if (arg != NULL && *arg == '-') {
283 // find the begin of the flag name 283 // find the begin of the flag name
284 arg++; // remove 1st '-' 284 arg++; // remove 1st '-'
285 if (*arg == '-') { 285 if (*arg == '-') {
286 arg++; // remove 2nd '-' 286 arg++; // remove 2nd '-'
287 if (arg[0] == '\0') { 287 if (arg[0] == '\0') {
288 const char* kJSArgumentsFlagName = "js_arguments"; 288 const char* kJSArgumentsFlagName = "js_arguments";
289 *name = kJSArgumentsFlagName; 289 *name = kJSArgumentsFlagName;
290 return; 290 return;
291 } 291 }
292 } 292 }
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 const char** JSArguments::argv() { return argv_; } 542 const char** JSArguments::argv() { return argv_; }
543 const char*& JSArguments::operator[](int idx) { return argv_[idx]; } 543 const char*& JSArguments::operator[](int idx) { return argv_[idx]; }
544 JSArguments& JSArguments::operator=(JSArguments args) { 544 JSArguments& JSArguments::operator=(JSArguments args) {
545 argc_ = args.argc_; 545 argc_ = args.argc_;
546 argv_ = args.argv_; 546 argv_ = args.argv_;
547 return *this; 547 return *this;
548 } 548 }
549 549
550 550
551 } } // namespace v8::internal 551 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/frame-element.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698