OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 3057 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3068 __ movq(cache, ContextOperand(rsi, Context::GLOBAL_INDEX)); | 3068 __ movq(cache, ContextOperand(rsi, Context::GLOBAL_INDEX)); |
3069 __ movq(cache, | 3069 __ movq(cache, |
3070 FieldOperand(cache, GlobalObject::kGlobalContextOffset)); | 3070 FieldOperand(cache, GlobalObject::kGlobalContextOffset)); |
3071 __ movq(cache, | 3071 __ movq(cache, |
3072 ContextOperand(cache, Context::JSFUNCTION_RESULT_CACHES_INDEX)); | 3072 ContextOperand(cache, Context::JSFUNCTION_RESULT_CACHES_INDEX)); |
3073 __ movq(cache, | 3073 __ movq(cache, |
3074 FieldOperand(cache, FixedArray::OffsetOfElementAt(cache_id))); | 3074 FieldOperand(cache, FixedArray::OffsetOfElementAt(cache_id))); |
3075 | 3075 |
3076 Label done, not_found; | 3076 Label done, not_found; |
3077 // tmp now holds finger offset as a smi. | 3077 // tmp now holds finger offset as a smi. |
3078 ASSERT(kSmiTag == 0 && kSmiTagSize == 1); | 3078 STATIC_ASSERT(kSmiTag == 0 && kSmiTagSize == 1); |
3079 __ movq(tmp, FieldOperand(cache, JSFunctionResultCache::kFingerOffset)); | 3079 __ movq(tmp, FieldOperand(cache, JSFunctionResultCache::kFingerOffset)); |
3080 SmiIndex index = | 3080 SmiIndex index = |
3081 __ SmiToIndex(kScratchRegister, tmp, kPointerSizeLog2); | 3081 __ SmiToIndex(kScratchRegister, tmp, kPointerSizeLog2); |
3082 __ cmpq(key, FieldOperand(cache, | 3082 __ cmpq(key, FieldOperand(cache, |
3083 index.reg, | 3083 index.reg, |
3084 index.scale, | 3084 index.scale, |
3085 FixedArray::kHeaderSize)); | 3085 FixedArray::kHeaderSize)); |
3086 __ j(not_equal, ¬_found, Label::kNear); | 3086 __ j(not_equal, ¬_found, Label::kNear); |
3087 __ movq(rax, FieldOperand(cache, | 3087 __ movq(rax, FieldOperand(cache, |
3088 index.reg, | 3088 index.reg, |
(...skipping 1052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4141 __ jmp(rdx); | 4141 __ jmp(rdx); |
4142 } | 4142 } |
4143 | 4143 |
4144 | 4144 |
4145 #undef __ | 4145 #undef __ |
4146 | 4146 |
4147 | 4147 |
4148 } } // namespace v8::internal | 4148 } } // namespace v8::internal |
4149 | 4149 |
4150 #endif // V8_TARGET_ARCH_X64 | 4150 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |