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

Side by Side Diff: src/arm/code-stubs-arm.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/api-natives.cc ('k') | src/ast/ast.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 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_ARM 5 #if V8_TARGET_ARCH_ARM
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 2695 matching lines...) Expand 10 before | Expand all | Expand 10 after
2706 void BinaryOpICWithAllocationSiteStub::Generate(MacroAssembler* masm) { 2706 void BinaryOpICWithAllocationSiteStub::Generate(MacroAssembler* masm) {
2707 // ----------- S t a t e ------------- 2707 // ----------- S t a t e -------------
2708 // -- r1 : left 2708 // -- r1 : left
2709 // -- r0 : right 2709 // -- r0 : right
2710 // -- lr : return address 2710 // -- lr : return address
2711 // ----------------------------------- 2711 // -----------------------------------
2712 2712
2713 // Load r2 with the allocation site. We stick an undefined dummy value here 2713 // Load r2 with the allocation site. We stick an undefined dummy value here
2714 // and replace it with the real allocation site later when we instantiate this 2714 // and replace it with the real allocation site later when we instantiate this
2715 // stub in BinaryOpICWithAllocationSiteStub::GetCodeCopyFromTemplate(). 2715 // stub in BinaryOpICWithAllocationSiteStub::GetCodeCopyFromTemplate().
2716 __ Move(r2, handle(isolate()->heap()->undefined_value())); 2716 __ Move(r2, isolate()->factory()->undefined_value());
2717 2717
2718 // Make sure that we actually patched the allocation site. 2718 // Make sure that we actually patched the allocation site.
2719 if (FLAG_debug_code) { 2719 if (FLAG_debug_code) {
2720 __ tst(r2, Operand(kSmiTagMask)); 2720 __ tst(r2, Operand(kSmiTagMask));
2721 __ Assert(ne, kExpectedAllocationSite); 2721 __ Assert(ne, kExpectedAllocationSite);
2722 __ push(r2); 2722 __ push(r2);
2723 __ ldr(r2, FieldMemOperand(r2, HeapObject::kMapOffset)); 2723 __ ldr(r2, FieldMemOperand(r2, HeapObject::kMapOffset));
2724 __ LoadRoot(ip, Heap::kAllocationSiteMapRootIndex); 2724 __ LoadRoot(ip, Heap::kAllocationSiteMapRootIndex);
2725 __ cmp(r2, ip); 2725 __ cmp(r2, ip);
2726 __ pop(r2); 2726 __ pop(r2);
(...skipping 2711 matching lines...) Expand 10 before | Expand all | Expand 10 after
5438 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 5438 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
5439 kStackUnwindSpace, NULL, return_value_operand, NULL); 5439 kStackUnwindSpace, NULL, return_value_operand, NULL);
5440 } 5440 }
5441 5441
5442 #undef __ 5442 #undef __
5443 5443
5444 } // namespace internal 5444 } // namespace internal
5445 } // namespace v8 5445 } // namespace v8
5446 5446
5447 #endif // V8_TARGET_ARCH_ARM 5447 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/api-natives.cc ('k') | src/ast/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698