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

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

Issue 1667073002: [interpreter, debugger] implement debugger statement. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@sourcepositiontable
Patch Set: fix test expectation Created 4 years, 10 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 namespace v8 { 7 namespace v8 {
8 namespace internal { 8 namespace internal {
9 namespace interpreter { 9 namespace interpreter {
10 10
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 return *this; 982 return *this;
983 } 983 }
984 984
985 985
986 BytecodeArrayBuilder& BytecodeArrayBuilder::Return() { 986 BytecodeArrayBuilder& BytecodeArrayBuilder::Return() {
987 Output(Bytecode::kReturn); 987 Output(Bytecode::kReturn);
988 exit_seen_in_block_ = true; 988 exit_seen_in_block_ = true;
989 return *this; 989 return *this;
990 } 990 }
991 991
992 BytecodeArrayBuilder& BytecodeArrayBuilder::Debugger() {
993 Output(Bytecode::kDebugger);
994 return *this;
995 }
992 996
993 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare( 997 BytecodeArrayBuilder& BytecodeArrayBuilder::ForInPrepare(
994 Register cache_info_triple) { 998 Register cache_info_triple) {
995 if (FitsInReg8Operand(cache_info_triple)) { 999 if (FitsInReg8Operand(cache_info_triple)) {
996 Output(Bytecode::kForInPrepare, cache_info_triple.ToRawOperand()); 1000 Output(Bytecode::kForInPrepare, cache_info_triple.ToRawOperand());
997 } else if (FitsInReg16Operand(cache_info_triple)) { 1001 } else if (FitsInReg16Operand(cache_info_triple)) {
998 Output(Bytecode::kForInPrepareWide, cache_info_triple.ToRawOperand()); 1002 Output(Bytecode::kForInPrepareWide, cache_info_triple.ToRawOperand());
999 } else { 1003 } else {
1000 UNIMPLEMENTED(); 1004 UNIMPLEMENTED();
1001 } 1005 }
(...skipping 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
1679 } 1683 }
1680 1684
1681 // static 1685 // static
1682 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) { 1686 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) {
1683 return value.is_short_operand(); 1687 return value.is_short_operand();
1684 } 1688 }
1685 1689
1686 } // namespace interpreter 1690 } // namespace interpreter
1687 } // namespace internal 1691 } // namespace internal
1688 } // namespace v8 1692 } // 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