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

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

Issue 2842053003: Make EqualsIgnoringPrivateKey work with mixin applications. (Closed)
Patch Set: Created 3 years, 8 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/become.h" 10 #include "vm/become.h"
(...skipping 21120 matching lines...) Expand 10 before | Expand all | Expand 10 after
21131 return false; // No way they can match. 21131 return false; // No way they can match.
21132 } 21132 }
21133 intptr_t pos = 0; 21133 intptr_t pos = 0;
21134 intptr_t str2_pos = 0; 21134 intptr_t str2_pos = 0;
21135 while (pos < len) { 21135 while (pos < len) {
21136 int32_t ch = T1::CharAt(str1, pos); 21136 int32_t ch = T1::CharAt(str1, pos);
21137 pos++; 21137 pos++;
21138 21138
21139 if (ch == Library::kPrivateKeySeparator) { 21139 if (ch == Library::kPrivateKeySeparator) {
21140 // Consume a private key separator. 21140 // Consume a private key separator.
21141 while ((pos < len) && (T1::CharAt(str1, pos) != '.')) { 21141 while ((pos < len) && (T1::CharAt(str1, pos) != '.') &&
21142 (T1::CharAt(str1, pos) != '&')) {
21142 pos++; 21143 pos++;
21143 } 21144 }
21144 // Resume matching characters. 21145 // Resume matching characters.
21145 continue; 21146 continue;
21146 } 21147 }
21147 if ((str2_pos == str2_len) || (ch != T2::CharAt(str2, str2_pos))) { 21148 if ((str2_pos == str2_len) || (ch != T2::CharAt(str2, str2_pos))) {
21148 return false; 21149 return false;
21149 } 21150 }
21150 str2_pos++; 21151 str2_pos++;
21151 } 21152 }
(...skipping 2144 matching lines...) Expand 10 before | Expand all | Expand 10 after
23296 return UserTag::null(); 23297 return UserTag::null();
23297 } 23298 }
23298 23299
23299 23300
23300 const char* UserTag::ToCString() const { 23301 const char* UserTag::ToCString() const {
23301 const String& tag_label = String::Handle(label()); 23302 const String& tag_label = String::Handle(label());
23302 return tag_label.ToCString(); 23303 return tag_label.ToCString();
23303 } 23304 }
23304 23305
23305 } // namespace dart 23306 } // 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