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

Side by Side Diff: src/mips64/code-stubs-mips64.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/mips/code-stubs-mips.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 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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 #include "src/bootstrapper.h" 7 #include "src/bootstrapper.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/ic/handler-compiler.h" 10 #include "src/ic/handler-compiler.h"
(...skipping 3344 matching lines...) Expand 10 before | Expand all | Expand 10 after
3355 if (equality) { 3355 if (equality) {
3356 StringHelper::GenerateFlatOneByteStringEquals(masm, left, right, tmp1, tmp2, 3356 StringHelper::GenerateFlatOneByteStringEquals(masm, left, right, tmp1, tmp2,
3357 tmp3); 3357 tmp3);
3358 } else { 3358 } else {
3359 StringHelper::GenerateCompareFlatOneByteStrings(masm, left, right, tmp1, 3359 StringHelper::GenerateCompareFlatOneByteStrings(masm, left, right, tmp1,
3360 tmp2, tmp3, tmp4); 3360 tmp2, tmp3, tmp4);
3361 } 3361 }
3362 3362
3363 // Handle more complex cases in runtime. 3363 // Handle more complex cases in runtime.
3364 __ bind(&runtime); 3364 __ bind(&runtime);
3365 __ Push(left, right);
3366 if (equality) { 3365 if (equality) {
3367 __ TailCallRuntime(Runtime::kStringEquals); 3366 {
3367 FrameScope scope(masm, StackFrame::INTERNAL);
3368 __ Push(left, right);
3369 __ CallRuntime(Runtime::kStringEqual);
3370 }
3371 __ LoadRoot(a0, Heap::kTrueValueRootIndex);
3372 __ Ret(USE_DELAY_SLOT);
3373 __ Subu(v0, v0, a0); // In delay slot.
3368 } else { 3374 } else {
3375 __ Push(left, right);
3369 __ TailCallRuntime(Runtime::kStringCompare); 3376 __ TailCallRuntime(Runtime::kStringCompare);
3370 } 3377 }
3371 3378
3372 __ bind(&miss); 3379 __ bind(&miss);
3373 GenerateMiss(masm); 3380 GenerateMiss(masm);
3374 } 3381 }
3375 3382
3376 3383
3377 void CompareICStub::GenerateReceivers(MacroAssembler* masm) { 3384 void CompareICStub::GenerateReceivers(MacroAssembler* masm) {
3378 DCHECK_EQ(CompareICState::RECEIVER, state()); 3385 DCHECK_EQ(CompareICState::RECEIVER, state());
(...skipping 2444 matching lines...) Expand 10 before | Expand all | Expand 10 after
5823 return_value_operand, NULL); 5830 return_value_operand, NULL);
5824 } 5831 }
5825 5832
5826 5833
5827 #undef __ 5834 #undef __
5828 5835
5829 } // namespace internal 5836 } // namespace internal
5830 } // namespace v8 5837 } // namespace v8
5831 5838
5832 #endif // V8_TARGET_ARCH_MIPS64 5839 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698