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

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

Issue 2313093002: [stubs] Port StoreTransitionStub and ElementsTransitionAndStoreStub to TurboFan. (Closed)
Patch Set: Addressing comments Created 4 years, 3 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/mips64/interface-descriptors-mips64.cc ('k') | src/ppc/interface-descriptors-ppc.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_PPC 5 #if V8_TARGET_ARCH_PPC
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 3794 matching lines...) Expand 10 before | Expand all | Expand 10 after
3805 __ addi(ip, pointer_reg, Operand(Code::kHeaderSize - kHeapObjectTag)); 3805 __ addi(ip, pointer_reg, Operand(Code::kHeaderSize - kHeapObjectTag));
3806 __ Jump(ip); 3806 __ Jump(ip);
3807 3807
3808 __ bind(&transition_call); 3808 __ bind(&transition_call);
3809 __ LoadP(too_far, FieldMemOperand(too_far, WeakCell::kValueOffset)); 3809 __ LoadP(too_far, FieldMemOperand(too_far, WeakCell::kValueOffset));
3810 __ JumpIfSmi(too_far, miss); 3810 __ JumpIfSmi(too_far, miss);
3811 3811
3812 __ LoadP(receiver_map, MemOperand(pointer_reg, kPointerSize * 2)); 3812 __ LoadP(receiver_map, MemOperand(pointer_reg, kPointerSize * 2));
3813 3813
3814 // Load the map into the correct register. 3814 // Load the map into the correct register.
3815 DCHECK(feedback.is(VectorStoreTransitionDescriptor::MapRegister())); 3815 DCHECK(feedback.is(StoreTransitionDescriptor::MapRegister()));
3816 __ mr(feedback, too_far); 3816 __ mr(feedback, too_far);
3817 3817
3818 __ addi(ip, receiver_map, Operand(Code::kHeaderSize - kHeapObjectTag)); 3818 __ addi(ip, receiver_map, Operand(Code::kHeaderSize - kHeapObjectTag));
3819 __ Jump(ip); 3819 __ Jump(ip);
3820 3820
3821 __ bind(&prepare_next); 3821 __ bind(&prepare_next);
3822 __ addi(pointer_reg, pointer_reg, Operand(kPointerSize * 3)); 3822 __ addi(pointer_reg, pointer_reg, Operand(kPointerSize * 3));
3823 __ cmpl(pointer_reg, too_far); 3823 __ cmpl(pointer_reg, too_far);
3824 __ blt(&next_loop); 3824 __ blt(&next_loop);
3825 3825
(...skipping 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after
5430 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize); 5430 fp, (PropertyCallbackArguments::kReturnValueOffset + 3) * kPointerSize);
5431 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref, 5431 CallApiFunctionAndReturn(masm, api_function_address, thunk_ref,
5432 kStackUnwindSpace, NULL, return_value_operand, NULL); 5432 kStackUnwindSpace, NULL, return_value_operand, NULL);
5433 } 5433 }
5434 5434
5435 #undef __ 5435 #undef __
5436 } // namespace internal 5436 } // namespace internal
5437 } // namespace v8 5437 } // namespace v8
5438 5438
5439 #endif // V8_TARGET_ARCH_PPC 5439 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « src/mips64/interface-descriptors-mips64.cc ('k') | src/ppc/interface-descriptors-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698