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

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

Issue 430593002: MIPS: Clean up name distinction between Keyed ICs and Element Handlers (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 4 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/macro-assembler-mips.cc ('k') | src/mips64/ic-mips64.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/ic-inl.h" 10 #include "src/ic-inl.h"
(...skipping 1110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1121 1121
1122 #undef __ 1122 #undef __
1123 #define __ ACCESS_MASM(masm()) 1123 #define __ ACCESS_MASM(masm())
1124 1124
1125 1125
1126 Handle<Code> NamedStoreHandlerCompiler::CompileStoreInterceptor( 1126 Handle<Code> NamedStoreHandlerCompiler::CompileStoreInterceptor(
1127 Handle<JSObject> object, Handle<Name> name) { 1127 Handle<JSObject> object, Handle<Name> name) {
1128 __ Push(receiver(), this->name(), value()); 1128 __ Push(receiver(), this->name(), value());
1129 1129
1130 // Do tail-call to the runtime system. 1130 // Do tail-call to the runtime system.
1131 ExternalReference store_ic_property = 1131 ExternalReference store_ic_property = ExternalReference(
1132 ExternalReference(IC_Utility(IC::kStoreInterceptorProperty), isolate()); 1132 IC_Utility(IC::kStorePropertyWithInterceptor), isolate());
paul.l... 2014/07/29 20:32:11 nit: weird indent level, please make 4 spaces.
1133 __ TailCallExternalReference(store_ic_property, 3, 1); 1133 __ TailCallExternalReference(store_ic_property, 3, 1);
1134 1134
1135 // Return the generated code. 1135 // Return the generated code.
1136 return GetCode(kind(), Code::FAST, name); 1136 return GetCode(kind(), Code::FAST, name);
1137 } 1137 }
1138 1138
1139 1139
1140 Handle<Code> NamedLoadHandlerCompiler::CompileLoadNonexistent( 1140 Handle<Code> NamedLoadHandlerCompiler::CompileLoadNonexistent(
1141 Handle<HeapType> type, Handle<JSObject> last, Handle<Name> name) { 1141 Handle<HeapType> type, Handle<JSObject> last, Handle<Name> name) {
1142 NonexistentFrontend(type, last, name); 1142 NonexistentFrontend(type, last, name);
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1311 // Prepare tail call to StoreIC_ArrayLength. 1311 // Prepare tail call to StoreIC_ArrayLength.
1312 __ Push(receiver(), value()); 1312 __ Push(receiver(), value());
1313 1313
1314 ExternalReference ref = 1314 ExternalReference ref =
1315 ExternalReference(IC_Utility(IC::kStoreIC_ArrayLength), 1315 ExternalReference(IC_Utility(IC::kStoreIC_ArrayLength),
1316 masm()->isolate()); 1316 masm()->isolate());
1317 __ TailCallExternalReference(ref, 2, 1); 1317 __ TailCallExternalReference(ref, 2, 1);
1318 } 1318 }
1319 1319
1320 1320
1321 Handle<Code> PropertyICCompiler::CompileIndexedStorePolymorphic( 1321 Handle<Code> PropertyICCompiler::CompileKeyedStorePolymorphic(
1322 MapHandleList* receiver_maps, CodeHandleList* handler_stubs, 1322 MapHandleList* receiver_maps, CodeHandleList* handler_stubs,
1323 MapHandleList* transitioned_maps) { 1323 MapHandleList* transitioned_maps) {
1324 Label miss; 1324 Label miss;
1325 __ JumpIfSmi(receiver(), &miss); 1325 __ JumpIfSmi(receiver(), &miss);
1326 1326
1327 int receiver_count = receiver_maps->length(); 1327 int receiver_count = receiver_maps->length();
1328 __ lw(scratch1(), FieldMemOperand(receiver(), HeapObject::kMapOffset)); 1328 __ lw(scratch1(), FieldMemOperand(receiver(), HeapObject::kMapOffset));
1329 for (int i = 0; i < receiver_count; ++i) { 1329 for (int i = 0; i < receiver_count; ++i) {
1330 if (transitioned_maps->at(i).is_null()) { 1330 if (transitioned_maps->at(i).is_null()) {
1331 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, eq, 1331 __ Jump(handler_stubs->at(i), RelocInfo::CODE_TARGET, eq,
(...skipping 12 matching lines...) Expand all
1344 1344
1345 // Return the generated code. 1345 // Return the generated code.
1346 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC); 1346 return GetCode(kind(), Code::NORMAL, factory()->empty_string(), POLYMORPHIC);
1347 } 1347 }
1348 1348
1349 1349
1350 #undef __ 1350 #undef __
1351 #define __ ACCESS_MASM(masm) 1351 #define __ ACCESS_MASM(masm)
1352 1352
1353 1353
1354 void IndexedHandlerCompiler::GenerateLoadDictionaryElement( 1354 void ElementHandlerCompiler::GenerateLoadDictionaryElement(
1355 MacroAssembler* masm) { 1355 MacroAssembler* masm) {
1356 // The return address is in ra. 1356 // The return address is in ra.
1357 Label slow, miss; 1357 Label slow, miss;
1358 1358
1359 Register key = LoadIC::NameRegister(); 1359 Register key = LoadIC::NameRegister();
1360 Register receiver = LoadIC::ReceiverRegister(); 1360 Register receiver = LoadIC::ReceiverRegister();
1361 ASSERT(receiver.is(a1)); 1361 ASSERT(receiver.is(a1));
1362 ASSERT(key.is(a2)); 1362 ASSERT(key.is(a2));
1363 1363
1364 __ UntagAndJumpIfNotSmi(t2, key, &miss); 1364 __ UntagAndJumpIfNotSmi(t2, key, &miss);
(...skipping 14 matching lines...) Expand all
1379 1379
1380 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1380 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1381 } 1381 }
1382 1382
1383 1383
1384 #undef __ 1384 #undef __
1385 1385
1386 } } // namespace v8::internal 1386 } } // namespace v8::internal
1387 1387
1388 #endif // V8_TARGET_ARCH_MIPS 1388 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/macro-assembler-mips.cc ('k') | src/mips64/ic-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698