diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-11-14 00:52:27 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2014-11-14 16:34:58 +0100 |
commit | 5d1b6d3e0fa4b97a490ef964be48aed9872e3ec1 (patch) | |
tree | ab5f510c4d83b175681de629395525bf7ec7cedb /deps/v8/src/flags.cc | |
parent | 3b3d89bad26f5dfebe73fef6ae284ee78acbd5c9 (diff) | |
download | node-new-5d1b6d3e0fa4b97a490ef964be48aed9872e3ec1.tar.gz |
deps: upgrade v8 to 3.30.37
Diffstat (limited to 'deps/v8/src/flags.cc')
-rw-r--r-- | deps/v8/src/flags.cc | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/deps/v8/src/flags.cc b/deps/v8/src/flags.cc index 98f21ef2c4..e53c45e69d 100644 --- a/deps/v8/src/flags.cc +++ b/deps/v8/src/flags.cc @@ -2,8 +2,9 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -#include <ctype.h> -#include <stdlib.h> +#include <cctype> +#include <cstdlib> +#include <sstream> #include "src/v8.h" @@ -181,7 +182,7 @@ static const char* Type2String(Flag::FlagType type) { } -OStream& operator<<(OStream& os, const Flag& flag) { // NOLINT +std::ostream& operator<<(std::ostream& os, const Flag& flag) { // NOLINT switch (flag.type()) { case Flag::TYPE_BOOL: os << (*flag.bool_variable() ? "true" : "false"); @@ -231,21 +232,21 @@ List<const char*>* FlagList::argv() { } { bool disabled = f->type() == Flag::TYPE_BOOL && !*f->bool_variable(); - OStringStream os; + std::ostringstream os; os << (disabled ? "--no" : "--") << f->name(); - args->Add(StrDup(os.c_str())); + args->Add(StrDup(os.str().c_str())); } if (f->type() != Flag::TYPE_BOOL) { - OStringStream os; + std::ostringstream os; os << *f; - args->Add(StrDup(os.c_str())); + args->Add(StrDup(os.str().c_str())); } } } if (args_flag != NULL) { - OStringStream os; + std::ostringstream os; os << "--" << args_flag->name(); - args->Add(StrDup(os.c_str())); + args->Add(StrDup(os.str().c_str())); JSArguments jsargs = *args_flag->args_variable(); for (int j = 0; j < jsargs.argc; j++) { args->Add(StrDup(jsargs[j])); |