| OLD | NEW |
| 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/intermediate_language.h" | 5 #include "vm/intermediate_language.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/dart_entry.h" | 8 #include "vm/dart_entry.h" |
| 9 #include "vm/flow_graph_allocator.h" | 9 #include "vm/flow_graph_allocator.h" |
| 10 #include "vm/flow_graph_builder.h" | 10 #include "vm/flow_graph_builder.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 } | 212 } |
| 213 UNREACHABLE(); | 213 UNREACHABLE(); |
| 214 return NULL; | 214 return NULL; |
| 215 } | 215 } |
| 216 | 216 |
| 217 | 217 |
| 218 static bool CompareNames(const Library& lib, | 218 static bool CompareNames(const Library& lib, |
| 219 const char* test_name, | 219 const char* test_name, |
| 220 const String& name) { | 220 const String& name) { |
| 221 // If both names are private mangle test_name before comparison. | 221 // If both names are private mangle test_name before comparison. |
| 222 if ((name.CharAt(0) == '_') && (test_name[0] == '_')) { | 222 if ((name.CodeUnitAt(0) == '_') && (test_name[0] == '_')) { |
| 223 const String& test_name_symbol = String::Handle(Symbols::New(test_name)); | 223 const String& test_name_symbol = String::Handle(Symbols::New(test_name)); |
| 224 return String::Handle(lib.PrivateName(test_name_symbol)).Equals(name); | 224 return String::Handle(lib.PrivateName(test_name_symbol)).Equals(name); |
| 225 } | 225 } |
| 226 return name.Equals(test_name); | 226 return name.Equals(test_name); |
| 227 } | 227 } |
| 228 | 228 |
| 229 | 229 |
| 230 MethodRecognizer::Kind MethodRecognizer::RecognizeKind( | 230 MethodRecognizer::Kind MethodRecognizer::RecognizeKind( |
| 231 const Function& function) { | 231 const Function& function) { |
| 232 // Only core and math library methods can be recognized. | 232 // Only core and math library methods can be recognized. |
| (...skipping 2413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2646 return Array::length_offset(); | 2646 return Array::length_offset(); |
| 2647 default: | 2647 default: |
| 2648 UNREACHABLE(); | 2648 UNREACHABLE(); |
| 2649 return -1; | 2649 return -1; |
| 2650 } | 2650 } |
| 2651 } | 2651 } |
| 2652 | 2652 |
| 2653 #undef __ | 2653 #undef __ |
| 2654 | 2654 |
| 2655 } // namespace dart | 2655 } // namespace dart |
| OLD | NEW |