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_X87 | 7 #if V8_TARGET_ARCH_X87 |
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 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
810 | 810 |
811 | 811 |
812 void NamedLoadHandlerCompiler::GenerateLoadField( | 812 void NamedLoadHandlerCompiler::GenerateLoadField( |
813 Register reg, FieldIndex field, Representation representation) { | 813 Register reg, FieldIndex field, Representation representation) { |
814 if (!reg.is(receiver())) __ mov(receiver(), reg); | 814 if (!reg.is(receiver())) __ mov(receiver(), reg); |
815 LoadFieldStub stub(isolate(), field); | 815 LoadFieldStub stub(isolate(), field); |
816 GenerateTailCall(masm(), stub.GetCode()); | 816 GenerateTailCall(masm(), stub.GetCode()); |
817 } | 817 } |
818 | 818 |
819 | 819 |
| 820 void NamedLoadHandlerCompiler::GenerateLoadConstant(Register reg, |
| 821 int constant_index) { |
| 822 if (!reg.is(receiver())) __ mov(receiver(), reg); |
| 823 LoadConstantStub stub(isolate(), constant_index); |
| 824 GenerateTailCall(masm(), stub.GetCode()); |
| 825 } |
| 826 |
| 827 |
820 void NamedLoadHandlerCompiler::GenerateLoadCallback( | 828 void NamedLoadHandlerCompiler::GenerateLoadCallback( |
821 Register reg, Handle<ExecutableAccessorInfo> callback) { | 829 Register reg, Handle<ExecutableAccessorInfo> callback) { |
822 // Insert additional parameters into the stack frame above return address. | 830 // Insert additional parameters into the stack frame above return address. |
823 DCHECK(!scratch3().is(reg)); | 831 DCHECK(!scratch3().is(reg)); |
824 __ pop(scratch3()); // Get return address to place it below. | 832 __ pop(scratch3()); // Get return address to place it below. |
825 | 833 |
826 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 0); | 834 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 0); |
827 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 1); | 835 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 1); |
828 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueDefaultValueIndex == 2); | 836 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueDefaultValueIndex == 2); |
829 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueOffset == 3); | 837 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueOffset == 3); |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1283 // ----------------------------------- | 1291 // ----------------------------------- |
1284 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1292 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1285 } | 1293 } |
1286 | 1294 |
1287 | 1295 |
1288 #undef __ | 1296 #undef __ |
1289 | 1297 |
1290 } } // namespace v8::internal | 1298 } } // namespace v8::internal |
1291 | 1299 |
1292 #endif // V8_TARGET_ARCH_X87 | 1300 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |