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

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

Issue 153773002: A64: Synchronize with r16679. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/a64
Patch Set: Created 6 years, 10 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/regexp-macro-assembler-mips.cc ('k') | src/mksnapshot.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 2917 matching lines...) Expand 10 before | Expand all | Expand 10 after
2928 2928
2929 // Handle store cache miss. 2929 // Handle store cache miss.
2930 __ bind(&miss); 2930 __ bind(&miss);
2931 TailCallBuiltin(masm(), MissBuiltin(kind())); 2931 TailCallBuiltin(masm(), MissBuiltin(kind()));
2932 2932
2933 // Return the generated code. 2933 // Return the generated code.
2934 return GetCode(kind(), Code::INTERCEPTOR, name); 2934 return GetCode(kind(), Code::INTERCEPTOR, name);
2935 } 2935 }
2936 2936
2937 2937
2938 Handle<Code> StoreStubCompiler::CompileStoreGlobal(
2939 Handle<GlobalObject> object,
2940 Handle<PropertyCell> cell,
2941 Handle<Name> name) {
2942 Label miss;
2943
2944 // Check that the map of the global has not changed.
2945 __ lw(scratch1(), FieldMemOperand(receiver(), HeapObject::kMapOffset));
2946 __ Branch(&miss, ne, scratch1(), Operand(Handle<Map>(object->map())));
2947
2948 // Check that the value in the cell is not the hole. If it is, this
2949 // cell could have been deleted and reintroducing the global needs
2950 // to update the property details in the property dictionary of the
2951 // global object. We bail out to the runtime system to do that.
2952 __ li(scratch1(), Operand(cell));
2953 __ LoadRoot(scratch2(), Heap::kTheHoleValueRootIndex);
2954 __ lw(scratch3(), FieldMemOperand(scratch1(), Cell::kValueOffset));
2955 __ Branch(&miss, eq, scratch3(), Operand(scratch2()));
2956
2957 // Store the value in the cell.
2958 __ sw(value(), FieldMemOperand(scratch1(), Cell::kValueOffset));
2959 __ mov(v0, a0); // Stored value must be returned in v0.
2960 // Cells are always rescanned, so no write barrier here.
2961
2962 Counters* counters = isolate()->counters();
2963 __ IncrementCounter(
2964 counters->named_store_global_inline(), 1, scratch1(), scratch2());
2965 __ Ret();
2966
2967 // Handle store cache miss.
2968 __ bind(&miss);
2969 __ IncrementCounter(
2970 counters->named_store_global_inline_miss(), 1, scratch1(), scratch2());
2971 TailCallBuiltin(masm(), MissBuiltin(kind()));
2972
2973 // Return the generated code.
2974 return GetICCode(kind(), Code::NORMAL, name);
2975 }
2976
2977
2978 Handle<Code> LoadStubCompiler::CompileLoadNonexistent( 2938 Handle<Code> LoadStubCompiler::CompileLoadNonexistent(
2979 Handle<JSObject> object, 2939 Handle<JSObject> object,
2980 Handle<JSObject> last, 2940 Handle<JSObject> last,
2981 Handle<Name> name, 2941 Handle<Name> name,
2982 Handle<GlobalObject> global) { 2942 Handle<GlobalObject> global) {
2983 Label success; 2943 Label success;
2984 2944
2985 NonexistentHandlerFrontend(object, last, name, &success, global); 2945 NonexistentHandlerFrontend(object, last, name, &success, global);
2986 2946
2987 __ bind(&success); 2947 __ bind(&success);
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
3224 // ----------------------------------- 3184 // -----------------------------------
3225 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric); 3185 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_MissForceGeneric);
3226 } 3186 }
3227 3187
3228 3188
3229 #undef __ 3189 #undef __
3230 3190
3231 } } // namespace v8::internal 3191 } } // namespace v8::internal
3232 3192
3233 #endif // V8_TARGET_ARCH_MIPS 3193 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/regexp-macro-assembler-mips.cc ('k') | src/mksnapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698