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

Side by Side Diff: src/interpreter/bytecode-array-builder.cc

Issue 2571563004: [Turbofan] Implement super calls with spread bytecode in assembly code. (Closed)
Patch Set: MIPS64 port Created 3 years, 11 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/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 "src/interpreter/bytecode-array-builder.h" 5 #include "src/interpreter/bytecode-array-builder.h"
6 6
7 #include "src/globals.h" 7 #include "src/globals.h"
8 #include "src/interpreter/bytecode-array-writer.h" 8 #include "src/interpreter/bytecode-array-writer.h"
9 #include "src/interpreter/bytecode-dead-code-optimizer.h" 9 #include "src/interpreter/bytecode-dead-code-optimizer.h"
10 #include "src/interpreter/bytecode-label.h" 10 #include "src/interpreter/bytecode-label.h"
(...skipping 929 matching lines...) Expand 10 before | Expand all | Expand 10 after
940 return CallRuntimeForPair(function_id, RegisterList(arg.index(), 1), 940 return CallRuntimeForPair(function_id, RegisterList(arg.index(), 1),
941 return_pair); 941 return_pair);
942 } 942 }
943 943
944 BytecodeArrayBuilder& BytecodeArrayBuilder::CallJSRuntime(int context_index, 944 BytecodeArrayBuilder& BytecodeArrayBuilder::CallJSRuntime(int context_index,
945 RegisterList args) { 945 RegisterList args) {
946 OutputCallJSRuntime(context_index, args, args.register_count()); 946 OutputCallJSRuntime(context_index, args, args.register_count());
947 return *this; 947 return *this;
948 } 948 }
949 949
950 BytecodeArrayBuilder& BytecodeArrayBuilder::NewWithSpread(RegisterList args) { 950 BytecodeArrayBuilder& BytecodeArrayBuilder::NewWithSpread(Register constructor,
951 OutputNewWithSpread(args, args.register_count()); 951 RegisterList args) {
952 OutputNewWithSpread(constructor, args, args.register_count());
952 return *this; 953 return *this;
953 } 954 }
954 955
955 BytecodeArrayBuilder& BytecodeArrayBuilder::Delete(Register object, 956 BytecodeArrayBuilder& BytecodeArrayBuilder::Delete(Register object,
956 LanguageMode language_mode) { 957 LanguageMode language_mode) {
957 if (language_mode == SLOPPY) { 958 if (language_mode == SLOPPY) {
958 OutputDeletePropertySloppy(object); 959 OutputDeletePropertySloppy(object);
959 } else { 960 } else {
960 DCHECK_EQ(language_mode, STRICT); 961 DCHECK_EQ(language_mode, STRICT);
961 OutputDeletePropertyStrict(object); 962 OutputDeletePropertyStrict(object);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1043 RegisterList reg_list) { 1044 RegisterList reg_list) {
1044 DCHECK(RegisterListIsValid(reg_list)); 1045 DCHECK(RegisterListIsValid(reg_list));
1045 if (register_optimizer_) 1046 if (register_optimizer_)
1046 register_optimizer_->PrepareOutputRegisterList(reg_list); 1047 register_optimizer_->PrepareOutputRegisterList(reg_list);
1047 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1048 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1048 } 1049 }
1049 1050
1050 } // namespace interpreter 1051 } // namespace interpreter
1051 } // namespace internal 1052 } // namespace internal
1052 } // namespace v8 1053 } // namespace v8
OLDNEW
« no previous file with comments | « src/interpreter/bytecode-array-builder.h ('k') | src/interpreter/bytecode-generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698