| Index: src/ast/ast-value-factory.cc
|
| diff --git a/src/ast/ast-value-factory.cc b/src/ast/ast-value-factory.cc
|
| index 2e17fbcfafdedbd023d89addbebd7cbea49a39b0..5af35aeee5101eb6a81bb61a211f69d176e20c67 100644
|
| --- a/src/ast/ast-value-factory.cc
|
| +++ b/src/ast/ast-value-factory.cc
|
| @@ -39,8 +39,8 @@ namespace {
|
| // For using StringToArrayIndex.
|
| class OneByteStringStream {
|
| public:
|
| - explicit OneByteStringStream(Vector<const byte> lb) :
|
| - literal_bytes_(lb), pos_(0) {}
|
| + explicit OneByteStringStream(Vector<const byte> lb)
|
| + : literal_bytes_(lb), pos_(0) {}
|
|
|
| bool HasMore() { return pos_ < literal_bytes_.length(); }
|
| uint16_t GetNext() { return literal_bytes_[pos_++]; }
|
| @@ -95,8 +95,7 @@ void AstRawString::Internalize(Isolate* isolate) {
|
|
|
|
|
| bool AstRawString::AsArrayIndex(uint32_t* index) const {
|
| - if (!string_.is_null())
|
| - return string_->AsArrayIndex(index);
|
| + if (!string_.is_null()) return string_->AsArrayIndex(index);
|
| if (!is_one_byte_ || literal_bytes_.length() == 0 ||
|
| literal_bytes_.length() > String::kMaxArrayIndexSize)
|
| return false;
|
| @@ -242,8 +241,8 @@ const AstRawString* AstValueFactory::GetString(Handle<String> literal) {
|
| }
|
|
|
|
|
| -const AstConsString* AstValueFactory::NewConsString(
|
| - const AstString* left, const AstString* right) {
|
| +const AstConsString* AstValueFactory::NewConsString(const AstString* left,
|
| + const AstString* right) {
|
| // This Vector will be valid as long as the Collector is alive (meaning that
|
| // the AstRawString will not be moved).
|
| AstConsString* new_string = new (zone_) AstConsString(left, right);
|
| @@ -304,8 +303,7 @@ const AstValue* AstValueFactory::NewNumber(double number, bool with_dot) {
|
|
|
|
|
| const AstValue* AstValueFactory::NewSmi(int number) {
|
| - AstValue* value =
|
| - new (zone_) AstValue(AstValue::SMI, number);
|
| + AstValue* value = new (zone_) AstValue(AstValue::SMI, number);
|
| if (isolate_) {
|
| value->Internalize(isolate_);
|
| }
|
|
|