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