| 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 823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 834 if (!miss->is_unused()) { | 834 if (!miss->is_unused()) { |
| 835 Label success; | 835 Label success; |
| 836 __ b(&success); | 836 __ b(&success); |
| 837 GenerateRestoreName(miss, name); | 837 GenerateRestoreName(miss, name); |
| 838 TailCallBuiltin(masm(), MissBuiltin(kind())); | 838 TailCallBuiltin(masm(), MissBuiltin(kind())); |
| 839 __ bind(&success); | 839 __ bind(&success); |
| 840 } | 840 } |
| 841 } | 841 } |
| 842 | 842 |
| 843 | 843 |
| 844 void NamedLoadHandlerCompiler::GenerateLoadField( | |
| 845 Register reg, FieldIndex field, Representation representation) { | |
| 846 if (!reg.is(receiver())) __ mov(receiver(), reg); | |
| 847 LoadFieldStub stub(isolate(), field); | |
| 848 GenerateTailCall(masm(), stub.GetCode()); | |
| 849 } | |
| 850 | |
| 851 | |
| 852 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { | 844 void NamedLoadHandlerCompiler::GenerateLoadConstant(Handle<Object> value) { |
| 853 // Return the constant value. | 845 // Return the constant value. |
| 854 __ Move(r0, value); | 846 __ Move(r0, value); |
| 855 __ Ret(); | 847 __ Ret(); |
| 856 } | 848 } |
| 857 | 849 |
| 858 | 850 |
| 859 void NamedLoadHandlerCompiler::GenerateLoadCallback( | 851 void NamedLoadHandlerCompiler::GenerateLoadCallback( |
| 860 Register reg, Handle<ExecutableAccessorInfo> callback) { | 852 Register reg, Handle<ExecutableAccessorInfo> callback) { |
| 861 // Build AccessorInfo::args_ list on the stack and push property name below | 853 // Build AccessorInfo::args_ list on the stack and push property name below |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1286 | 1278 |
| 1287 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1279 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 1288 } | 1280 } |
| 1289 | 1281 |
| 1290 | 1282 |
| 1291 #undef __ | 1283 #undef __ |
| 1292 | 1284 |
| 1293 } } // namespace v8::internal | 1285 } } // namespace v8::internal |
| 1294 | 1286 |
| 1295 #endif // V8_TARGET_ARCH_ARM | 1287 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |