| 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 "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 6381 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6392 const Object& result = Object::Handle( | 6392 const Object& result = Object::Handle( |
| 6393 DartEntry::InvokeStatic(constructor, arg_values, opt_arg_names)); | 6393 DartEntry::InvokeStatic(constructor, arg_values, opt_arg_names)); |
| 6394 if (result.IsError()) { | 6394 if (result.IsError()) { |
| 6395 if (result.IsUnhandledException()) { | 6395 if (result.IsUnhandledException()) { |
| 6396 return result.raw(); | 6396 return result.raw(); |
| 6397 } else { | 6397 } else { |
| 6398 Error& error = Error::Handle(); | 6398 Error& error = Error::Handle(); |
| 6399 error ^= result.raw(); | 6399 error ^= result.raw(); |
| 6400 Isolate::Current()->long_jump_base()->Jump(1, error); | 6400 Isolate::Current()->long_jump_base()->Jump(1, error); |
| 6401 UNREACHABLE(); | 6401 UNREACHABLE(); |
| 6402 return Object::null(); |
| 6402 } | 6403 } |
| 6403 } else { | 6404 } else { |
| 6404 if (constructor.IsFactory()) { | 6405 if (constructor.IsFactory()) { |
| 6405 // The factory method returns the allocated object. | 6406 // The factory method returns the allocated object. |
| 6406 instance ^= result.raw(); | 6407 instance ^= result.raw(); |
| 6407 } | 6408 } |
| 6408 if (!instance.IsNull()) { | 6409 if (!instance.IsNull()) { |
| 6409 instance ^= instance.Canonicalize(); | 6410 instance ^= instance.Canonicalize(); |
| 6410 } | 6411 } |
| 6411 return instance.raw(); | 6412 return instance.raw(); |
| (...skipping 1354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7766 void Parser::SkipQualIdent() { | 7767 void Parser::SkipQualIdent() { |
| 7767 ASSERT(IsIdentifier()); | 7768 ASSERT(IsIdentifier()); |
| 7768 ConsumeToken(); | 7769 ConsumeToken(); |
| 7769 if (CurrentToken() == Token::kPERIOD) { | 7770 if (CurrentToken() == Token::kPERIOD) { |
| 7770 ConsumeToken(); // Consume the kPERIOD token. | 7771 ConsumeToken(); // Consume the kPERIOD token. |
| 7771 ExpectIdentifier("identifier expected after '.'"); | 7772 ExpectIdentifier("identifier expected after '.'"); |
| 7772 } | 7773 } |
| 7773 } | 7774 } |
| 7774 | 7775 |
| 7775 } // namespace dart | 7776 } // namespace dart |
| OLD | NEW |