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

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

Issue 202063003: MIPS: Fixed spec violation of storing to length of a frozen object. (Closed) Base URL: https://github.com/v8/v8.git@gbl
Patch Set: Created 6 years, 9 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
« no previous file with comments | « src/mips/code-stubs-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 1404 matching lines...) Expand 10 before | Expand all | Expand 10 after
1415 __ bind(&miss); 1415 __ bind(&miss);
1416 TailCallBuiltin(masm(), MissBuiltin(kind())); 1416 TailCallBuiltin(masm(), MissBuiltin(kind()));
1417 1417
1418 // Return the generated code. 1418 // Return the generated code.
1419 InlineCacheState state = 1419 InlineCacheState state =
1420 number_of_handled_maps > 1 ? POLYMORPHIC : MONOMORPHIC; 1420 number_of_handled_maps > 1 ? POLYMORPHIC : MONOMORPHIC;
1421 return GetICCode(kind(), type, name, state); 1421 return GetICCode(kind(), type, name, state);
1422 } 1422 }
1423 1423
1424 1424
1425 void StoreStubCompiler::GenerateStoreArrayLength() {
1426 // Prepare tail call to StoreIC_ArrayLength.
1427 __ Push(receiver(), value());
1428
1429 ExternalReference ref =
1430 ExternalReference(IC_Utility(IC::kStoreIC_ArrayLength),
1431 masm()->isolate());
1432 __ TailCallExternalReference(ref, 2, 1);
1433 }
1434
1435
1425 Handle<Code> KeyedStoreStubCompiler::CompileStorePolymorphic( 1436 Handle<Code> KeyedStoreStubCompiler::CompileStorePolymorphic(
1426 MapHandleList* receiver_maps, 1437 MapHandleList* receiver_maps,
1427 CodeHandleList* handler_stubs, 1438 CodeHandleList* handler_stubs,
1428 MapHandleList* transitioned_maps) { 1439 MapHandleList* transitioned_maps) {
1429 Label miss; 1440 Label miss;
1430 __ JumpIfSmi(receiver(), &miss); 1441 __ JumpIfSmi(receiver(), &miss);
1431 1442
1432 int receiver_count = receiver_maps->length(); 1443 int receiver_count = receiver_maps->length();
1433 __ lw(scratch1(), FieldMemOperand(receiver(), HeapObject::kMapOffset)); 1444 __ lw(scratch1(), FieldMemOperand(receiver(), HeapObject::kMapOffset));
1434 for (int i = 0; i < receiver_count; ++i) { 1445 for (int i = 0; i < receiver_count; ++i) {
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
1498 // ----------------------------------- 1509 // -----------------------------------
1499 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1510 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1500 } 1511 }
1501 1512
1502 1513
1503 #undef __ 1514 #undef __
1504 1515
1505 } } // namespace v8::internal 1516 } } // namespace v8::internal
1506 1517
1507 #endif // V8_TARGET_ARCH_MIPS 1518 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/code-stubs-mips.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698