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 1277 matching lines...) Loading... |
1288 | 1288 |
1289 | 1289 |
1290 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { | 1290 void LoadIC::GenerateMegamorphic(MacroAssembler* masm) { |
1291 // ----------- S t a t e ------------- | 1291 // ----------- S t a t e ------------- |
1292 // -- ecx : name | 1292 // -- ecx : name |
1293 // -- edx : receiver | 1293 // -- edx : receiver |
1294 // -- esp[0] : return address | 1294 // -- esp[0] : return address |
1295 // ----------------------------------- | 1295 // ----------------------------------- |
1296 | 1296 |
1297 // Probe the stub cache. | 1297 // Probe the stub cache. |
1298 Code::Flags flags = Code::ComputeFlags(Code::LOAD_IC, MONOMORPHIC); | 1298 Code::Flags flags = Code::ComputeFlags( |
1299 Isolate::Current()->stub_cache()->GenerateProbe(masm, flags, edx, ecx, ebx, | 1299 Code::LOAD_IC, MONOMORPHIC, Code::HANDLER_FRAGMENT); |
1300 eax); | 1300 Isolate::Current()->stub_cache()->GenerateProbe( |
| 1301 masm, flags, edx, ecx, ebx, eax); |
1301 | 1302 |
1302 // Cache miss: Jump to runtime. | 1303 // Cache miss: Jump to runtime. |
1303 GenerateMiss(masm); | 1304 GenerateMiss(masm); |
1304 } | 1305 } |
1305 | 1306 |
1306 | 1307 |
1307 void LoadIC::GenerateNormal(MacroAssembler* masm) { | 1308 void LoadIC::GenerateNormal(MacroAssembler* masm) { |
1308 // ----------- S t a t e ------------- | 1309 // ----------- S t a t e ------------- |
1309 // -- ecx : name | 1310 // -- ecx : name |
1310 // -- edx : receiver | 1311 // -- edx : receiver |
(...skipping 354 matching lines...) Loading... |
1665 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) | 1666 Condition cc = (check == ENABLE_INLINED_SMI_CHECK) |
1666 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 1667 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
1667 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 1668 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
1668 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 1669 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
1669 } | 1670 } |
1670 | 1671 |
1671 | 1672 |
1672 } } // namespace v8::internal | 1673 } } // namespace v8::internal |
1673 | 1674 |
1674 #endif // V8_TARGET_ARCH_IA32 | 1675 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |