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 791 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 if (!miss->is_unused()) { | 802 if (!miss->is_unused()) { |
803 Label success; | 803 Label success; |
804 __ jmp(&success); | 804 __ jmp(&success); |
805 GenerateRestoreName(miss, name); | 805 GenerateRestoreName(miss, name); |
806 TailCallBuiltin(masm(), MissBuiltin(kind())); | 806 TailCallBuiltin(masm(), MissBuiltin(kind())); |
807 __ bind(&success); | 807 __ bind(&success); |
808 } | 808 } |
809 } | 809 } |
810 | 810 |
811 | 811 |
812 void NamedLoadHandlerCompiler::GenerateLoadField( | |
813 Register reg, FieldIndex field, Representation representation) { | |
814 if (!reg.is(receiver())) __ mov(receiver(), reg); | |
815 LoadFieldStub stub(isolate(), field); | |
816 GenerateTailCall(masm(), stub.GetCode()); | |
817 } | |
818 | |
819 | |
820 void NamedLoadHandlerCompiler::GenerateLoadCallback( | 812 void NamedLoadHandlerCompiler::GenerateLoadCallback( |
821 Register reg, Handle<ExecutableAccessorInfo> callback) { | 813 Register reg, Handle<ExecutableAccessorInfo> callback) { |
822 // Insert additional parameters into the stack frame above return address. | 814 // Insert additional parameters into the stack frame above return address. |
823 DCHECK(!scratch3().is(reg)); | 815 DCHECK(!scratch3().is(reg)); |
824 __ pop(scratch3()); // Get return address to place it below. | 816 __ pop(scratch3()); // Get return address to place it below. |
825 | 817 |
826 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 0); | 818 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 0); |
827 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 1); | 819 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 1); |
828 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueDefaultValueIndex == 2); | 820 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueDefaultValueIndex == 2); |
829 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueOffset == 3); | 821 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueOffset == 3); |
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1283 // ----------------------------------- | 1275 // ----------------------------------- |
1284 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1276 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
1285 } | 1277 } |
1286 | 1278 |
1287 | 1279 |
1288 #undef __ | 1280 #undef __ |
1289 | 1281 |
1290 } } // namespace v8::internal | 1282 } } // namespace v8::internal |
1291 | 1283 |
1292 #endif // V8_TARGET_ARCH_X87 | 1284 #endif // V8_TARGET_ARCH_X87 |
OLD | NEW |