| OLD | NEW |
| 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 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1196 } | 1196 } |
| 1197 | 1197 |
| 1198 | 1198 |
| 1199 BytecodeArrayBuilder& BytecodeArrayBuilder::Delete(Register object, | 1199 BytecodeArrayBuilder& BytecodeArrayBuilder::Delete(Register object, |
| 1200 LanguageMode language_mode) { | 1200 LanguageMode language_mode) { |
| 1201 Output(BytecodeForDelete(language_mode), object.ToRawOperand()); | 1201 Output(BytecodeForDelete(language_mode), object.ToRawOperand()); |
| 1202 return *this; | 1202 return *this; |
| 1203 } | 1203 } |
| 1204 | 1204 |
| 1205 | 1205 |
| 1206 BytecodeArrayBuilder& BytecodeArrayBuilder::DeleteLookupSlot() { | |
| 1207 Output(Bytecode::kDeleteLookupSlot); | |
| 1208 return *this; | |
| 1209 } | |
| 1210 | |
| 1211 | |
| 1212 size_t BytecodeArrayBuilder::GetConstantPoolEntry(Handle<Object> object) { | 1206 size_t BytecodeArrayBuilder::GetConstantPoolEntry(Handle<Object> object) { |
| 1213 return constant_array_builder()->Insert(object); | 1207 return constant_array_builder()->Insert(object); |
| 1214 } | 1208 } |
| 1215 | 1209 |
| 1216 void BytecodeArrayBuilder::SetStatementPosition(Statement* stmt) { | 1210 void BytecodeArrayBuilder::SetStatementPosition(Statement* stmt) { |
| 1217 if (stmt->position() == RelocInfo::kNoPosition) return; | 1211 if (stmt->position() == RelocInfo::kNoPosition) return; |
| 1218 source_position_table_builder_.AddStatementPosition(bytecodes_.size(), | 1212 source_position_table_builder_.AddStatementPosition(bytecodes_.size(), |
| 1219 stmt->position()); | 1213 stmt->position()); |
| 1220 } | 1214 } |
| 1221 | 1215 |
| (...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1692 } | 1686 } |
| 1693 | 1687 |
| 1694 // static | 1688 // static |
| 1695 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) { | 1689 bool BytecodeArrayBuilder::FitsInReg16OperandUntranslated(Register value) { |
| 1696 return value.is_short_operand(); | 1690 return value.is_short_operand(); |
| 1697 } | 1691 } |
| 1698 | 1692 |
| 1699 } // namespace interpreter | 1693 } // namespace interpreter |
| 1700 } // namespace internal | 1694 } // namespace internal |
| 1701 } // namespace v8 | 1695 } // namespace v8 |
| OLD | NEW |