| 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/codegen.h" | 9 #include "src/codegen.h" |
| 10 #include "src/ic-inl.h" | 10 #include "src/ic-inl.h" |
| (...skipping 779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 __ B(&success); | 790 __ B(&success); |
| 791 | 791 |
| 792 GenerateRestoreName(miss, name); | 792 GenerateRestoreName(miss, name); |
| 793 TailCallBuiltin(masm(), MissBuiltin(kind())); | 793 TailCallBuiltin(masm(), MissBuiltin(kind())); |
| 794 | 794 |
| 795 __ Bind(&success); | 795 __ Bind(&success); |
| 796 } | 796 } |
| 797 } | 797 } |
| 798 | 798 |
| 799 | 799 |
| 800 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { |
| 801 // Return the constant value. |
| 802 __ LoadObject(x0, value); |
| 803 __ Ret(); |
| 804 } |
| 805 |
| 806 |
| 800 void NamedLoadHandlerCompiler::GenerateLoadCallback( | 807 void NamedLoadHandlerCompiler::GenerateLoadCallback( |
| 801 Register reg, Handle<ExecutableAccessorInfo> callback) { | 808 Register reg, Handle<ExecutableAccessorInfo> callback) { |
| 802 DCHECK(!AreAliased(scratch2(), scratch3(), scratch4(), reg)); | 809 DCHECK(!AreAliased(scratch2(), scratch3(), scratch4(), reg)); |
| 803 | 810 |
| 804 // Build ExecutableAccessorInfo::args_ list on the stack and push property | 811 // Build ExecutableAccessorInfo::args_ list on the stack and push property |
| 805 // name below the exit frame to make GC aware of them and store pointers to | 812 // name below the exit frame to make GC aware of them and store pointers to |
| 806 // them. | 813 // them. |
| 807 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 0); | 814 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 0); |
| 808 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 1); | 815 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 1); |
| 809 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueDefaultValueIndex == 2); | 816 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueDefaultValueIndex == 2); |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1241 | 1248 |
| 1242 // Miss case, call the runtime. | 1249 // Miss case, call the runtime. |
| 1243 __ Bind(&miss); | 1250 __ Bind(&miss); |
| 1244 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1251 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 1245 } | 1252 } |
| 1246 | 1253 |
| 1247 | 1254 |
| 1248 } } // namespace v8::internal | 1255 } } // namespace v8::internal |
| 1249 | 1256 |
| 1250 #endif // V8_TARGET_ARCH_ARM64 | 1257 #endif // V8_TARGET_ARCH_ARM64 |
| OLD | NEW |