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

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

Issue 2028983002: Introduce IsUndefined(Isolate*) and IsTheHole(Isolate*) (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase master Created 4 years, 6 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/runtime/runtime-symbol.cc ('k') | src/snapshot/partial-serializer.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_S390 5 #if V8_TARGET_ARCH_S390
6 6
7 #include "src/code-stubs.h" 7 #include "src/code-stubs.h"
8 #include "src/api-arguments.h" 8 #include "src/api-arguments.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 2775 matching lines...) Expand 10 before | Expand all | Expand 10 after
2786 void BinaryOpICWithAllocationSiteStub::Generate(MacroAssembler* masm) { 2786 void BinaryOpICWithAllocationSiteStub::Generate(MacroAssembler* masm) {
2787 // ----------- S t a t e ------------- 2787 // ----------- S t a t e -------------
2788 // -- r3 : left 2788 // -- r3 : left
2789 // -- r2 : right 2789 // -- r2 : right
2790 // r3: second string 2790 // r3: second string
2791 // ----------------------------------- 2791 // -----------------------------------
2792 2792
2793 // Load r4 with the allocation site. We stick an undefined dummy value here 2793 // Load r4 with the allocation site. We stick an undefined dummy value here
2794 // and replace it with the real allocation site later when we instantiate this 2794 // and replace it with the real allocation site later when we instantiate this
2795 // stub in BinaryOpICWithAllocationSiteStub::GetCodeCopyFromTemplate(). 2795 // stub in BinaryOpICWithAllocationSiteStub::GetCodeCopyFromTemplate().
2796 __ Move(r4, handle(isolate()->heap()->undefined_value())); 2796 __ Move(r4, isolate()->factory()->undefined_value());
2797 2797
2798 // Make sure that we actually patched the allocation site. 2798 // Make sure that we actually patched the allocation site.
2799 if (FLAG_debug_code) { 2799 if (FLAG_debug_code) {
2800 __ TestIfSmi(r4); 2800 __ TestIfSmi(r4);
2801 __ Assert(ne, kExpectedAllocationSite, cr0); 2801 __ Assert(ne, kExpectedAllocationSite, cr0);
2802 __ push(r4); 2802 __ push(r4);
2803 __ LoadP(r4, FieldMemOperand(r4, HeapObject::kMapOffset)); 2803 __ LoadP(r4, FieldMemOperand(r4, HeapObject::kMapOffset));
2804 __ CompareRoot(r4, Heap::kAllocationSiteMapRootIndex); 2804 __ CompareRoot(r4, Heap::kAllocationSiteMapRootIndex);
2805 __ pop(r4); 2805 __ pop(r4);
2806 __ Assert(eq, kExpectedAllocationSite); 2806 __ Assert(eq, kExpectedAllocationSite);
(...skipping 2793 matching lines...) Expand 10 before | Expand all | Expand 10 after
5600 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 5600 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
5601 kStackUnwindSpace, NULL, return_value_operand, NULL); 5601 kStackUnwindSpace, NULL, return_value_operand, NULL);
5602 } 5602 }
5603 5603
5604 #undef __ 5604 #undef __
5605 5605
5606 } // namespace internal 5606 } // namespace internal
5607 } // namespace v8 5607 } // namespace v8
5608 5608
5609 #endif // V8_TARGET_ARCH_S390 5609 #endif // V8_TARGET_ARCH_S390
OLDNEW
« no previous file with comments | « src/runtime/runtime-symbol.cc ('k') | src/snapshot/partial-serializer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698