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

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

Issue 1756793002: [compiler] Introduce proper StrictNotEqualStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 9 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/compiler/js-generic-lowering.cc ('k') | src/runtime/runtime.h » ('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 "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 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 void Interpreter::DoTestEqualStrict(InterpreterAssembler* assembler) { 1190 void Interpreter::DoTestEqualStrict(InterpreterAssembler* assembler) {
1191 DoBinaryOp(CodeFactory::StrictEqual(isolate_), assembler); 1191 DoBinaryOp(CodeFactory::StrictEqual(isolate_), assembler);
1192 } 1192 }
1193 1193
1194 1194
1195 // TestNotEqualStrict <src> 1195 // TestNotEqualStrict <src>
1196 // 1196 //
1197 // Test if the value in the <src> register is not strictly equal to the 1197 // Test if the value in the <src> register is not strictly equal to the
1198 // accumulator. 1198 // accumulator.
1199 void Interpreter::DoTestNotEqualStrict(InterpreterAssembler* assembler) { 1199 void Interpreter::DoTestNotEqualStrict(InterpreterAssembler* assembler) {
1200 DoBinaryOp(Runtime::kStrictNotEqual, assembler); 1200 DoBinaryOp(CodeFactory::StrictNotEqual(isolate_), assembler);
1201 } 1201 }
1202 1202
1203 1203
1204 // TestLessThan <src> 1204 // TestLessThan <src>
1205 // 1205 //
1206 // Test if the value in the <src> register is less than the accumulator. 1206 // Test if the value in the <src> register is less than the accumulator.
1207 void Interpreter::DoTestLessThan(InterpreterAssembler* assembler) { 1207 void Interpreter::DoTestLessThan(InterpreterAssembler* assembler) {
1208 DoBinaryOp(Runtime::kLessThan, assembler); 1208 DoBinaryOp(Runtime::kLessThan, assembler);
1209 } 1209 }
1210 1210
(...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after
1913 Node* index = __ LoadRegister(index_reg); 1913 Node* index = __ LoadRegister(index_reg);
1914 Node* one = __ SmiConstant(Smi::FromInt(1)); 1914 Node* one = __ SmiConstant(Smi::FromInt(1));
1915 Node* result = __ SmiAdd(index, one); 1915 Node* result = __ SmiAdd(index, one);
1916 __ SetAccumulator(result); 1916 __ SetAccumulator(result);
1917 __ Dispatch(); 1917 __ Dispatch();
1918 } 1918 }
1919 1919
1920 } // namespace interpreter 1920 } // namespace interpreter
1921 } // namespace internal 1921 } // namespace internal
1922 } // namespace v8 1922 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/js-generic-lowering.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698