Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: src/ia32/stub-cache-ia32.cc

Issue 95373002: Fetch strictmode in the interceptor setter from the IC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/arm/stub-cache-arm.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 2710 matching lines...) Expand 10 before | Expand all | Expand 10 after
2721 #define __ ACCESS_MASM(masm()) 2721 #define __ ACCESS_MASM(masm())
2722 2722
2723 2723
2724 Handle<Code> StoreStubCompiler::CompileStoreInterceptor( 2724 Handle<Code> StoreStubCompiler::CompileStoreInterceptor(
2725 Handle<JSObject> object, 2725 Handle<JSObject> object,
2726 Handle<Name> name) { 2726 Handle<Name> name) {
2727 __ pop(scratch1()); // remove the return address 2727 __ pop(scratch1()); // remove the return address
2728 __ push(receiver()); 2728 __ push(receiver());
2729 __ push(this->name()); 2729 __ push(this->name());
2730 __ push(value()); 2730 __ push(value());
2731 __ push(Immediate(Smi::FromInt(strict_mode())));
2732 __ push(scratch1()); // restore return address 2731 __ push(scratch1()); // restore return address
2733 2732
2734 // Do tail-call to the runtime system. 2733 // Do tail-call to the runtime system.
2735 ExternalReference store_ic_property = 2734 ExternalReference store_ic_property =
2736 ExternalReference(IC_Utility(IC::kStoreInterceptorProperty), isolate()); 2735 ExternalReference(IC_Utility(IC::kStoreInterceptorProperty), isolate());
2737 __ TailCallExternalReference(store_ic_property, 4, 1); 2736 __ TailCallExternalReference(store_ic_property, 3, 1);
2738 2737
2739 // Return the generated code. 2738 // Return the generated code.
2740 return GetCode(kind(), Code::FAST, name); 2739 return GetCode(kind(), Code::FAST, name);
2741 } 2740 }
2742 2741
2743 2742
2744 Handle<Code> KeyedStoreStubCompiler::CompileStorePolymorphic( 2743 Handle<Code> KeyedStoreStubCompiler::CompileStorePolymorphic(
2745 MapHandleList* receiver_maps, 2744 MapHandleList* receiver_maps,
2746 CodeHandleList* handler_stubs, 2745 CodeHandleList* handler_stubs,
2747 MapHandleList* transitioned_maps) { 2746 MapHandleList* transitioned_maps) {
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
2991 // ----------------------------------- 2990 // -----------------------------------
2992 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 2991 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
2993 } 2992 }
2994 2993
2995 2994
2996 #undef __ 2995 #undef __
2997 2996
2998 } } // namespace v8::internal 2997 } } // namespace v8::internal
2999 2998
3000 #endif // V8_TARGET_ARCH_IA32 2999 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/arm/stub-cache-arm.cc ('k') | src/stub-cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698