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

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

Issue 17103002: Remove support for + prefix in number literals (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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 | « runtime/vm/intrinsifier.h ('k') | runtime/vm/parser.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 4636 matching lines...) Expand 10 before | Expand all | Expand 10 after
4647 } 4647 }
4648 4648
4649 4649
4650 bool Function::CheckSourceFingerprint(int32_t fp) const { 4650 bool Function::CheckSourceFingerprint(int32_t fp) const {
4651 if (SourceFingerprint() != fp) { 4651 if (SourceFingerprint() != fp) {
4652 const bool recalculatingFingerprints = false; 4652 const bool recalculatingFingerprints = false;
4653 if (recalculatingFingerprints) { 4653 if (recalculatingFingerprints) {
4654 // This output can be copied into a file, then used with sed 4654 // This output can be copied into a file, then used with sed
4655 // to replace the old values. 4655 // to replace the old values.
4656 // sed -i .bak -f /tmp/newkeys runtime/vm/intrinsifier.h 4656 // sed -i .bak -f /tmp/newkeys runtime/vm/intrinsifier.h
4657 // sed -i .bak -f /tmp/newkeys runtime/vm/intermediate_language.h
4658 // sed -i .bak -f /tmp/newkeys runtime/vm/flow_graph_builder.h
4657 OS::Print("s/%d/%d/\n", fp, SourceFingerprint()); 4659 OS::Print("s/%d/%d/\n", fp, SourceFingerprint());
4658 } else { 4660 } else {
4659 OS::Print("FP mismatch while recognizing method %s:" 4661 OS::Print("FP mismatch while recognizing method %s:"
4660 " expecting %d found %d\n", 4662 " expecting %d found %d\n",
4661 ToFullyQualifiedCString(), 4663 ToFullyQualifiedCString(),
4662 fp, 4664 fp,
4663 SourceFingerprint()); 4665 SourceFingerprint());
4664 return false; 4666 return false;
4665 } 4667 }
4666 } 4668 }
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after
5231 } else { 5233 } else {
5232 separator = &Symbols::NewLine(); 5234 separator = &Symbols::NewLine();
5233 } 5235 }
5234 break; 5236 break;
5235 case Token::kSEMICOLON: 5237 case Token::kSEMICOLON:
5236 separator = &Symbols::NewLine(); 5238 separator = &Symbols::NewLine();
5237 break; 5239 break;
5238 case Token::kPERIOD: 5240 case Token::kPERIOD:
5239 case Token::kLPAREN: 5241 case Token::kLPAREN:
5240 case Token::kLBRACK: 5242 case Token::kLBRACK:
5241 case Token::kTIGHTADD:
5242 case Token::kINTERPOL_VAR: 5243 case Token::kINTERPOL_VAR:
5243 case Token::kINTERPOL_START: 5244 case Token::kINTERPOL_START:
5244 case Token::kINTERPOL_END: 5245 case Token::kINTERPOL_END:
5245 break; 5246 break;
5246 default: 5247 default:
5247 separator = &Symbols::Blank(); 5248 separator = &Symbols::Blank();
5248 break; 5249 break;
5249 } 5250 }
5250 // Determine whether the separation text needs to be updated based on the 5251 // Determine whether the separation text needs to be updated based on the
5251 // next token. 5252 // next token.
(...skipping 8287 matching lines...) Expand 10 before | Expand all | Expand 10 after
13539 space); 13540 space);
13540 return reinterpret_cast<RawWeakProperty*>(raw); 13541 return reinterpret_cast<RawWeakProperty*>(raw);
13541 } 13542 }
13542 13543
13543 13544
13544 const char* WeakProperty::ToCString() const { 13545 const char* WeakProperty::ToCString() const {
13545 return "_WeakProperty"; 13546 return "_WeakProperty";
13546 } 13547 }
13547 13548
13548 } // namespace dart 13549 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/intrinsifier.h ('k') | runtime/vm/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698