Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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/scanner.h" | 5 #include "vm/scanner.h" |
| 6 | 6 |
| 7 #include "vm/assert.h" | 7 #include "vm/assert.h" |
| 8 #include "vm/flags.h" | 8 #include "vm/flags.h" |
| 9 #include "vm/object.h" | 9 #include "vm/object.h" |
| 10 #include "vm/thread.h" | 10 #include "vm/thread.h" |
| (...skipping 649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 660 if (c0_ == '=') { | 660 if (c0_ == '=') { |
| 661 Recognize(Token::kLTE); | 661 Recognize(Token::kLTE); |
| 662 } else if (c0_ == '<') { | 662 } else if (c0_ == '<') { |
| 663 Recognize(Token::kSHL); | 663 Recognize(Token::kSHL); |
| 664 if (c0_ == '=') { | 664 if (c0_ == '=') { |
| 665 Recognize(Token::kASSIGN_SHL); | 665 Recognize(Token::kASSIGN_SHL); |
| 666 } | 666 } |
| 667 } | 667 } |
| 668 break; | 668 break; |
| 669 | 669 |
| 670 case '>': // > >= >> >>= >>> >>>= | 670 case '>': // > >= >> >>= >>> >>>= |
|
hausner
2012/01/13 07:22:53
Update the comment please.
Ivan Posva
2012/01/13 09:04:18
Done.
| |
| 671 Recognize(Token::kGT); | 671 Recognize(Token::kGT); |
| 672 if (c0_ == '=') { | 672 if (c0_ == '=') { |
| 673 Recognize(Token::kGTE); | 673 Recognize(Token::kGTE); |
| 674 } else if (c0_ == '>') { | 674 } else if (c0_ == '>') { |
| 675 Recognize(Token::kSAR); | 675 Recognize(Token::kSHR); |
| 676 if (c0_ == '=') { | 676 if (c0_ == '=') { |
| 677 Recognize(Token::kASSIGN_SAR); | 677 Recognize(Token::kASSIGN_SHR); |
| 678 } else if (c0_ == '>') { | |
| 679 Recognize(Token::kSHR); | |
| 680 if (c0_ == '=') { | |
| 681 Recognize(Token::kASSIGN_SHR); | |
| 682 } | |
| 683 } | 678 } |
| 684 } | 679 } |
| 685 break; | 680 break; |
| 686 | 681 |
| 687 case '!': // ! != !== | 682 case '!': // ! != !== |
| 688 Recognize(Token::kNOT); | 683 Recognize(Token::kNOT); |
| 689 if (c0_ == '=') { | 684 if (c0_ == '=') { |
| 690 Recognize(Token::kNE); | 685 Recognize(Token::kNE); |
| 691 if (c0_ == '=') { | 686 if (c0_ == '=') { |
| 692 Recognize(Token::kNE_STRICT); | 687 Recognize(Token::kNE_STRICT); |
| (...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 850 "%c%"PRIxPTR, kPrivateKeySeparator, key_value); | 845 "%c%"PRIxPTR, kPrivateKeySeparator, key_value); |
| 851 const String& result = String::Handle(String::New(private_key)); | 846 const String& result = String::Handle(String::New(private_key)); |
| 852 return result.raw(); | 847 return result.raw(); |
| 853 } | 848 } |
| 854 | 849 |
| 855 | 850 |
| 856 void Scanner::InitOnce() { | 851 void Scanner::InitOnce() { |
| 857 } | 852 } |
| 858 | 853 |
| 859 } // namespace dart | 854 } // namespace dart |
| OLD | NEW |