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