Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: src/preparser.cc

Issue 938443002: [es6] implement spread calls (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase + clang-format Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/preparser.h ('k') | src/prettyprinter.cc » ('j') | test/js-perf-test/JSTests.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698