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

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

Issue 196653015: Fixed spec violation of storing to length of a frozen object. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Review notes applied 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 | Annotate | Revision Log
« no previous file with comments | « src/a64/code-stubs-a64.cc ('k') | src/arm/code-stubs-arm.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 __ Bind(&miss); 1417 __ Bind(&miss);
1418 TailCallBuiltin(masm(), MissBuiltin(kind())); 1418 TailCallBuiltin(masm(), MissBuiltin(kind()));
1419 1419
1420 // Return the generated code. 1420 // Return the generated code.
1421 InlineCacheState state = 1421 InlineCacheState state =
1422 (number_of_handled_maps > 1) ? POLYMORPHIC : MONOMORPHIC; 1422 (number_of_handled_maps > 1) ? POLYMORPHIC : MONOMORPHIC;
1423 return GetICCode(kind(), type, name, state); 1423 return GetICCode(kind(), type, name, state);
1424 } 1424 }
1425 1425
1426 1426
1427 void StoreStubCompiler::GenerateStoreArrayLength() {
1428 // Prepare tail call to StoreIC_ArrayLength.
1429 __ Push(receiver(), value());
1430
1431 ExternalReference ref =
1432 ExternalReference(IC_Utility(IC::kStoreIC_ArrayLength),
1433 masm()->isolate());
1434 __ TailCallExternalReference(ref, 2, 1);
1435 }
1436
1437
1427 Handle<Code> KeyedStoreStubCompiler::CompileStorePolymorphic( 1438 Handle<Code> KeyedStoreStubCompiler::CompileStorePolymorphic(
1428 MapHandleList* receiver_maps, 1439 MapHandleList* receiver_maps,
1429 CodeHandleList* handler_stubs, 1440 CodeHandleList* handler_stubs,
1430 MapHandleList* transitioned_maps) { 1441 MapHandleList* transitioned_maps) {
1431 Label miss; 1442 Label miss;
1432 1443
1433 ASM_LOCATION("KeyedStoreStubCompiler::CompileStorePolymorphic"); 1444 ASM_LOCATION("KeyedStoreStubCompiler::CompileStorePolymorphic");
1434 1445
1435 __ JumpIfSmi(receiver(), &miss); 1446 __ JumpIfSmi(receiver(), &miss);
1436 1447
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
1486 1497
1487 // Miss case, call the runtime. 1498 // Miss case, call the runtime.
1488 __ Bind(&miss); 1499 __ Bind(&miss);
1489 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss); 1500 TailCallBuiltin(masm, Builtins::kKeyedLoadIC_Miss);
1490 } 1501 }
1491 1502
1492 1503
1493 } } // namespace v8::internal 1504 } } // namespace v8::internal
1494 1505
1495 #endif // V8_TARGET_ARCH_A64 1506 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « src/a64/code-stubs-a64.cc ('k') | src/arm/code-stubs-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698