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

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

Issue 96043003: MIPS: 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 | « no previous file | no next file » | 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 2601 matching lines...) Expand 10 before | Expand all | Expand 10 after
2612 if (object->IsJSGlobalProxy()) { 2612 if (object->IsJSGlobalProxy()) {
2613 __ CheckAccessGlobalProxy(receiver(), scratch1(), &miss); 2613 __ CheckAccessGlobalProxy(receiver(), scratch1(), &miss);
2614 } 2614 }
2615 2615
2616 // Stub is never generated for non-global objects that require access 2616 // Stub is never generated for non-global objects that require access
2617 // checks. 2617 // checks.
2618 ASSERT(object->IsJSGlobalProxy() || !object->IsAccessCheckNeeded()); 2618 ASSERT(object->IsJSGlobalProxy() || !object->IsAccessCheckNeeded());
2619 2619
2620 __ Push(receiver(), this->name(), value()); 2620 __ Push(receiver(), this->name(), value());
2621 2621
2622 __ li(scratch1(), Operand(Smi::FromInt(strict_mode())));
2623 __ push(scratch1()); // strict mode
2624
2625 // Do tail-call to the runtime system. 2622 // Do tail-call to the runtime system.
2626 ExternalReference store_ic_property = 2623 ExternalReference store_ic_property =
2627 ExternalReference(IC_Utility(IC::kStoreInterceptorProperty), isolate()); 2624 ExternalReference(IC_Utility(IC::kStoreInterceptorProperty), isolate());
2628 __ TailCallExternalReference(store_ic_property, 4, 1); 2625 __ TailCallExternalReference(store_ic_property, 3, 1);
2629 2626
2630 // Handle store cache miss. 2627 // Handle store cache miss.
2631 __ bind(&miss); 2628 __ bind(&miss);
2632 TailCallBuiltin(masm(), MissBuiltin(kind())); 2629 TailCallBuiltin(masm(), MissBuiltin(kind()));
2633 2630
2634 // Return the generated code. 2631 // Return the generated code.
2635 return GetCode(kind(), Code::FAST, name); 2632 return GetCode(kind(), Code::FAST, name);
2636 } 2633 }
2637 2634
2638 2635
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
2885 // ----------------------------------- 2882 // -----------------------------------
2886 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 2883 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
2887 } 2884 }
2888 2885
2889 2886
2890 #undef __ 2887 #undef __
2891 2888
2892 } } // namespace v8::internal 2889 } } // namespace v8::internal
2893 2890
2894 #endif // V8_TARGET_ARCH_MIPS 2891 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698