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

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

Issue 11035057: Hide internal details of VM string implementation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months 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/object.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 1267 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 *is_no_such_method = false; 1278 *is_no_such_method = false;
1279 } 1279 }
1280 CheckFunctionIsCallable(token_pos, super_func); 1280 CheckFunctionIsCallable(token_pos, super_func);
1281 return super_func.raw(); 1281 return super_func.raw();
1282 } 1282 }
1283 1283
1284 1284
1285 // Lookup class in the corelib implementation which contains various VM 1285 // Lookup class in the corelib implementation which contains various VM
1286 // helper methods and classes. 1286 // helper methods and classes.
1287 static RawClass* LookupImplClass(const String& class_name) { 1287 static RawClass* LookupImplClass(const String& class_name) {
1288 return Library::Handle(Library::CoreImplLibrary()).LookupClass(class_name); 1288 Library& coreimpl = Library::Handle(Library::CoreImplLibrary());
1289 return coreimpl.LookupClassAllowPrivate(class_name);
1289 } 1290 }
1290 1291
1291 1292
1292 // Lookup class in the coreimpl lib which also contains various VM 1293 // Lookup class in the coreimpl lib which also contains various VM
1293 // helper methods and classes. Allow look up of private classes. 1294 // helper methods and classes. Allow look up of private classes.
1294 static RawClass* LookupCoreImplClass(const String& class_name) { 1295 static RawClass* LookupCoreImplClass(const String& class_name) {
1295 const Library& coreimpl_lib = Library::Handle(Library::CoreImplLibrary()); 1296 const Library& coreimpl_lib = Library::Handle(Library::CoreImplLibrary());
1296 String& name = String::Handle(class_name.raw()); 1297 String& name = String::Handle(class_name.raw());
1297 if (class_name.CharAt(0) == Scanner::kPrivateIdentifierStart) { 1298 if (class_name.CharAt(0) == Scanner::kPrivateIdentifierStart) {
1298 // Private identifiers are mangled on a per script basis. 1299 // Private identifiers are mangled on a per script basis.
(...skipping 8401 matching lines...) Expand 10 before | Expand all | Expand 10 after
9700 void Parser::SkipQualIdent() { 9701 void Parser::SkipQualIdent() {
9701 ASSERT(IsIdentifier()); 9702 ASSERT(IsIdentifier());
9702 ConsumeToken(); 9703 ConsumeToken();
9703 if (CurrentToken() == Token::kPERIOD) { 9704 if (CurrentToken() == Token::kPERIOD) {
9704 ConsumeToken(); // Consume the kPERIOD token. 9705 ConsumeToken(); // Consume the kPERIOD token.
9705 ExpectIdentifier("identifier expected after '.'"); 9706 ExpectIdentifier("identifier expected after '.'");
9706 } 9707 }
9707 } 9708 }
9708 9709
9709 } // namespace dart 9710 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/object.cc ('k') | runtime/vm/symbols.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698