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

Side by Side Diff: src/interpreter/interpreter.cc

Issue 2195863002: [turbofan] Stub for typeof operator. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Assert SYMBOL and inline Created 4 years, 4 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/ia32/code-stubs-ia32.cc ('k') | src/mips/code-stubs-mips.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/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
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
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
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/mips/code-stubs-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698