| 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 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1062 PreParser::Expression PreParser::ParseV8Intrinsic(bool* ok) { | 1062 PreParser::Expression PreParser::ParseV8Intrinsic(bool* ok) { |
| 1063 // CallRuntime :: | 1063 // CallRuntime :: |
| 1064 // '%' Identifier Arguments | 1064 // '%' Identifier Arguments |
| 1065 Expect(Token::MOD, CHECK_OK); | 1065 Expect(Token::MOD, CHECK_OK); |
| 1066 if (!allow_natives()) { | 1066 if (!allow_natives()) { |
| 1067 *ok = false; | 1067 *ok = false; |
| 1068 return Expression::Default(); | 1068 return Expression::Default(); |
| 1069 } | 1069 } |
| 1070 // Allow "eval" or "arguments" for backward compatibility. | 1070 // Allow "eval" or "arguments" for backward compatibility. |
| 1071 ParseIdentifier(kAllowEvalOrArguments, CHECK_OK); | 1071 ParseIdentifier(kAllowEvalOrArguments, CHECK_OK); |
| 1072 ParseArguments(ok); | 1072 Scanner::Location spread_pos; |
| 1073 ParseArguments(&spread_pos, ok); |
| 1074 |
| 1075 DCHECK(!spread_pos.IsValid()); |
| 1073 | 1076 |
| 1074 return Expression::Default(); | 1077 return Expression::Default(); |
| 1075 } | 1078 } |
| 1076 | 1079 |
| 1077 #undef CHECK_OK | 1080 #undef CHECK_OK |
| 1078 | 1081 |
| 1079 | 1082 |
| 1080 } } // v8::internal | 1083 } } // v8::internal |
| OLD | NEW |