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

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

Issue 11360231: Create symbols for string constants. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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/vm/flow_graph_builder.cc ('k') | runtime/vm/symbols.h » ('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/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 9425 matching lines...) Expand 10 before | Expand all | Expand 10 after
9436 (current_block_->scope->function_level() > 0)) { 9436 (current_block_->scope->function_level() > 0)) {
9437 // Make sure that the instantiator is captured. 9437 // Make sure that the instantiator is captured.
9438 CaptureInstantiator(); 9438 CaptureInstantiator();
9439 } 9439 }
9440 // If the type argument vector is not instantiated, we verify in checked 9440 // If the type argument vector is not instantiated, we verify in checked
9441 // mode at runtime that it is within its declared bounds. 9441 // mode at runtime that it is within its declared bounds.
9442 new_object = CreateConstructorCallNode( 9442 new_object = CreateConstructorCallNode(
9443 new_pos, type_arguments, constructor, arguments); 9443 new_pos, type_arguments, constructor, arguments);
9444 } 9444 }
9445 if (check_result_type) { 9445 if (check_result_type) {
9446 const String& dst_name = String::ZoneHandle(Symbols::New("factory result")); 9446 const String& dst_name = String::ZoneHandle(Symbols::FactoryResult());
9447 new_object = new AssignableNode(new_pos, new_object, type, dst_name); 9447 new_object = new AssignableNode(new_pos, new_object, type, dst_name);
9448 } 9448 }
9449 return new_object; 9449 return new_object;
9450 } 9450 }
9451 9451
9452 9452
9453 String& Parser::Interpolate(ArrayNode* values) { 9453 String& Parser::Interpolate(ArrayNode* values) {
9454 const String& class_name = String::Handle(Symbols::StringBase()); 9454 const String& class_name = String::Handle(Symbols::StringBase());
9455 const Class& cls = Class::Handle(LookupCoreClass(class_name)); 9455 const Class& cls = Class::Handle(LookupCoreClass(class_name));
9456 ASSERT(!cls.IsNull()); 9456 ASSERT(!cls.IsNull());
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
10048 void Parser::SkipQualIdent() { 10048 void Parser::SkipQualIdent() {
10049 ASSERT(IsIdentifier()); 10049 ASSERT(IsIdentifier());
10050 ConsumeToken(); 10050 ConsumeToken();
10051 if (CurrentToken() == Token::kPERIOD) { 10051 if (CurrentToken() == Token::kPERIOD) {
10052 ConsumeToken(); // Consume the kPERIOD token. 10052 ConsumeToken(); // Consume the kPERIOD token.
10053 ExpectIdentifier("identifier expected after '.'"); 10053 ExpectIdentifier("identifier expected after '.'");
10054 } 10054 }
10055 } 10055 }
10056 10056
10057 } // namespace dart 10057 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698