| 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/ast/prettyprinter.h" | 7 #include "src/ast/prettyprinter.h" |
| 8 #include "src/code-factory.h" | 8 #include "src/code-factory.h" |
| 9 #include "src/compiler.h" | 9 #include "src/compiler.h" |
| 10 #include "src/factory.h" | 10 #include "src/factory.h" |
| (...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1013 | 1013 |
| 1014 // DeletePropertySloppy | 1014 // DeletePropertySloppy |
| 1015 // | 1015 // |
| 1016 // Delete the property specified in the accumulator from the object | 1016 // Delete the property specified in the accumulator from the object |
| 1017 // referenced by the register operand following sloppy mode semantics. | 1017 // referenced by the register operand following sloppy mode semantics. |
| 1018 void Interpreter::DoDeletePropertySloppy(InterpreterAssembler* assembler) { | 1018 void Interpreter::DoDeletePropertySloppy(InterpreterAssembler* assembler) { |
| 1019 DoDelete(Runtime::kDeleteProperty_Sloppy, assembler); | 1019 DoDelete(Runtime::kDeleteProperty_Sloppy, assembler); |
| 1020 } | 1020 } |
| 1021 | 1021 |
| 1022 | 1022 |
| 1023 // DeleteLookupSlot | |
| 1024 // | |
| 1025 // Delete the variable with the name specified in the accumulator by dynamically | |
| 1026 // looking it up. | |
| 1027 void Interpreter::DoDeleteLookupSlot(InterpreterAssembler* assembler) { | |
| 1028 Node* name = __ GetAccumulator(); | |
| 1029 Node* context = __ GetContext(); | |
| 1030 Node* result = __ CallRuntime(Runtime::kDeleteLookupSlot, context, name); | |
| 1031 __ SetAccumulator(result); | |
| 1032 __ Dispatch(); | |
| 1033 } | |
| 1034 | |
| 1035 void Interpreter::DoJSCall(InterpreterAssembler* assembler) { | 1023 void Interpreter::DoJSCall(InterpreterAssembler* assembler) { |
| 1036 Node* function_reg = __ BytecodeOperandReg(0); | 1024 Node* function_reg = __ BytecodeOperandReg(0); |
| 1037 Node* function = __ LoadRegister(function_reg); | 1025 Node* function = __ LoadRegister(function_reg); |
| 1038 Node* receiver_reg = __ BytecodeOperandReg(1); | 1026 Node* receiver_reg = __ BytecodeOperandReg(1); |
| 1039 Node* receiver_arg = __ RegisterLocation(receiver_reg); | 1027 Node* receiver_arg = __ RegisterLocation(receiver_reg); |
| 1040 Node* receiver_args_count = __ BytecodeOperandCount(2); | 1028 Node* receiver_args_count = __ BytecodeOperandCount(2); |
| 1041 Node* receiver_count = __ Int32Constant(1); | 1029 Node* receiver_count = __ Int32Constant(1); |
| 1042 Node* args_count = __ Int32Sub(receiver_args_count, receiver_count); | 1030 Node* args_count = __ Int32Sub(receiver_args_count, receiver_count); |
| 1043 Node* context = __ GetContext(); | 1031 Node* context = __ GetContext(); |
| 1044 // TODO(rmcilroy): Use the call type feedback slot to call via CallStub. | 1032 // TODO(rmcilroy): Use the call type feedback slot to call via CallStub. |
| (...skipping 842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1887 Node* index = __ LoadRegister(index_reg); | 1875 Node* index = __ LoadRegister(index_reg); |
| 1888 Node* context = __ GetContext(); | 1876 Node* context = __ GetContext(); |
| 1889 Node* result = __ CallRuntime(Runtime::kForInStep, context, index); | 1877 Node* result = __ CallRuntime(Runtime::kForInStep, context, index); |
| 1890 __ SetAccumulator(result); | 1878 __ SetAccumulator(result); |
| 1891 __ Dispatch(); | 1879 __ Dispatch(); |
| 1892 } | 1880 } |
| 1893 | 1881 |
| 1894 } // namespace interpreter | 1882 } // namespace interpreter |
| 1895 } // namespace internal | 1883 } // namespace internal |
| 1896 } // namespace v8 | 1884 } // namespace v8 |
| OLD | NEW |