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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_ARM64 | 7 #if V8_TARGET_ARCH_ARM64 |
8 | 8 |
9 #include "src/code-factory.h" | 9 #include "src/code-factory.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 3988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3999 | 3999 |
4000 // Load the key and data from the cache. | 4000 // Load the key and data from the cache. |
4001 __ Ldp(x2, x3, MemOperand(x3)); | 4001 __ Ldp(x2, x3, MemOperand(x3)); |
4002 | 4002 |
4003 __ Cmp(key, x2); | 4003 __ Cmp(key, x2); |
4004 __ CmovX(x0, x3, eq); | 4004 __ CmovX(x0, x3, eq); |
4005 __ B(eq, &done); | 4005 __ B(eq, &done); |
4006 | 4006 |
4007 // Call runtime to perform the lookup. | 4007 // Call runtime to perform the lookup. |
4008 __ Push(cache, key); | 4008 __ Push(cache, key); |
4009 __ CallRuntime(Runtime::kGetFromCache, 2); | 4009 __ CallRuntime(Runtime::kGetFromCacheRT, 2); |
4010 | 4010 |
4011 __ Bind(&done); | 4011 __ Bind(&done); |
4012 context()->Plug(x0); | 4012 context()->Plug(x0); |
4013 } | 4013 } |
4014 | 4014 |
4015 | 4015 |
4016 void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) { | 4016 void FullCodeGenerator::EmitHasCachedArrayIndex(CallRuntime* expr) { |
4017 ZoneList<Expression*>* args = expr->arguments(); | 4017 ZoneList<Expression*>* args = expr->arguments(); |
4018 VisitForAccumulatorValue(args->at(0)); | 4018 VisitForAccumulatorValue(args->at(0)); |
4019 | 4019 |
(...skipping 1465 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5485 return previous_; | 5485 return previous_; |
5486 } | 5486 } |
5487 | 5487 |
5488 | 5488 |
5489 #undef __ | 5489 #undef __ |
5490 | 5490 |
5491 | 5491 |
5492 } } // namespace v8::internal | 5492 } } // namespace v8::internal |
5493 | 5493 |
5494 #endif // V8_TARGET_ARCH_ARM64 | 5494 #endif // V8_TARGET_ARCH_ARM64 |
OLD | NEW |