OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 2625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2636 #define __ ACCESS_MASM(masm()) | 2636 #define __ ACCESS_MASM(masm()) |
2637 | 2637 |
2638 | 2638 |
2639 Handle<Code> StoreStubCompiler::CompileStoreInterceptor( | 2639 Handle<Code> StoreStubCompiler::CompileStoreInterceptor( |
2640 Handle<JSObject> object, | 2640 Handle<JSObject> object, |
2641 Handle<Name> name) { | 2641 Handle<Name> name) { |
2642 __ PopReturnAddressTo(scratch1()); | 2642 __ PopReturnAddressTo(scratch1()); |
2643 __ push(receiver()); | 2643 __ push(receiver()); |
2644 __ push(this->name()); | 2644 __ push(this->name()); |
2645 __ push(value()); | 2645 __ push(value()); |
2646 __ Push(Smi::FromInt(strict_mode())); | |
2647 __ PushReturnAddressFrom(scratch1()); | 2646 __ PushReturnAddressFrom(scratch1()); |
2648 | 2647 |
2649 // Do tail-call to the runtime system. | 2648 // Do tail-call to the runtime system. |
2650 ExternalReference store_ic_property = | 2649 ExternalReference store_ic_property = |
2651 ExternalReference(IC_Utility(IC::kStoreInterceptorProperty), isolate()); | 2650 ExternalReference(IC_Utility(IC::kStoreInterceptorProperty), isolate()); |
2652 __ TailCallExternalReference(store_ic_property, 4, 1); | 2651 __ TailCallExternalReference(store_ic_property, 3, 1); |
2653 | 2652 |
2654 // Return the generated code. | 2653 // Return the generated code. |
2655 return GetCode(kind(), Code::FAST, name); | 2654 return GetCode(kind(), Code::FAST, name); |
2656 } | 2655 } |
2657 | 2656 |
2658 | 2657 |
2659 Handle<Code> KeyedStoreStubCompiler::CompileStorePolymorphic( | 2658 Handle<Code> KeyedStoreStubCompiler::CompileStorePolymorphic( |
2660 MapHandleList* receiver_maps, | 2659 MapHandleList* receiver_maps, |
2661 CodeHandleList* handler_stubs, | 2660 CodeHandleList* handler_stubs, |
2662 MapHandleList* transitioned_maps) { | 2661 MapHandleList* transitioned_maps) { |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2916 // ----------------------------------- | 2915 // ----------------------------------- |
2917 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); | 2916 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); |
2918 } | 2917 } |
2919 | 2918 |
2920 | 2919 |
2921 #undef __ | 2920 #undef __ |
2922 | 2921 |
2923 } } // namespace v8::internal | 2922 } } // namespace v8::internal |
2924 | 2923 |
2925 #endif // V8_TARGET_ARCH_X64 | 2924 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |