OLD | NEW |
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-factory.h" | 7 #include "src/code-factory.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/compiler.h" | 10 #include "src/compiler.h" |
(...skipping 3443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3454 __ addi(r7, r7, Operand(DescriptorArray::kFirstOffset - kHeapObjectTag)); | 3454 __ addi(r7, r7, Operand(DescriptorArray::kFirstOffset - kHeapObjectTag)); |
3455 // Calculate the end of the descriptor array. | 3455 // Calculate the end of the descriptor array. |
3456 __ mr(r5, r7); | 3456 __ mr(r5, r7); |
3457 __ ShiftLeftImm(ip, r6, Operand(kPointerSizeLog2)); | 3457 __ ShiftLeftImm(ip, r6, Operand(kPointerSizeLog2)); |
3458 __ add(r5, r5, ip); | 3458 __ add(r5, r5, ip); |
3459 | 3459 |
3460 // Loop through all the keys in the descriptor array. If one of these is the | 3460 // Loop through all the keys in the descriptor array. If one of these is the |
3461 // string "valueOf" the result is false. | 3461 // string "valueOf" the result is false. |
3462 // The use of ip to store the valueOf string assumes that it is not otherwise | 3462 // The use of ip to store the valueOf string assumes that it is not otherwise |
3463 // used in the loop below. | 3463 // used in the loop below. |
3464 __ mov(ip, Operand(isolate()->factory()->value_of_string())); | 3464 __ LoadRoot(ip, Heap::kvalueOf_stringRootIndex); |
3465 __ b(&entry); | 3465 __ b(&entry); |
3466 __ bind(&loop); | 3466 __ bind(&loop); |
3467 __ LoadP(r6, MemOperand(r7, 0)); | 3467 __ LoadP(r6, MemOperand(r7, 0)); |
3468 __ cmp(r6, ip); | 3468 __ cmp(r6, ip); |
3469 __ beq(if_false); | 3469 __ beq(if_false); |
3470 __ addi(r7, r7, Operand(DescriptorArray::kDescriptorSize * kPointerSize)); | 3470 __ addi(r7, r7, Operand(DescriptorArray::kDescriptorSize * kPointerSize)); |
3471 __ bind(&entry); | 3471 __ bind(&entry); |
3472 __ cmp(r7, r5); | 3472 __ cmp(r7, r5); |
3473 __ bne(&loop); | 3473 __ bne(&loop); |
3474 | 3474 |
(...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5323 return ON_STACK_REPLACEMENT; | 5323 return ON_STACK_REPLACEMENT; |
5324 } | 5324 } |
5325 | 5325 |
5326 DCHECK(interrupt_address == | 5326 DCHECK(interrupt_address == |
5327 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5327 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5328 return OSR_AFTER_STACK_CHECK; | 5328 return OSR_AFTER_STACK_CHECK; |
5329 } | 5329 } |
5330 } // namespace internal | 5330 } // namespace internal |
5331 } // namespace v8 | 5331 } // namespace v8 |
5332 #endif // V8_TARGET_ARCH_PPC | 5332 #endif // V8_TARGET_ARCH_PPC |
OLD | NEW |