| 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 1003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1014 PreParser::Expression PreParser::ParseV8Intrinsic(bool* ok) { | 1014 PreParser::Expression PreParser::ParseV8Intrinsic(bool* ok) { |
| 1015 // CallRuntime :: | 1015 // CallRuntime :: |
| 1016 // '%' Identifier Arguments | 1016 // '%' Identifier Arguments |
| 1017 Expect(Token::MOD, CHECK_OK); | 1017 Expect(Token::MOD, CHECK_OK); |
| 1018 if (!allow_natives()) { | 1018 if (!allow_natives()) { |
| 1019 *ok = false; | 1019 *ok = false; |
| 1020 return Expression::Default(); | 1020 return Expression::Default(); |
| 1021 } | 1021 } |
| 1022 // Allow "eval" or "arguments" for backward compatibility. | 1022 // Allow "eval" or "arguments" for backward compatibility. |
| 1023 ParseIdentifier(kAllowEvalOrArguments, CHECK_OK); | 1023 ParseIdentifier(kAllowEvalOrArguments, CHECK_OK); |
| 1024 ParseArguments(ok); | 1024 Scanner::Location spread_pos; |
| 1025 ParseArguments(&spread_pos, ok); |
| 1026 |
| 1027 // TODO(caitp): support intrinsics |
| 1028 DCHECK(!spread_pos.IsValid()); |
| 1025 | 1029 |
| 1026 return Expression::Default(); | 1030 return Expression::Default(); |
| 1027 } | 1031 } |
| 1028 | 1032 |
| 1029 #undef CHECK_OK | 1033 #undef CHECK_OK |
| 1030 | 1034 |
| 1031 | 1035 |
| 1032 } } // v8::internal | 1036 } } // v8::internal |
| OLD | NEW |