| 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/parser.h" | 5 #include "vm/parser.h" |
| 6 #include "vm/flags.h" | 6 #include "vm/flags.h" |
| 7 | 7 |
| 8 #ifndef DART_PRECOMPILED_RUNTIME | 8 #ifndef DART_PRECOMPILED_RUNTIME |
| 9 | 9 |
| 10 #include "lib/invocation_mirror.h" | 10 #include "lib/invocation_mirror.h" |
| (...skipping 11960 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11971 ConstantPosKey(const String& url, TokenPosition pos) | 11971 ConstantPosKey(const String& url, TokenPosition pos) |
| 11972 : script_url(url), token_pos(pos) { } | 11972 : script_url(url), token_pos(pos) { } |
| 11973 const String& script_url; | 11973 const String& script_url; |
| 11974 TokenPosition token_pos; | 11974 TokenPosition token_pos; |
| 11975 }; | 11975 }; |
| 11976 | 11976 |
| 11977 | 11977 |
| 11978 class ConstMapKeyEqualsTraits { | 11978 class ConstMapKeyEqualsTraits { |
| 11979 public: | 11979 public: |
| 11980 static const char* Name() { return "ConstMapKeyEqualsTraits"; } | 11980 static const char* Name() { return "ConstMapKeyEqualsTraits"; } |
| 11981 static bool ReportStats() { return false; } |
| 11981 | 11982 |
| 11982 static bool IsMatch(const Object& a, const Object& b) { | 11983 static bool IsMatch(const Object& a, const Object& b) { |
| 11983 const Array& key1 = Array::Cast(a); | 11984 const Array& key1 = Array::Cast(a); |
| 11984 const Array& key2 = Array::Cast(b); | 11985 const Array& key2 = Array::Cast(b); |
| 11985 // Compare raw strings of script url symbol and raw smi of token positon. | 11986 // Compare raw strings of script url symbol and raw smi of token positon. |
| 11986 return (key1.At(0) == key2.At(0)) && (key1.At(1) == key2.At(1)); | 11987 return (key1.At(0) == key2.At(0)) && (key1.At(1) == key2.At(1)); |
| 11987 } | 11988 } |
| 11988 static bool IsMatch(const ConstantPosKey& key1, const Object& b) { | 11989 static bool IsMatch(const ConstantPosKey& key1, const Object& b) { |
| 11989 const Array& key2 = Array::Cast(b); | 11990 const Array& key2 = Array::Cast(b); |
| 11990 // Compare raw strings of script url symbol and token positon. | 11991 // Compare raw strings of script url symbol and token positon. |
| (...skipping 2487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14478 const ArgumentListNode& function_args, | 14479 const ArgumentListNode& function_args, |
| 14479 const LocalVariable* temp_for_last_arg, | 14480 const LocalVariable* temp_for_last_arg, |
| 14480 bool is_super_invocation) { | 14481 bool is_super_invocation) { |
| 14481 UNREACHABLE(); | 14482 UNREACHABLE(); |
| 14482 return NULL; | 14483 return NULL; |
| 14483 } | 14484 } |
| 14484 | 14485 |
| 14485 } // namespace dart | 14486 } // namespace dart |
| 14486 | 14487 |
| 14487 #endif // DART_PRECOMPILED_RUNTIME | 14488 #endif // DART_PRECOMPILED_RUNTIME |
| OLD | NEW |