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

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

Issue 17064002: Refactor only: Rename JSGlobaPropertyCell to PropertyCell (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 6 months 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/lithium-codegen-arm.cc ('k') | src/bootstrapper.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 2651 matching lines...) Expand 10 before | Expand all | Expand 10 after
2662 GenerateMissBranch(); 2662 GenerateMissBranch();
2663 2663
2664 // Return the generated code. 2664 // Return the generated code.
2665 return GetCode(Code::INTERCEPTOR, name); 2665 return GetCode(Code::INTERCEPTOR, name);
2666 } 2666 }
2667 2667
2668 2668
2669 Handle<Code> CallStubCompiler::CompileCallGlobal( 2669 Handle<Code> CallStubCompiler::CompileCallGlobal(
2670 Handle<JSObject> object, 2670 Handle<JSObject> object,
2671 Handle<GlobalObject> holder, 2671 Handle<GlobalObject> holder,
2672 Handle<JSGlobalPropertyCell> cell, 2672 Handle<PropertyCell> cell,
2673 Handle<JSFunction> function, 2673 Handle<JSFunction> function,
2674 Handle<Name> name) { 2674 Handle<Name> name) {
2675 // ----------- S t a t e ------------- 2675 // ----------- S t a t e -------------
2676 // -- r2 : name 2676 // -- r2 : name
2677 // -- lr : return address 2677 // -- lr : return address
2678 // ----------------------------------- 2678 // -----------------------------------
2679 if (HasCustomCallGenerator(function)) { 2679 if (HasCustomCallGenerator(function)) {
2680 Handle<Code> code = CompileCustomCall( 2680 Handle<Code> code = CompileCustomCall(
2681 object, holder, cell, function, Handle<String>::cast(name)); 2681 object, holder, cell, function, Handle<String>::cast(name));
2682 // A null handle means bail out to the regular compiler code below. 2682 // A null handle means bail out to the regular compiler code below.
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
2835 __ bind(&miss); 2835 __ bind(&miss);
2836 TailCallBuiltin(masm(), MissBuiltin(kind())); 2836 TailCallBuiltin(masm(), MissBuiltin(kind()));
2837 2837
2838 // Return the generated code. 2838 // Return the generated code.
2839 return GetICCode(kind(), Code::INTERCEPTOR, name); 2839 return GetICCode(kind(), Code::INTERCEPTOR, name);
2840 } 2840 }
2841 2841
2842 2842
2843 Handle<Code> StoreStubCompiler::CompileStoreGlobal( 2843 Handle<Code> StoreStubCompiler::CompileStoreGlobal(
2844 Handle<GlobalObject> object, 2844 Handle<GlobalObject> object,
2845 Handle<JSGlobalPropertyCell> cell, 2845 Handle<PropertyCell> cell,
2846 Handle<Name> name) { 2846 Handle<Name> name) {
2847 Label miss; 2847 Label miss;
2848 2848
2849 // Check that the map of the global has not changed. 2849 // Check that the map of the global has not changed.
2850 __ ldr(scratch1(), FieldMemOperand(receiver(), HeapObject::kMapOffset)); 2850 __ ldr(scratch1(), FieldMemOperand(receiver(), HeapObject::kMapOffset));
2851 __ cmp(scratch1(), Operand(Handle<Map>(object->map()))); 2851 __ cmp(scratch1(), Operand(Handle<Map>(object->map())));
2852 __ b(ne, &miss); 2852 __ b(ne, &miss);
2853 2853
2854 // Check that the value in the cell is not the hole. If it is, this 2854 // Check that the value in the cell is not the hole. If it is, this
2855 // cell could have been deleted and reintroducing the global needs 2855 // cell could have been deleted and reintroducing the global needs
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
2979 } 2979 }
2980 2980
2981 2981
2982 #undef __ 2982 #undef __
2983 #define __ ACCESS_MASM(masm()) 2983 #define __ ACCESS_MASM(masm())
2984 2984
2985 2985
2986 Handle<Code> LoadStubCompiler::CompileLoadGlobal( 2986 Handle<Code> LoadStubCompiler::CompileLoadGlobal(
2987 Handle<JSObject> object, 2987 Handle<JSObject> object,
2988 Handle<GlobalObject> global, 2988 Handle<GlobalObject> global,
2989 Handle<JSGlobalPropertyCell> cell, 2989 Handle<PropertyCell> cell,
2990 Handle<Name> name, 2990 Handle<Name> name,
2991 bool is_dont_delete) { 2991 bool is_dont_delete) {
2992 Label success, miss; 2992 Label success, miss;
2993 2993
2994 __ CheckMap( 2994 __ CheckMap(
2995 receiver(), scratch1(), Handle<Map>(object->map()), &miss, DO_SMI_CHECK); 2995 receiver(), scratch1(), Handle<Map>(object->map()), &miss, DO_SMI_CHECK);
2996 HandlerFrontendHeader( 2996 HandlerFrontendHeader(
2997 object, receiver(), Handle<JSObject>::cast(global), name, &miss); 2997 object, receiver(), Handle<JSObject>::cast(global), name, &miss);
2998 2998
2999 // Get the value from the cell. 2999 // Get the value from the cell.
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
3637 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); 3637 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow);
3638 } 3638 }
3639 } 3639 }
3640 3640
3641 3641
3642 #undef __ 3642 #undef __
3643 3643
3644 } } // namespace v8::internal 3644 } } // namespace v8::internal
3645 3645
3646 #endif // V8_TARGET_ARCH_ARM 3646 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/lithium-codegen-arm.cc ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698