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

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

Issue 2541113004: [Ignition/turbo] Add a NewWithSpread bytecode. (Closed)
Patch Set: Move MustIterate to Object 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
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 908 matching lines...) Expand 10 before | Expand all | Expand 10 after
919 return CallRuntimeForPair(function_id, RegisterList(arg.index(), 1), 919 return CallRuntimeForPair(function_id, RegisterList(arg.index(), 1),
920 return_pair); 920 return_pair);
921 } 921 }
922 922
923 BytecodeArrayBuilder& BytecodeArrayBuilder::CallJSRuntime(int context_index, 923 BytecodeArrayBuilder& BytecodeArrayBuilder::CallJSRuntime(int context_index,
924 RegisterList args) { 924 RegisterList args) {
925 OutputCallJSRuntime(context_index, args, args.register_count()); 925 OutputCallJSRuntime(context_index, args, args.register_count());
926 return *this; 926 return *this;
927 } 927 }
928 928
929 BytecodeArrayBuilder& BytecodeArrayBuilder::ConstructWithSpread(
930 RegisterList args) {
931 OutputConstructWithSpread(args, args.register_count());
932 return *this;
933 }
934
929 BytecodeArrayBuilder& BytecodeArrayBuilder::Delete(Register object, 935 BytecodeArrayBuilder& BytecodeArrayBuilder::Delete(Register object,
930 LanguageMode language_mode) { 936 LanguageMode language_mode) {
931 if (language_mode == SLOPPY) { 937 if (language_mode == SLOPPY) {
932 OutputDeletePropertySloppy(object); 938 OutputDeletePropertySloppy(object);
933 } else { 939 } else {
934 DCHECK_EQ(language_mode, STRICT); 940 DCHECK_EQ(language_mode, STRICT);
935 OutputDeletePropertyStrict(object); 941 OutputDeletePropertyStrict(object);
936 } 942 }
937 return *this; 943 return *this;
938 } 944 }
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
1015 RegisterList reg_list) { 1021 RegisterList reg_list) {
1016 DCHECK(RegisterListIsValid(reg_list)); 1022 DCHECK(RegisterListIsValid(reg_list));
1017 if (register_optimizer_) 1023 if (register_optimizer_)
1018 register_optimizer_->PrepareOutputRegisterList(reg_list); 1024 register_optimizer_->PrepareOutputRegisterList(reg_list);
1019 return static_cast<uint32_t>(reg_list.first_register().ToOperand()); 1025 return static_cast<uint32_t>(reg_list.first_register().ToOperand());
1020 } 1026 }
1021 1027
1022 } // namespace interpreter 1028 } // namespace interpreter
1023 } // namespace internal 1029 } // namespace internal
1024 } // namespace v8 1030 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698