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

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: Change arm64 loop to be similar to the rest 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
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 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
943 return CallRuntimeForPair(function_id, RegisterList(arg.index(), 1), 943 return CallRuntimeForPair(function_id, RegisterList(arg.index(), 1),
944 return_pair); 944 return_pair);
945 } 945 }
946 946
947 BytecodeArrayBuilder& BytecodeArrayBuilder::CallJSRuntime(int context_index, 947 BytecodeArrayBuilder& BytecodeArrayBuilder::CallJSRuntime(int context_index,
948 RegisterList args) { 948 RegisterList args) {
949 OutputCallJSRuntime(context_index, args, args.register_count()); 949 OutputCallJSRuntime(context_index, args, args.register_count());
950 return *this; 950 return *this;
951 } 951 }
952 952
953 BytecodeArrayBuilder& BytecodeArrayBuilder::NewWithSpread(RegisterList args) { 953 BytecodeArrayBuilder& BytecodeArrayBuilder::NewWithSpread(Register constructor,
954 OutputNewWithSpread(args, args.register_count()); 954 RegisterList args) {
955 OutputNewWithSpread(constructor, args, args.register_count());
955 return *this; 956 return *this;
956 } 957 }
957 958
958 BytecodeArrayBuilder& BytecodeArrayBuilder::Delete(Register object, 959 BytecodeArrayBuilder& BytecodeArrayBuilder::Delete(Register object,
959 LanguageMode language_mode) { 960 LanguageMode language_mode) {
960 if (language_mode == SLOPPY) { 961 if (language_mode == SLOPPY) {
961 OutputDeletePropertySloppy(object); 962 OutputDeletePropertySloppy(object);
962 } else { 963 } else {
963 DCHECK_EQ(language_mode, STRICT); 964 DCHECK_EQ(language_mode, STRICT);
964 OutputDeletePropertyStrict(object); 965 OutputDeletePropertyStrict(object);
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 RegisterList reg_list) { 1047 RegisterList reg_list) {
1047 DCHECK(RegisterListIsValid(reg_list)); 1048 DCHECK(RegisterListIsValid(reg_list));
1048 if (register_optimizer_) 1049 if (register_optimizer_)
1049 register_optimizer_->PrepareOutputRegisterList(reg_list); 1050 register_optimizer_->PrepareOutputRegisterList(reg_list);
1050 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1051 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1051 } 1052 }
1052 1053
1053 } // namespace interpreter 1054 } // namespace interpreter
1054 } // namespace internal 1055 } // namespace internal
1055 } // namespace v8 1056 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698