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/interpreter.h" | 5 #include "src/interpreter/interpreter.h" |
6 | 6 |
7 #include "src/code-factory.h" | 7 #include "src/code-factory.h" |
8 #include "src/compiler.h" | 8 #include "src/compiler.h" |
9 #include "src/compiler/interpreter-assembler.h" | 9 #include "src/compiler/interpreter-assembler.h" |
10 #include "src/factory.h" | 10 #include "src/factory.h" |
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
956 // DeletePropertySloppy | 956 // DeletePropertySloppy |
957 // | 957 // |
958 // Delete the property specified in the accumulator from the object | 958 // Delete the property specified in the accumulator from the object |
959 // referenced by the register operand following sloppy mode semantics. | 959 // referenced by the register operand following sloppy mode semantics. |
960 void Interpreter::DoDeletePropertySloppy( | 960 void Interpreter::DoDeletePropertySloppy( |
961 compiler::InterpreterAssembler* assembler) { | 961 compiler::InterpreterAssembler* assembler) { |
962 DoDelete(Runtime::kDeleteProperty_Sloppy, assembler); | 962 DoDelete(Runtime::kDeleteProperty_Sloppy, assembler); |
963 } | 963 } |
964 | 964 |
965 | 965 |
| 966 // DeleteLookupSlot |
| 967 // |
| 968 // Delete the variable with the name specified in the accumulator by dynamically |
| 969 // looking it up. |
| 970 void Interpreter::DoDeleteLookupSlot( |
| 971 compiler::InterpreterAssembler* assembler) { |
| 972 Node* name = __ GetAccumulator(); |
| 973 Node* context = __ GetContext(); |
| 974 Node* result = __ CallRuntime(Runtime::kDeleteLookupSlot, context, name); |
| 975 __ SetAccumulator(result); |
| 976 __ Dispatch(); |
| 977 } |
| 978 |
| 979 |
966 void Interpreter::DoJSCall(compiler::InterpreterAssembler* assembler) { | 980 void Interpreter::DoJSCall(compiler::InterpreterAssembler* assembler) { |
967 Node* function_reg = __ BytecodeOperandReg(0); | 981 Node* function_reg = __ BytecodeOperandReg(0); |
968 Node* function = __ LoadRegister(function_reg); | 982 Node* function = __ LoadRegister(function_reg); |
969 Node* receiver_reg = __ BytecodeOperandReg(1); | 983 Node* receiver_reg = __ BytecodeOperandReg(1); |
970 Node* first_arg = __ RegisterLocation(receiver_reg); | 984 Node* first_arg = __ RegisterLocation(receiver_reg); |
971 Node* args_count = __ BytecodeOperandCount(2); | 985 Node* args_count = __ BytecodeOperandCount(2); |
972 // TODO(rmcilroy): Use the call type feedback slot to call via CallIC. | 986 // TODO(rmcilroy): Use the call type feedback slot to call via CallIC. |
973 Node* result = __ CallJS(function, first_arg, args_count); | 987 Node* result = __ CallJS(function, first_arg, args_count); |
974 __ SetAccumulator(result); | 988 __ SetAccumulator(result); |
975 __ Dispatch(); | 989 __ Dispatch(); |
(...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1563 Node* cache_length = __ LoadFixedArrayElement(for_in_state, 3); | 1577 Node* cache_length = __ LoadFixedArrayElement(for_in_state, 3); |
1564 Node* result = __ CallRuntime(Runtime::kForInDone, index, cache_length); | 1578 Node* result = __ CallRuntime(Runtime::kForInDone, index, cache_length); |
1565 __ SetAccumulator(result); | 1579 __ SetAccumulator(result); |
1566 __ Dispatch(); | 1580 __ Dispatch(); |
1567 } | 1581 } |
1568 | 1582 |
1569 | 1583 |
1570 } // namespace interpreter | 1584 } // namespace interpreter |
1571 } // namespace internal | 1585 } // namespace internal |
1572 } // namespace v8 | 1586 } // namespace v8 |
OLD | NEW |