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

Side by Side Diff: src/ia32/code-stubs-ia32.cc

Issue 1753173003: [compiler] Introduce initial StrictEqualStub. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Add pseudo-code. 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/linkage.cc ('k') | src/interpreter/interpreter.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/bootstrapper.h" 8 #include "src/bootstrapper.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 3214 matching lines...) Expand 10 before | Expand all | Expand 10 after
3225 if (equality) { 3225 if (equality) {
3226 StringHelper::GenerateFlatOneByteStringEquals(masm, left, right, tmp1, 3226 StringHelper::GenerateFlatOneByteStringEquals(masm, left, right, tmp1,
3227 tmp2); 3227 tmp2);
3228 } else { 3228 } else {
3229 StringHelper::GenerateCompareFlatOneByteStrings(masm, left, right, tmp1, 3229 StringHelper::GenerateCompareFlatOneByteStrings(masm, left, right, tmp1,
3230 tmp2, tmp3); 3230 tmp2, tmp3);
3231 } 3231 }
3232 3232
3233 // Handle more complex cases in runtime. 3233 // Handle more complex cases in runtime.
3234 __ bind(&runtime); 3234 __ bind(&runtime);
3235 __ pop(tmp1); // Return address.
3236 __ push(left);
3237 __ push(right);
3238 __ push(tmp1);
3239 if (equality) { 3235 if (equality) {
3240 __ TailCallRuntime(Runtime::kStringEquals); 3236 {
3237 FrameScope scope(masm, StackFrame::INTERNAL);
3238 __ Push(left);
3239 __ Push(right);
3240 __ CallRuntime(Runtime::kStringEqual);
3241 }
3242 __ sub(eax, Immediate(masm->isolate()->factory()->true_value()));
3243 __ Ret();
3241 } else { 3244 } else {
3245 __ pop(tmp1); // Return address.
3246 __ push(left);
3247 __ push(right);
3248 __ push(tmp1);
3242 __ TailCallRuntime(Runtime::kStringCompare); 3249 __ TailCallRuntime(Runtime::kStringCompare);
3243 } 3250 }
3244 3251
3245 __ bind(&miss); 3252 __ bind(&miss);
3246 GenerateMiss(masm); 3253 GenerateMiss(masm);
3247 } 3254 }
3248 3255
3249 3256
3250 void CompareICStub::GenerateReceivers(MacroAssembler* masm) { 3257 void CompareICStub::GenerateReceivers(MacroAssembler* masm) {
3251 DCHECK_EQ(CompareICState::RECEIVER, state()); 3258 DCHECK_EQ(CompareICState::RECEIVER, state());
(...skipping 2670 matching lines...) Expand 10 before | Expand all | Expand 10 after
5922 return_value_operand, NULL); 5929 return_value_operand, NULL);
5923 } 5930 }
5924 5931
5925 5932
5926 #undef __ 5933 #undef __
5927 5934
5928 } // namespace internal 5935 } // namespace internal
5929 } // namespace v8 5936 } // namespace v8
5930 5937
5931 #endif // V8_TARGET_ARCH_IA32 5938 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/compiler/linkage.cc ('k') | src/interpreter/interpreter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698