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_X64 | 7 #if V8_TARGET_ARCH_X64 |
8 | 8 |
9 #include "src/arguments.h" | 9 #include "src/arguments.h" |
10 #include "src/codegen.h" | 10 #include "src/codegen.h" |
(...skipping 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
744 if (!miss->is_unused()) { | 744 if (!miss->is_unused()) { |
745 Label success; | 745 Label success; |
746 __ jmp(&success); | 746 __ jmp(&success); |
747 GenerateRestoreName(miss, name); | 747 GenerateRestoreName(miss, name); |
748 TailCallBuiltin(masm(), MissBuiltin(kind())); | 748 TailCallBuiltin(masm(), MissBuiltin(kind())); |
749 __ bind(&success); | 749 __ bind(&success); |
750 } | 750 } |
751 } | 751 } |
752 | 752 |
753 | 753 |
754 void NamedLoadHandlerCompiler::GenerateLoadField( | |
755 Register reg, FieldIndex field, Representation representation) { | |
756 if (!reg.is(receiver())) __ movp(receiver(), reg); | |
757 LoadFieldStub stub(isolate(), field); | |
758 GenerateTailCall(masm(), stub.GetCode()); | |
759 } | |
760 | |
761 | |
762 void NamedLoadHandlerCompiler::GenerateLoadCallback( | 754 void NamedLoadHandlerCompiler::GenerateLoadCallback( |
763 Register reg, Handle<ExecutableAccessorInfo> callback) { | 755 Register reg, Handle<ExecutableAccessorInfo> callback) { |
764 // Insert additional parameters into the stack frame above return address. | 756 // Insert additional parameters into the stack frame above return address. |
765 DCHECK(!scratch4().is(reg)); | 757 DCHECK(!scratch4().is(reg)); |
766 __ PopReturnAddressTo(scratch4()); | 758 __ PopReturnAddressTo(scratch4()); |
767 | 759 |
768 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 0); | 760 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 0); |
769 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 1); | 761 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 1); |
770 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueDefaultValueIndex == 2); | 762 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueDefaultValueIndex == 2); |
771 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueOffset == 3); | 763 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueOffset == 3); |
(...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1222 // ----------------------------------- | 1214 // ----------------------------------- |
1223 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1215 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1224 } | 1216 } |
1225 | 1217 |
1226 | 1218 |
1227 #undef __ | 1219 #undef __ |
1228 | 1220 |
1229 } } // namespace v8::internal | 1221 } } // namespace v8::internal |
1230 | 1222 |
1231 #endif // V8_TARGET_ARCH_X64 | 1223 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |