OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_ARM | 7 #if V8_TARGET_ARCH_ARM |
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 831 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
842 | 842 |
843 | 843 |
844 void NamedLoadHandlerCompiler::GenerateLoadField( | 844 void NamedLoadHandlerCompiler::GenerateLoadField( |
845 Register reg, FieldIndex field, Representation representation) { | 845 Register reg, FieldIndex field, Representation representation) { |
846 if (!reg.is(receiver())) __ mov(receiver(), reg); | 846 if (!reg.is(receiver())) __ mov(receiver(), reg); |
847 LoadFieldStub stub(isolate(), field); | 847 LoadFieldStub stub(isolate(), field); |
848 GenerateTailCall(masm(), stub.GetCode()); | 848 GenerateTailCall(masm(), stub.GetCode()); |
849 } | 849 } |
850 | 850 |
851 | 851 |
852 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { | 852 void NamedLoadHandlerCompiler::GenerateLoadConstant(Register reg, |
853 // Return the constant value. | 853 int constant_index) { |
854 __ Move(r0, value); | 854 if (!reg.is(receiver())) __ mov(receiver(), reg); |
855 __ Ret(); | 855 LoadConstantStub stub(isolate(), constant_index); |
| 856 GenerateTailCall(masm(), stub.GetCode()); |
856 } | 857 } |
857 | 858 |
858 | 859 |
859 void NamedLoadHandlerCompiler::GenerateLoadCallback( | 860 void NamedLoadHandlerCompiler::GenerateLoadCallback( |
860 Register reg, Handle<ExecutableAccessorInfo> callback) { | 861 Register reg, Handle<ExecutableAccessorInfo> callback) { |
861 // Build AccessorInfo::args_ list on the stack and push property name below | 862 // Build AccessorInfo::args_ list on the stack and push property name below |
862 // the exit frame to make GC aware of them and store pointers to them. | 863 // the exit frame to make GC aware of them and store pointers to them. |
863 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 0); | 864 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 0); |
864 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 1); | 865 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 1); |
865 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueDefaultValueIndex == 2); | 866 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueDefaultValueIndex == 2); |
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1286 | 1287 |
1287 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1288 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1288 } | 1289 } |
1289 | 1290 |
1290 | 1291 |
1291 #undef __ | 1292 #undef __ |
1292 | 1293 |
1293 } } // namespace v8::internal | 1294 } } // namespace v8::internal |
1294 | 1295 |
1295 #endif // V8_TARGET_ARCH_ARM | 1296 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |