| 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 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 752 | 752 |
| 753 | 753 |
| 754 void NamedLoadHandlerCompiler::GenerateLoadField( | 754 void NamedLoadHandlerCompiler::GenerateLoadField( |
| 755 Register reg, FieldIndex field, Representation representation) { | 755 Register reg, FieldIndex field, Representation representation) { |
| 756 if (!reg.is(receiver())) __ movp(receiver(), reg); | 756 if (!reg.is(receiver())) __ movp(receiver(), reg); |
| 757 LoadFieldStub stub(isolate(), field); | 757 LoadFieldStub stub(isolate(), field); |
| 758 GenerateTailCall(masm(), stub.GetCode()); | 758 GenerateTailCall(masm(), stub.GetCode()); |
| 759 } | 759 } |
| 760 | 760 |
| 761 | 761 |
| 762 void NamedLoadHandlerCompiler::GenerateLoadConstant(Register reg, |
| 763 int constant_index) { |
| 764 if (!reg.is(receiver())) __ movp(receiver(), reg); |
| 765 LoadConstantStub stub(isolate(), constant_index); |
| 766 GenerateTailCall(masm(), stub.GetCode()); |
| 767 } |
| 768 |
| 769 |
| 762 void NamedLoadHandlerCompiler::GenerateLoadCallback( | 770 void NamedLoadHandlerCompiler::GenerateLoadCallback( |
| 763 Register reg, Handle<ExecutableAccessorInfo> callback) { | 771 Register reg, Handle<ExecutableAccessorInfo> callback) { |
| 764 // Insert additional parameters into the stack frame above return address. | 772 // Insert additional parameters into the stack frame above return address. |
| 765 DCHECK(!scratch4().is(reg)); | 773 DCHECK(!scratch4().is(reg)); |
| 766 __ PopReturnAddressTo(scratch4()); | 774 __ PopReturnAddressTo(scratch4()); |
| 767 | 775 |
| 768 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 0); | 776 STATIC_ASSERT(PropertyCallbackArguments::kHolderIndex == 0); |
| 769 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 1); | 777 STATIC_ASSERT(PropertyCallbackArguments::kIsolateIndex == 1); |
| 770 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueDefaultValueIndex == 2); | 778 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueDefaultValueIndex == 2); |
| 771 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueOffset == 3); | 779 STATIC_ASSERT(PropertyCallbackArguments::kReturnValueOffset == 3); |
| (...skipping 450 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1222 // ----------------------------------- | 1230 // ----------------------------------- |
| 1223 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 1231 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
| 1224 } | 1232 } |
| 1225 | 1233 |
| 1226 | 1234 |
| 1227 #undef __ | 1235 #undef __ |
| 1228 | 1236 |
| 1229 } } // namespace v8::internal | 1237 } } // namespace v8::internal |
| 1230 | 1238 |
| 1231 #endif // V8_TARGET_ARCH_X64 | 1239 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |