| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 3747 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3758 Register tmp = rcx; | 3758 Register tmp = rcx; |
| 3759 __ movp(cache, ContextOperand(rsi, Context::GLOBAL_OBJECT_INDEX)); | 3759 __ movp(cache, ContextOperand(rsi, Context::GLOBAL_OBJECT_INDEX)); |
| 3760 __ movp(cache, | 3760 __ movp(cache, |
| 3761 FieldOperand(cache, GlobalObject::kNativeContextOffset)); | 3761 FieldOperand(cache, GlobalObject::kNativeContextOffset)); |
| 3762 __ movp(cache, | 3762 __ movp(cache, |
| 3763 ContextOperand(cache, Context::JSFUNCTION_RESULT_CACHES_INDEX)); | 3763 ContextOperand(cache, Context::JSFUNCTION_RESULT_CACHES_INDEX)); |
| 3764 __ movp(cache, | 3764 __ movp(cache, |
| 3765 FieldOperand(cache, FixedArray::OffsetOfElementAt(cache_id))); | 3765 FieldOperand(cache, FixedArray::OffsetOfElementAt(cache_id))); |
| 3766 | 3766 |
| 3767 Label done, not_found; | 3767 Label done, not_found; |
| 3768 // tmp now holds finger offset as a smi. | |
| 3769 STATIC_ASSERT(kSmiTag == 0 && kSmiTagSize == 1); | 3768 STATIC_ASSERT(kSmiTag == 0 && kSmiTagSize == 1); |
| 3770 __ movp(tmp, FieldOperand(cache, JSFunctionResultCache::kFingerOffset)); | 3769 __ movp(tmp, FieldOperand(cache, JSFunctionResultCache::kFingerOffset)); |
| 3770 // tmp now holds finger offset as a smi. |
| 3771 SmiIndex index = | 3771 SmiIndex index = |
| 3772 __ SmiToIndex(kScratchRegister, tmp, kPointerSizeLog2); | 3772 __ SmiToIndex(kScratchRegister, tmp, kPointerSizeLog2); |
| 3773 __ cmpq(key, FieldOperand(cache, | 3773 __ cmpq(key, FieldOperand(cache, |
| 3774 index.reg, | 3774 index.reg, |
| 3775 index.scale, | 3775 index.scale, |
| 3776 FixedArray::kHeaderSize)); | 3776 FixedArray::kHeaderSize)); |
| 3777 __ j(not_equal, ¬_found, Label::kNear); | 3777 __ j(not_equal, ¬_found, Label::kNear); |
| 3778 __ movp(rax, FieldOperand(cache, | 3778 __ movp(rax, FieldOperand(cache, |
| 3779 index.reg, | 3779 index.reg, |
| 3780 index.scale, | 3780 index.scale, |
| (...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4907 | 4907 |
| 4908 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4908 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 4909 Assembler::target_address_at(call_target_address)); | 4909 Assembler::target_address_at(call_target_address)); |
| 4910 return OSR_AFTER_STACK_CHECK; | 4910 return OSR_AFTER_STACK_CHECK; |
| 4911 } | 4911 } |
| 4912 | 4912 |
| 4913 | 4913 |
| 4914 } } // namespace v8::internal | 4914 } } // namespace v8::internal |
| 4915 | 4915 |
| 4916 #endif // V8_TARGET_ARCH_X64 | 4916 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |