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

Side by Side Diff: src/full-codegen.h

Issue 1053773006: [es6] implement default/optional parameters (WIP / comments) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Experimental not-quite-TDZ support 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
« no previous file with comments | « src/ast-value-factory.h ('k') | src/parser.cc » ('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_FULL_CODEGEN_H_ 5 #ifndef V8_FULL_CODEGEN_H_
6 #define V8_FULL_CODEGEN_H_ 6 #define V8_FULL_CODEGEN_H_
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 576 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 void EmitResolvePossiblyDirectEval(int arg_count); 587 void EmitResolvePossiblyDirectEval(int arg_count);
588 588
589 // Platform-specific support for allocating a new closure based on 589 // Platform-specific support for allocating a new closure based on
590 // the given function info. 590 // the given function info.
591 void EmitNewClosure(Handle<SharedFunctionInfo> info, bool pretenure); 591 void EmitNewClosure(Handle<SharedFunctionInfo> info, bool pretenure);
592 592
593 // Re-usable portions of CallRuntime 593 // Re-usable portions of CallRuntime
594 void EmitLoadJSRuntimeFunction(CallRuntime* expr); 594 void EmitLoadJSRuntimeFunction(CallRuntime* expr);
595 void EmitCallJSRuntimeFunction(CallRuntime* expr); 595 void EmitCallJSRuntimeFunction(CallRuntime* expr);
596 596
597 void EmitInitializeOptionalParameters(Scope* scope, FunctionLiteral* fn);
598
597 // Platform-specific support for compiling assignments. 599 // Platform-specific support for compiling assignments.
598 600
599 // Left-hand side can only be a property, a global or a (parameter or local) 601 // Left-hand side can only be a property, a global or a (parameter or local)
600 // slot. 602 // slot.
601 enum LhsKind { 603 enum LhsKind {
602 VARIABLE, 604 VARIABLE,
603 NAMED_PROPERTY, 605 NAMED_PROPERTY,
604 KEYED_PROPERTY, 606 KEYED_PROPERTY,
605 NAMED_SUPER_PROPERTY, 607 NAMED_SUPER_PROPERTY,
606 KEYED_SUPER_PROPERTY 608 KEYED_SUPER_PROPERTY
(...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after
1098 1100
1099 Address start_; 1101 Address start_;
1100 Address instruction_start_; 1102 Address instruction_start_;
1101 uint32_t length_; 1103 uint32_t length_;
1102 }; 1104 };
1103 1105
1104 1106
1105 } } // namespace v8::internal 1107 } } // namespace v8::internal
1106 1108
1107 #endif // V8_FULL_CODEGEN_H_ 1109 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/ast-value-factory.h ('k') | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698