Chromium Code Reviews

Side by Side Diff: src/mips/ic-mips.cc

Issue 98633005: Bug in StoreIC::GenerateMegamorphic: strict_mode/extra_ic_state mismatch. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | | Annotate | Revision Log
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 1505 matching lines...)
1516 void StoreIC::GenerateMegamorphic(MacroAssembler* masm, 1516 void StoreIC::GenerateMegamorphic(MacroAssembler* masm,
1517 StrictModeFlag strict_mode) { 1517 StrictModeFlag strict_mode) {
1518 // ----------- S t a t e ------------- 1518 // ----------- S t a t e -------------
1519 // -- a0 : value 1519 // -- a0 : value
1520 // -- a1 : receiver 1520 // -- a1 : receiver
1521 // -- a2 : name 1521 // -- a2 : name
1522 // -- ra : return address 1522 // -- ra : return address
1523 // ----------------------------------- 1523 // -----------------------------------
1524 1524
1525 // Get the receiver from the stack and probe the stub cache. 1525 // Get the receiver from the stack and probe the stub cache.
1526 ExtraICState extra_ic_state = StoreIC::ComputeExtraICState(strict_mode);
1526 Code::Flags flags = Code::ComputeFlags( 1527 Code::Flags flags = Code::ComputeFlags(
1527 Code::HANDLER, MONOMORPHIC, strict_mode, 1528 Code::HANDLER, MONOMORPHIC, extra_ic_state,
1528 Code::NORMAL, Code::STORE_IC); 1529 Code::NORMAL, Code::STORE_IC);
1529 masm->isolate()->stub_cache()->GenerateProbe( 1530 masm->isolate()->stub_cache()->GenerateProbe(
1530 masm, flags, a1, a2, a3, t0, t1, t2); 1531 masm, flags, a1, a2, a3, t0, t1, t2);
1531 1532
1532 // Cache miss: Jump to runtime. 1533 // Cache miss: Jump to runtime.
1533 GenerateMiss(masm); 1534 GenerateMiss(masm);
1534 } 1535 }
1535 1536
1536 1537
1537 void StoreIC::GenerateMiss(MacroAssembler* masm) { 1538 void StoreIC::GenerateMiss(MacroAssembler* masm) {
(...skipping 147 matching lines...)
1685 } else { 1686 } else {
1686 ASSERT(Assembler::IsBne(branch_instr)); 1687 ASSERT(Assembler::IsBne(branch_instr));
1687 patcher.ChangeBranchCondition(eq); 1688 patcher.ChangeBranchCondition(eq);
1688 } 1689 }
1689 } 1690 }
1690 1691
1691 1692
1692 } } // namespace v8::internal 1693 } } // namespace v8::internal
1693 1694
1694 #endif // V8_TARGET_ARCH_MIPS 1695 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« src/arm/ic-arm.cc ('K') | « src/ia32/ic-ia32.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine