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

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

Issue 2289613002: [turbofan] Remove special JSForInStep and JSForInDone. (Closed)
Patch Set: Created 4 years, 3 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/compiler.h" 7 #include "src/compiler.h"
8 #include "src/globals.h" 8 #include "src/globals.h"
9 #include "src/interpreter/bytecode-array-writer.h" 9 #include "src/interpreter/bytecode-array-writer.h"
10 #include "src/interpreter/bytecode-dead-code-optimizer.h" 10 #include "src/interpreter/bytecode-dead-code-optimizer.h"
(...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 return *this; 526 return *this;
527 } 527 }
528 528
529 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare( 529 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare(
530 Register receiver, Register cache_info_triple) { 530 Register receiver, Register cache_info_triple) {
531 Output(Bytecode::kForInPrepare, RegisterOperand(receiver), 531 Output(Bytecode::kForInPrepare, RegisterOperand(receiver),
532 RegisterOperand(cache_info_triple)); 532 RegisterOperand(cache_info_triple));
533 return *this; 533 return *this;
534 } 534 }
535 535
536 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInDone(Register index, 536 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInContinue(
537 Register cache_length) { 537 Register index, Register cache_length) {
538 Output(Bytecode::kForInDone, RegisterOperand(index), 538 Output(Bytecode::kForInContinue, RegisterOperand(index),
539 RegisterOperand(cache_length)); 539 RegisterOperand(cache_length));
540 return *this; 540 return *this;
541 } 541 }
542 542
543 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInNext( 543 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInNext(
544 Register receiver, Register index, Register cache_type_array_pair, 544 Register receiver, Register index, Register cache_type_array_pair,
545 int feedback_slot) { 545 int feedback_slot) {
546 Output(Bytecode::kForInNext, RegisterOperand(receiver), 546 Output(Bytecode::kForInNext, RegisterOperand(receiver),
547 RegisterOperand(index), RegisterOperand(cache_type_array_pair), 547 RegisterOperand(index), RegisterOperand(cache_type_array_pair),
548 UnsignedOperand(feedback_slot)); 548 UnsignedOperand(feedback_slot));
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 return Bytecode::kTailCall; 984 return Bytecode::kTailCall;
985 default: 985 default:
986 UNREACHABLE(); 986 UNREACHABLE();
987 } 987 }
988 return Bytecode::kIllegal; 988 return Bytecode::kIllegal;
989 } 989 }
990 990
991 } // namespace interpreter 991 } // namespace interpreter
992 } // namespace internal 992 } // namespace internal
993 } // namespace v8 993 } // 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