OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_X64 | 5 #if V8_TARGET_ARCH_X64 |
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/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 3514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3525 __ movp(cached_map, FieldOperand(feedback, counter, times_pointer_size, | 3525 __ movp(cached_map, FieldOperand(feedback, counter, times_pointer_size, |
3526 FixedArray::kHeaderSize + kPointerSize)); | 3526 FixedArray::kHeaderSize + kPointerSize)); |
3527 __ CompareRoot(cached_map, Heap::kUndefinedValueRootIndex); | 3527 __ CompareRoot(cached_map, Heap::kUndefinedValueRootIndex); |
3528 __ j(not_equal, &transition_call); | 3528 __ j(not_equal, &transition_call); |
3529 __ movp(feedback, FieldOperand(feedback, counter, times_pointer_size, | 3529 __ movp(feedback, FieldOperand(feedback, counter, times_pointer_size, |
3530 FixedArray::kHeaderSize + 2 * kPointerSize)); | 3530 FixedArray::kHeaderSize + 2 * kPointerSize)); |
3531 __ leap(feedback, FieldOperand(feedback, Code::kHeaderSize)); | 3531 __ leap(feedback, FieldOperand(feedback, Code::kHeaderSize)); |
3532 __ jmp(feedback); | 3532 __ jmp(feedback); |
3533 | 3533 |
3534 __ bind(&transition_call); | 3534 __ bind(&transition_call); |
3535 DCHECK(receiver_map.is(VectorStoreTransitionDescriptor::MapRegister())); | 3535 DCHECK(receiver_map.is(StoreTransitionDescriptor::MapRegister())); |
3536 __ movp(receiver_map, FieldOperand(cached_map, WeakCell::kValueOffset)); | 3536 __ movp(receiver_map, FieldOperand(cached_map, WeakCell::kValueOffset)); |
3537 // The weak cell may have been cleared. | 3537 // The weak cell may have been cleared. |
3538 __ JumpIfSmi(receiver_map, miss); | 3538 __ JumpIfSmi(receiver_map, miss); |
3539 // Get the handler in value. | 3539 // Get the handler in value. |
3540 __ movp(feedback, FieldOperand(feedback, counter, times_pointer_size, | 3540 __ movp(feedback, FieldOperand(feedback, counter, times_pointer_size, |
3541 FixedArray::kHeaderSize + 2 * kPointerSize)); | 3541 FixedArray::kHeaderSize + 2 * kPointerSize)); |
3542 __ leap(feedback, FieldOperand(feedback, Code::kHeaderSize)); | 3542 __ leap(feedback, FieldOperand(feedback, Code::kHeaderSize)); |
3543 __ jmp(feedback); | 3543 __ jmp(feedback); |
3544 | 3544 |
3545 __ bind(&prepare_next); | 3545 __ bind(&prepare_next); |
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5161 kStackUnwindSpace, nullptr, return_value_operand, | 5161 kStackUnwindSpace, nullptr, return_value_operand, |
5162 NULL); | 5162 NULL); |
5163 } | 5163 } |
5164 | 5164 |
5165 #undef __ | 5165 #undef __ |
5166 | 5166 |
5167 } // namespace internal | 5167 } // namespace internal |
5168 } // namespace v8 | 5168 } // namespace v8 |
5169 | 5169 |
5170 #endif // V8_TARGET_ARCH_X64 | 5170 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |