| OLD | NEW |
| 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 "lib/invocation_mirror.h" | 7 #include "lib/invocation_mirror.h" |
| 8 #include "platform/utils.h" | 8 #include "platform/utils.h" |
| 9 #include "vm/ast_transformer.h" | 9 #include "vm/ast_transformer.h" |
| 10 #include "vm/bootstrap.h" | 10 #include "vm/bootstrap.h" |
| (...skipping 1558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1569 new StaticCallNode(token_pos, no_such_method, arguments); | 1569 new StaticCallNode(token_pos, no_such_method, arguments); |
| 1570 | 1570 |
| 1571 ReturnNode* return_node = new ReturnNode(token_pos, call); | 1571 ReturnNode* return_node = new ReturnNode(token_pos, call); |
| 1572 current_block_->statements->Add(return_node); | 1572 current_block_->statements->Add(return_node); |
| 1573 return CloseBlock(); | 1573 return CloseBlock(); |
| 1574 } | 1574 } |
| 1575 | 1575 |
| 1576 | 1576 |
| 1577 SequenceNode* Parser::ParseInvokeFieldDispatcher(const Function& func) { | 1577 SequenceNode* Parser::ParseInvokeFieldDispatcher(const Function& func) { |
| 1578 TRACE_PARSER("ParseInvokeFieldDispatcher"); | 1578 TRACE_PARSER("ParseInvokeFieldDispatcher"); |
| 1579 ASSERT(FLAG_lazy_dispatchers); | |
| 1580 ASSERT(func.IsInvokeFieldDispatcher()); | 1579 ASSERT(func.IsInvokeFieldDispatcher()); |
| 1581 intptr_t token_pos = func.token_pos(); | 1580 intptr_t token_pos = func.token_pos(); |
| 1582 ASSERT(func.token_pos() == 0); | 1581 ASSERT(func.token_pos() == 0); |
| 1583 ASSERT(current_class().raw() == func.Owner()); | 1582 ASSERT(current_class().raw() == func.Owner()); |
| 1584 | 1583 |
| 1585 const Array& args_desc = Array::Handle(Z, func.saved_args_desc()); | 1584 const Array& args_desc = Array::Handle(Z, func.saved_args_desc()); |
| 1586 ArgumentsDescriptor desc(args_desc); | 1585 ArgumentsDescriptor desc(args_desc); |
| 1587 ASSERT(desc.Count() > 0); | 1586 ASSERT(desc.Count() > 0); |
| 1588 | 1587 |
| 1589 // Set up scope for this function. | 1588 // Set up scope for this function. |
| (...skipping 12692 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14282 void Parser::SkipQualIdent() { | 14281 void Parser::SkipQualIdent() { |
| 14283 ASSERT(IsIdentifier()); | 14282 ASSERT(IsIdentifier()); |
| 14284 ConsumeToken(); | 14283 ConsumeToken(); |
| 14285 if (CurrentToken() == Token::kPERIOD) { | 14284 if (CurrentToken() == Token::kPERIOD) { |
| 14286 ConsumeToken(); // Consume the kPERIOD token. | 14285 ConsumeToken(); // Consume the kPERIOD token. |
| 14287 ExpectIdentifier("identifier expected after '.'"); | 14286 ExpectIdentifier("identifier expected after '.'"); |
| 14288 } | 14287 } |
| 14289 } | 14288 } |
| 14290 | 14289 |
| 14291 } // namespace dart | 14290 } // namespace dart |
| OLD | NEW |