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

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

Issue 8648003: Fix bug 557: Disallow user side allocation of ImmutableArray. Also added "instantiation-checks" f... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years, 1 month 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/lib/string.dart ('k') | no next file » | 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) 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
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
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
OLDNEW
« no previous file with comments | « runtime/lib/string.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698