| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 | 6 |
| 7 #include "vm/bigint_operations.h" | 7 #include "vm/bigint_operations.h" |
| 8 #include "vm/class_finalizer.h" | 8 #include "vm/class_finalizer.h" |
| 9 #include "vm/compiler.h" | 9 #include "vm/compiler.h" |
| 10 #include "vm/compiler_stats.h" | 10 #include "vm/compiler_stats.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // All references to Dart names are listed here. | 31 // All references to Dart names are listed here. |
| 32 static const char* kAssertionErrorName = "AssertionError"; | 32 static const char* kAssertionErrorName = "AssertionError"; |
| 33 static const char* kFallThroughErrorName = "FallThroughError"; | 33 static const char* kFallThroughErrorName = "FallThroughError"; |
| 34 static const char* kThrowNewName = "_throwNew"; | 34 static const char* kThrowNewName = "_throwNew"; |
| 35 static const char* kGrowableObjectArrayFromArrayName = | 35 static const char* kGrowableObjectArrayFromArrayName = |
| 36 "GrowableObjectArray._usingArray"; | 36 "GrowableObjectArray._usingArray"; |
| 37 static const char* kGrowableObjectArrayName = "GrowableObjectArray"; | 37 static const char* kGrowableObjectArrayName = "GrowableObjectArray"; |
| 38 static const char* kLiteralMapFactoryName = "_LiteralMapFactory"; | 38 static const char* kLiteralMapFactoryName = "_LiteralMapFactory"; |
| 39 static const char* kLiteralMapFactoryFromLiteralName = "Map.fromLiteral"; | 39 static const char* kLiteralMapFactoryFromLiteralName = "Map.fromLiteral"; |
| 40 static const char* kImmutableMapName = "ImmutableMap"; | 40 static const char* kImmutableMapName = "ImmutableMap"; |
| 41 static const char* kImmutableMapConstructorName = "ImmutableMap."; | 41 static const char* kImmutableMapConstructorName = "ImmutableMap._create"; |
| 42 static const char* kStringClassName = "StringBase"; | 42 static const char* kStringClassName = "StringBase"; |
| 43 static const char* kInterpolateName = "_interpolate"; | 43 static const char* kInterpolateName = "_interpolate"; |
| 44 static const char* kThisName = "this"; | 44 static const char* kThisName = "this"; |
| 45 static const char* kPhaseParameterName = ":phase"; | 45 static const char* kPhaseParameterName = ":phase"; |
| 46 static const char* kGetIteratorName = "iterator"; | 46 static const char* kGetIteratorName = "iterator"; |
| 47 | 47 |
| 48 #if defined(DEBUG) | 48 #if defined(DEBUG) |
| 49 | 49 |
| 50 class TraceParser : public ValueObject { | 50 class TraceParser : public ValueObject { |
| 51 public: | 51 public: |
| (...skipping 7463 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7515 } | 7515 } |
| 7516 | 7516 |
| 7517 | 7517 |
| 7518 void Parser::SkipNestedExpr() { | 7518 void Parser::SkipNestedExpr() { |
| 7519 const bool saved_mode = SetAllowFunctionLiterals(true); | 7519 const bool saved_mode = SetAllowFunctionLiterals(true); |
| 7520 SkipExpr(); | 7520 SkipExpr(); |
| 7521 SetAllowFunctionLiterals(saved_mode); | 7521 SetAllowFunctionLiterals(saved_mode); |
| 7522 } | 7522 } |
| 7523 | 7523 |
| 7524 } // namespace dart | 7524 } // namespace dart |
| OLD | NEW |