| OLD | NEW |
| 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 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1414 | 1414 |
| 1415 void StoreIC::GenerateMegamorphic(MacroAssembler* masm, | 1415 void StoreIC::GenerateMegamorphic(MacroAssembler* masm, |
| 1416 StrictModeFlag strict_mode) { | 1416 StrictModeFlag strict_mode) { |
| 1417 // ----------- S t a t e ------------- | 1417 // ----------- S t a t e ------------- |
| 1418 // -- eax : value | 1418 // -- eax : value |
| 1419 // -- ecx : name | 1419 // -- ecx : name |
| 1420 // -- edx : receiver | 1420 // -- edx : receiver |
| 1421 // -- esp[0] : return address | 1421 // -- esp[0] : return address |
| 1422 // ----------------------------------- | 1422 // ----------------------------------- |
| 1423 | 1423 |
| 1424 Code::Flags flags = | 1424 Code::Flags flags = Code::ComputeFlags( |
| 1425 Code::ComputeFlags(Code::STORE_IC, MONOMORPHIC, strict_mode); | 1425 Code::STUB, MONOMORPHIC, strict_mode, |
| 1426 Code::NORMAL, Code::STORE_IC); |
| 1426 Isolate::Current()->stub_cache()->GenerateProbe(masm, flags, edx, ecx, ebx, | 1427 Isolate::Current()->stub_cache()->GenerateProbe(masm, flags, edx, ecx, ebx, |
| 1427 no_reg); | 1428 no_reg); |
| 1428 | 1429 |
| 1429 // Cache miss: Jump to runtime. | 1430 // Cache miss: Jump to runtime. |
| 1430 GenerateMiss(masm); | 1431 GenerateMiss(masm); |
| 1431 } | 1432 } |
| 1432 | 1433 |
| 1433 | 1434 |
| 1434 void StoreIC::GenerateMiss(MacroAssembler* masm) { | 1435 void StoreIC::GenerateMiss(MacroAssembler* masm) { |
| 1435 // ----------- S t a t e ------------- | 1436 // ----------- S t a t e ------------- |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1711 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1712 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
| 1712 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1713 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
| 1713 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1714 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
| 1714 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1715 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
| 1715 } | 1716 } |
| 1716 | 1717 |
| 1717 | 1718 |
| 1718 } } // namespace v8::internal | 1719 } } // namespace v8::internal |
| 1719 | 1720 |
| 1720 #endif // V8_TARGET_ARCH_IA32 | 1721 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |