OLD | NEW |
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-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 3450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3461 // Calculate location of the first key name. | 3461 // Calculate location of the first key name. |
3462 __ add(r4, r4, Operand(DescriptorArray::kFirstOffset - kHeapObjectTag)); | 3462 __ add(r4, r4, Operand(DescriptorArray::kFirstOffset - kHeapObjectTag)); |
3463 // Calculate the end of the descriptor array. | 3463 // Calculate the end of the descriptor array. |
3464 __ mov(r2, r4); | 3464 __ mov(r2, r4); |
3465 __ add(r2, r2, Operand(r3, LSL, kPointerSizeLog2)); | 3465 __ add(r2, r2, Operand(r3, LSL, kPointerSizeLog2)); |
3466 | 3466 |
3467 // Loop through all the keys in the descriptor array. If one of these is the | 3467 // Loop through all the keys in the descriptor array. If one of these is the |
3468 // string "valueOf" the result is false. | 3468 // string "valueOf" the result is false. |
3469 // The use of ip to store the valueOf string assumes that it is not otherwise | 3469 // The use of ip to store the valueOf string assumes that it is not otherwise |
3470 // used in the loop below. | 3470 // used in the loop below. |
3471 __ mov(ip, Operand(isolate()->factory()->value_of_string())); | 3471 __ LoadRoot(ip, Heap::kvalueOf_stringRootIndex); |
3472 __ jmp(&entry); | 3472 __ jmp(&entry); |
3473 __ bind(&loop); | 3473 __ bind(&loop); |
3474 __ ldr(r3, MemOperand(r4, 0)); | 3474 __ ldr(r3, MemOperand(r4, 0)); |
3475 __ cmp(r3, ip); | 3475 __ cmp(r3, ip); |
3476 __ b(eq, if_false); | 3476 __ b(eq, if_false); |
3477 __ add(r4, r4, Operand(DescriptorArray::kDescriptorSize * kPointerSize)); | 3477 __ add(r4, r4, Operand(DescriptorArray::kDescriptorSize * kPointerSize)); |
3478 __ bind(&entry); | 3478 __ bind(&entry); |
3479 __ cmp(r4, Operand(r2)); | 3479 __ cmp(r4, Operand(r2)); |
3480 __ b(ne, &loop); | 3480 __ b(ne, &loop); |
3481 | 3481 |
(...skipping 1894 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5376 DCHECK(interrupt_address == | 5376 DCHECK(interrupt_address == |
5377 isolate->builtins()->OsrAfterStackCheck()->entry()); | 5377 isolate->builtins()->OsrAfterStackCheck()->entry()); |
5378 return OSR_AFTER_STACK_CHECK; | 5378 return OSR_AFTER_STACK_CHECK; |
5379 } | 5379 } |
5380 | 5380 |
5381 | 5381 |
5382 } // namespace internal | 5382 } // namespace internal |
5383 } // namespace v8 | 5383 } // namespace v8 |
5384 | 5384 |
5385 #endif // V8_TARGET_ARCH_ARM | 5385 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |