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

Side by Side Diff: src/parsing/preparser.h

Issue 2540593003: Move desugaring of super calls with trailing spread to one runtime call. (Closed)
Patch Set: fix potential evaluation order issue Created 4 years 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
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_PARSING_PREPARSER_H 5 #ifndef V8_PARSING_PREPARSER_H
6 #define V8_PARSING_PREPARSER_H 6 #define V8_PARSING_PREPARSER_H
7 7
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/parsing/parser-base.h" 9 #include "src/parsing/parser-base.h"
10 #include "src/parsing/preparse-data.h" 10 #include "src/parsing/preparse-data.h"
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
946 V8_INLINE void CheckConflictingVarDeclarations(Scope* scope, bool* ok) {} 946 V8_INLINE void CheckConflictingVarDeclarations(Scope* scope, bool* ok) {}
947 947
948 V8_INLINE void SetLanguageMode(Scope* scope, LanguageMode mode) { 948 V8_INLINE void SetLanguageMode(Scope* scope, LanguageMode mode) {
949 scope->SetLanguageMode(mode); 949 scope->SetLanguageMode(mode);
950 } 950 }
951 V8_INLINE void SetAsmModule() {} 951 V8_INLINE void SetAsmModule() {}
952 952
953 V8_INLINE void MarkCollectedTailCallExpressions() {} 953 V8_INLINE void MarkCollectedTailCallExpressions() {}
954 V8_INLINE void MarkTailPosition(PreParserExpression expression) {} 954 V8_INLINE void MarkTailPosition(PreParserExpression expression) {}
955 955
956 V8_INLINE PreParserExpressionList
957 PrepareSpreadArguments(PreParserExpressionList list) {
958 return list;
959 }
960
961 V8_INLINE PreParserExpression SpreadCall(PreParserExpression function, 956 V8_INLINE PreParserExpression SpreadCall(PreParserExpression function,
962 PreParserExpressionList args, 957 PreParserExpressionList args,
963 int pos); 958 int pos);
964 V8_INLINE PreParserExpression SpreadCallNew(PreParserExpression function, 959 V8_INLINE PreParserExpression SpreadCallNew(PreParserExpression function,
965 PreParserExpressionList args, 960 PreParserExpressionList args,
966 int pos); 961 int pos);
967 962
968 V8_INLINE PreParserExpression 963 V8_INLINE PreParserExpression
969 RewriteSuperCall(PreParserExpression call_expression) { 964 RewriteSuperCall(PreParserExpression call_expression) {
970 return call_expression; 965 return call_expression;
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after
1563 function_state_->NextMaterializedLiteralIndex(); 1558 function_state_->NextMaterializedLiteralIndex();
1564 function_state_->NextMaterializedLiteralIndex(); 1559 function_state_->NextMaterializedLiteralIndex();
1565 } 1560 }
1566 return EmptyExpression(); 1561 return EmptyExpression();
1567 } 1562 }
1568 1563
1569 } // namespace internal 1564 } // namespace internal
1570 } // namespace v8 1565 } // namespace v8
1571 1566
1572 #endif // V8_PARSING_PREPARSER_H 1567 #endif // V8_PARSING_PREPARSER_H
OLDNEW
« no previous file with comments | « src/parsing/parser-base.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698