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

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

Issue 17064007: MIPS: 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/mips/lithium-codegen-mips.cc ('k') | 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 2728 matching lines...) Expand 10 before | Expand all | Expand 10 after
2739 GenerateMissBranch(); 2739 GenerateMissBranch();
2740 2740
2741 // Return the generated code. 2741 // Return the generated code.
2742 return GetCode(Code::INTERCEPTOR, name); 2742 return GetCode(Code::INTERCEPTOR, name);
2743 } 2743 }
2744 2744
2745 2745
2746 Handle<Code> CallStubCompiler::CompileCallGlobal( 2746 Handle<Code> CallStubCompiler::CompileCallGlobal(
2747 Handle<JSObject> object, 2747 Handle<JSObject> object,
2748 Handle<GlobalObject> holder, 2748 Handle<GlobalObject> holder,
2749 Handle<JSGlobalPropertyCell> cell, 2749 Handle<PropertyCell> cell,
2750 Handle<JSFunction> function, 2750 Handle<JSFunction> function,
2751 Handle<Name> name) { 2751 Handle<Name> name) {
2752 // ----------- S t a t e ------------- 2752 // ----------- S t a t e -------------
2753 // -- a2 : name 2753 // -- a2 : name
2754 // -- ra : return address 2754 // -- ra : return address
2755 // ----------------------------------- 2755 // -----------------------------------
2756 2756
2757 if (HasCustomCallGenerator(function)) { 2757 if (HasCustomCallGenerator(function)) {
2758 Handle<Code> code = CompileCustomCall( 2758 Handle<Code> code = CompileCustomCall(
2759 object, holder, cell, function, Handle<String>::cast(name)); 2759 object, holder, cell, function, Handle<String>::cast(name));
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
2915 __ bind(&miss); 2915 __ bind(&miss);
2916 TailCallBuiltin(masm(), MissBuiltin(kind())); 2916 TailCallBuiltin(masm(), MissBuiltin(kind()));
2917 2917
2918 // Return the generated code. 2918 // Return the generated code.
2919 return GetICCode(kind(), Code::INTERCEPTOR, name); 2919 return GetICCode(kind(), Code::INTERCEPTOR, name);
2920 } 2920 }
2921 2921
2922 2922
2923 Handle<Code> StoreStubCompiler::CompileStoreGlobal( 2923 Handle<Code> StoreStubCompiler::CompileStoreGlobal(
2924 Handle<GlobalObject> object, 2924 Handle<GlobalObject> object,
2925 Handle<JSGlobalPropertyCell> cell, 2925 Handle<PropertyCell> cell,
2926 Handle<Name> name) { 2926 Handle<Name> name) {
2927 Label miss; 2927 Label miss;
2928 2928
2929 // Check that the map of the global has not changed. 2929 // Check that the map of the global has not changed.
2930 __ lw(scratch1(), FieldMemOperand(receiver(), HeapObject::kMapOffset)); 2930 __ lw(scratch1(), FieldMemOperand(receiver(), HeapObject::kMapOffset));
2931 __ Branch(&miss, ne, scratch1(), Operand(Handle<Map>(object->map()))); 2931 __ Branch(&miss, ne, scratch1(), Operand(Handle<Map>(object->map())));
2932 2932
2933 // Check that the value in the cell is not the hole. If it is, this 2933 // Check that the value in the cell is not the hole. If it is, this
2934 // cell could have been deleted and reintroducing the global needs 2934 // cell could have been deleted and reintroducing the global needs
2935 // to update the property details in the property dictionary of the 2935 // to update the property details in the property dictionary of the
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
3055 } 3055 }
3056 3056
3057 3057
3058 #undef __ 3058 #undef __
3059 #define __ ACCESS_MASM(masm()) 3059 #define __ ACCESS_MASM(masm())
3060 3060
3061 3061
3062 Handle<Code> LoadStubCompiler::CompileLoadGlobal( 3062 Handle<Code> LoadStubCompiler::CompileLoadGlobal(
3063 Handle<JSObject> object, 3063 Handle<JSObject> object,
3064 Handle<GlobalObject> global, 3064 Handle<GlobalObject> global,
3065 Handle<JSGlobalPropertyCell> cell, 3065 Handle<PropertyCell> cell,
3066 Handle<Name> name, 3066 Handle<Name> name,
3067 bool is_dont_delete) { 3067 bool is_dont_delete) {
3068 Label success, miss; 3068 Label success, miss;
3069 3069
3070 __ CheckMap( 3070 __ CheckMap(
3071 receiver(), scratch1(), Handle<Map>(object->map()), &miss, DO_SMI_CHECK); 3071 receiver(), scratch1(), Handle<Map>(object->map()), &miss, DO_SMI_CHECK);
3072 HandlerFrontendHeader( 3072 HandlerFrontendHeader(
3073 object, receiver(), Handle<JSObject>::cast(global), name, &miss); 3073 object, receiver(), Handle<JSObject>::cast(global), name, &miss);
3074 3074
3075 // Get the value from the cell. 3075 // Get the value from the cell.
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after
3773 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); 3773 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow);
3774 } 3774 }
3775 } 3775 }
3776 3776
3777 3777
3778 #undef __ 3778 #undef __
3779 3779
3780 } } // namespace v8::internal 3780 } } // namespace v8::internal
3781 3781
3782 #endif // V8_TARGET_ARCH_MIPS 3782 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/lithium-codegen-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698