Chromium Code Reviews| 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 <fstream> | 7 #include <fstream> |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "src/ast/prettyprinter.h" | 10 #include "src/ast/prettyprinter.h" |
| (...skipping 1123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1134 __ Bind(&end); | 1134 __ Bind(&end); |
| 1135 __ SetAccumulator(result.value()); | 1135 __ SetAccumulator(result.value()); |
| 1136 __ Dispatch(); | 1136 __ Dispatch(); |
| 1137 } | 1137 } |
| 1138 | 1138 |
| 1139 // TypeOf | 1139 // TypeOf |
| 1140 // | 1140 // |
| 1141 // Load the accumulator with the string representating type of the | 1141 // Load the accumulator with the string representating type of the |
| 1142 // object in the accumulator. | 1142 // object in the accumulator. |
| 1143 void Interpreter::DoTypeOf(InterpreterAssembler* assembler) { | 1143 void Interpreter::DoTypeOf(InterpreterAssembler* assembler) { |
| 1144 DoUnaryOp(CodeFactory::Typeof(isolate_), assembler); | 1144 DoUnaryOp<TypeofStub>(assembler); |
|
Benedikt Meurer
2016/08/02 04:53:36
I think the untemplated DoUnaryOp is dead code now
| |
| 1145 } | 1145 } |
| 1146 | 1146 |
| 1147 void Interpreter::DoDelete(Runtime::FunctionId function_id, | 1147 void Interpreter::DoDelete(Runtime::FunctionId function_id, |
| 1148 InterpreterAssembler* assembler) { | 1148 InterpreterAssembler* assembler) { |
| 1149 Node* reg_index = __ BytecodeOperandReg(0); | 1149 Node* reg_index = __ BytecodeOperandReg(0); |
| 1150 Node* object = __ LoadRegister(reg_index); | 1150 Node* object = __ LoadRegister(reg_index); |
| 1151 Node* key = __ GetAccumulator(); | 1151 Node* key = __ GetAccumulator(); |
| 1152 Node* context = __ GetContext(); | 1152 Node* context = __ GetContext(); |
| 1153 Node* result = __ CallRuntime(function_id, context, object, key); | 1153 Node* result = __ CallRuntime(function_id, context, object, key); |
| 1154 __ SetAccumulator(result); | 1154 __ SetAccumulator(result); |
| (...skipping 1020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2175 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, | 2175 __ StoreObjectField(generator, JSGeneratorObject::kContinuationOffset, |
| 2176 __ SmiTag(new_state)); | 2176 __ SmiTag(new_state)); |
| 2177 __ SetAccumulator(old_state); | 2177 __ SetAccumulator(old_state); |
| 2178 | 2178 |
| 2179 __ Dispatch(); | 2179 __ Dispatch(); |
| 2180 } | 2180 } |
| 2181 | 2181 |
| 2182 } // namespace interpreter | 2182 } // namespace interpreter |
| 2183 } // namespace internal | 2183 } // namespace internal |
| 2184 } // namespace v8 | 2184 } // namespace v8 |
| OLD | NEW |