| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include <cmath> | 5 #include <cmath> |
| 6 | 6 |
| 7 #include "src/allocation.h" | 7 #include "src/allocation.h" |
| 8 #include "src/base/logging.h" | 8 #include "src/base/logging.h" |
| 9 #include "src/conversions-inl.h" | 9 #include "src/conversions-inl.h" |
| 10 #include "src/conversions.h" | 10 #include "src/conversions.h" |
| (...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1036 PreParser::Expression PreParser::ParseV8Intrinsic(bool* ok) { | 1036 PreParser::Expression PreParser::ParseV8Intrinsic(bool* ok) { |
| 1037 // CallRuntime :: | 1037 // CallRuntime :: |
| 1038 // '%' Identifier Arguments | 1038 // '%' Identifier Arguments |
| 1039 Expect(Token::MOD, CHECK_OK); | 1039 Expect(Token::MOD, CHECK_OK); |
| 1040 if (!allow_natives()) { | 1040 if (!allow_natives()) { |
| 1041 *ok = false; | 1041 *ok = false; |
| 1042 return Expression::Default(); | 1042 return Expression::Default(); |
| 1043 } | 1043 } |
| 1044 // Allow "eval" or "arguments" for backward compatibility. | 1044 // Allow "eval" or "arguments" for backward compatibility. |
| 1045 ParseIdentifier(kAllowEvalOrArguments, CHECK_OK); | 1045 ParseIdentifier(kAllowEvalOrArguments, CHECK_OK); |
| 1046 ParseArguments(ok); | 1046 Scanner::Location spread_pos; |
| 1047 ParseArguments(&spread_pos, ok); |
| 1048 |
| 1049 DCHECK(!spread_pos.IsValid()); |
| 1047 | 1050 |
| 1048 return Expression::Default(); | 1051 return Expression::Default(); |
| 1049 } | 1052 } |
| 1050 | 1053 |
| 1051 #undef CHECK_OK | 1054 #undef CHECK_OK |
| 1052 | 1055 |
| 1053 | 1056 |
| 1054 } } // v8::internal | 1057 } } // v8::internal |
| OLD | NEW |