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

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

Issue 10014002: Rename Api::NewLocalHandle -> Api::NewHandle. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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/native_entry.cc ('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) 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 3378 matching lines...) Expand 10 before | Expand all | Expand 10 after
3389 Dart_Handle Parser::CallLibraryTagHandler(Dart_LibraryTag tag, 3389 Dart_Handle Parser::CallLibraryTagHandler(Dart_LibraryTag tag,
3390 intptr_t token_pos, 3390 intptr_t token_pos,
3391 const String& url, 3391 const String& url,
3392 const Array& import_map) { 3392 const Array& import_map) {
3393 Isolate* isolate = Isolate::Current(); 3393 Isolate* isolate = Isolate::Current();
3394 Dart_LibraryTagHandler handler = isolate->library_tag_handler(); 3394 Dart_LibraryTagHandler handler = isolate->library_tag_handler();
3395 if (handler == NULL) { 3395 if (handler == NULL) {
3396 ErrorMsg(token_pos, "no library handler registered"); 3396 ErrorMsg(token_pos, "no library handler registered");
3397 } 3397 }
3398 Dart_Handle result = handler(tag, 3398 Dart_Handle result = handler(tag,
3399 Api::NewLocalHandle(isolate, library_), 3399 Api::NewHandle(isolate, library_.raw()),
3400 Api::NewLocalHandle(isolate, url), 3400 Api::NewHandle(isolate, url.raw()),
3401 Api::NewLocalHandle(isolate, import_map)); 3401 Api::NewHandle(isolate, import_map.raw()));
3402 if (Dart_IsError(result)) { 3402 if (Dart_IsError(result)) {
3403 Error& prev_error = Error::Handle(); 3403 Error& prev_error = Error::Handle();
3404 prev_error ^= Api::UnwrapHandle(result); 3404 prev_error ^= Api::UnwrapHandle(result);
3405 AppendErrorMsg(prev_error, token_pos, "library handler failed"); 3405 AppendErrorMsg(prev_error, token_pos, "library handler failed");
3406 } 3406 }
3407 return result; 3407 return result;
3408 } 3408 }
3409 3409
3410 3410
3411 void Parser::ParseLibraryImport() { 3411 void Parser::ParseLibraryImport() {
(...skipping 4866 matching lines...) Expand 10 before | Expand all | Expand 10 after
8278 void Parser::SkipQualIdent() { 8278 void Parser::SkipQualIdent() {
8279 ASSERT(IsIdentifier()); 8279 ASSERT(IsIdentifier());
8280 ConsumeToken(); 8280 ConsumeToken();
8281 if (CurrentToken() == Token::kPERIOD) { 8281 if (CurrentToken() == Token::kPERIOD) {
8282 ConsumeToken(); // Consume the kPERIOD token. 8282 ConsumeToken(); // Consume the kPERIOD token.
8283 ExpectIdentifier("identifier expected after '.'"); 8283 ExpectIdentifier("identifier expected after '.'");
8284 } 8284 }
8285 } 8285 }
8286 8286
8287 } // namespace dart 8287 } // namespace dart
OLDNEW
« no previous file with comments | « runtime/vm/native_entry.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698