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

Side by Side Diff: runtime/vm/object.cc

Issue 1661413002: Improve regenerated source code. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 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 | « no previous file | runtime/vm/object_test.cc » ('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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "vm/object.h" 5 #include "vm/object.h"
6 6
7 #include "include/dart_api.h" 7 #include "include/dart_api.h"
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "vm/assembler.h" 9 #include "vm/assembler.h"
10 #include "vm/cpu.h" 10 #include "vm/cpu.h"
(...skipping 8126 matching lines...) Expand 10 before | Expand all | Expand 10 after
8137 separator = &Symbols::Blank(); 8137 separator = &Symbols::Blank();
8138 } else if ((curr == Token::kRETURN || 8138 } else if ((curr == Token::kRETURN ||
8139 curr == Token::kCONDITIONAL || 8139 curr == Token::kCONDITIONAL ||
8140 Token::IsBinaryOperator(curr) || 8140 Token::IsBinaryOperator(curr) ||
8141 Token::IsEqualityOperator(curr)) && (next == Token::kLPAREN)) { 8141 Token::IsEqualityOperator(curr)) && (next == Token::kLPAREN)) {
8142 separator = &Symbols::Blank(); 8142 separator = &Symbols::Blank();
8143 } else if ((curr == Token::kLBRACE) && (next == Token::kRBRACE)) { 8143 } else if ((curr == Token::kLBRACE) && (next == Token::kRBRACE)) {
8144 separator = NULL; 8144 separator = NULL;
8145 } else if ((curr == Token::kSEMICOLON) && (next != Token::kNEWLINE)) { 8145 } else if ((curr == Token::kSEMICOLON) && (next != Token::kNEWLINE)) {
8146 separator = &Symbols::Blank(); 8146 separator = &Symbols::Blank();
8147 } else if ((curr == Token::kIS) && (next == Token::kNOT)) {
8148 separator = NULL;
8149 } else if ((prev == Token::kIS) && (curr == Token::kNOT)) {
8150 separator = &Symbols::Blank();
8151 } else if ((curr == Token::kIDENT) &&
8152 ((next == Token::kINCR) || (next == Token::kDECR))) {
8153 separator = NULL;
8154 } else if (((curr == Token::kINCR) || (curr == Token::kDECR)) &&
8155 (next == Token::kIDENT)) {
8156 separator = NULL;
8147 } 8157 }
8148 8158
8149 // Add the separator. 8159 // Add the separator.
8150 if (separator != NULL) { 8160 if (separator != NULL) {
8151 literals.Add(*separator); 8161 literals.Add(*separator);
8152 } 8162 }
8153 8163
8154 // Account for indentation in case we printed a newline. 8164 // Account for indentation in case we printed a newline.
8155 if (curr == Token::kNEWLINE) { 8165 if (curr == Token::kNEWLINE) {
8156 for (int i = 0; i < indent; i++) { 8166 for (int i = 0; i < indent; i++) {
(...skipping 14753 matching lines...) Expand 10 before | Expand all | Expand 10 after
22910 return tag_label.ToCString(); 22920 return tag_label.ToCString();
22911 } 22921 }
22912 22922
22913 22923
22914 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const { 22924 void UserTag::PrintJSONImpl(JSONStream* stream, bool ref) const {
22915 Instance::PrintJSONImpl(stream, ref); 22925 Instance::PrintJSONImpl(stream, ref);
22916 } 22926 }
22917 22927
22918 22928
22919 } // namespace dart 22929 } // namespace dart
OLDNEW
« no previous file with comments | « no previous file | runtime/vm/object_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698