| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #if V8_TARGET_ARCH_X87 | 5 #if V8_TARGET_ARCH_X87 |
| 6 | 6 |
| 7 #include "src/codegen.h" | 7 #include "src/codegen.h" |
| 8 #include "src/ic/ic.h" | 8 #include "src/ic/ic.h" |
| 9 #include "src/ic/ic-compiler.h" | 9 #include "src/ic/ic-compiler.h" |
| 10 #include "src/ic/stub-cache.h" | 10 #include "src/ic/stub-cache.h" |
| (...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 665 | 665 |
| 666 __ pop(edi); | 666 __ pop(edi); |
| 667 __ push(receiver); | 667 __ push(receiver); |
| 668 __ push(name); | 668 __ push(name); |
| 669 __ push(slot); | 669 __ push(slot); |
| 670 __ push(vector); | 670 __ push(vector); |
| 671 __ push(edi); | 671 __ push(edi); |
| 672 } | 672 } |
| 673 | 673 |
| 674 | 674 |
| 675 void LoadIC::GenerateMiss(MacroAssembler* masm, int stress) { | 675 void LoadIC::GenerateMiss(MacroAssembler* masm) { |
| 676 // Return address is on the stack. | 676 // Return address is on the stack. |
| 677 __ IncrementCounter(masm->isolate()->counters()->load_miss(), 1); | 677 __ IncrementCounter(masm->isolate()->counters()->load_miss(), 1); |
| 678 LoadIC_PushArgs(masm); | 678 LoadIC_PushArgs(masm); |
| 679 | 679 |
| 680 // Perform tail call to the entry. | 680 // Perform tail call to the entry. |
| 681 int arg_count = 4; | 681 int arg_count = 4; |
| 682 __ TailCallRuntime(Runtime::kLoadIC_Miss, arg_count, 1); | 682 __ TailCallRuntime(Runtime::kLoadIC_Miss, arg_count, 1); |
| 683 } | 683 } |
| 684 | 684 |
| 685 | 685 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 902 Condition cc = | 902 Condition cc = |
| 903 (check == ENABLE_INLINED_SMI_CHECK) | 903 (check == ENABLE_INLINED_SMI_CHECK) |
| 904 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) | 904 ? (*jmp_address == Assembler::kJncShortOpcode ? not_zero : zero) |
| 905 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); | 905 : (*jmp_address == Assembler::kJnzShortOpcode ? not_carry : carry); |
| 906 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); | 906 *jmp_address = static_cast<byte>(Assembler::kJccShortPrefix | cc); |
| 907 } | 907 } |
| 908 } // namespace internal | 908 } // namespace internal |
| 909 } // namespace v8 | 909 } // namespace v8 |
| 910 | 910 |
| 911 #endif // V8_TARGET_ARCH_X87 | 911 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |