OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1027 PrepareForCall(0, 0); | 1027 PrepareForCall(0, 0); |
1028 MoveResultsToRegisters(&key, &receiver, eax, edx); | 1028 MoveResultsToRegisters(&key, &receiver, eax, edx); |
1029 | 1029 |
1030 Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize)); | 1030 Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize)); |
1031 return RawCallCodeObject(ic, mode); | 1031 return RawCallCodeObject(ic, mode); |
1032 } | 1032 } |
1033 | 1033 |
1034 | 1034 |
1035 Result VirtualFrame::CallStoreIC(Handle<String> name, bool is_contextual) { | 1035 Result VirtualFrame::CallStoreIC(Handle<String> name, bool is_contextual) { |
1036 // Value and (if not contextual) receiver are on top of the frame. | 1036 // Value and (if not contextual) receiver are on top of the frame. |
1037 // The IC expects name in ecx, value in eax, and receiver in edx. | 1037 // The IC expects name in ecx, value in eax, and receiver in edx. |
1038 Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Initialize)); | 1038 Handle<Code> ic(Builtins::builtin(Builtins::StoreIC_Initialize)); |
1039 Result value = Pop(); | 1039 Result value = Pop(); |
1040 if (is_contextual) { | 1040 if (is_contextual) { |
1041 PrepareForCall(0, 0); | 1041 PrepareForCall(0, 0); |
1042 value.ToRegister(eax); | 1042 value.ToRegister(eax); |
1043 __ mov(edx, Operand(esi, Context::SlotOffset(Context::GLOBAL_INDEX))); | 1043 __ mov(edx, Operand(esi, Context::SlotOffset(Context::GLOBAL_INDEX))); |
1044 value.Unuse(); | 1044 value.Unuse(); |
1045 } else { | 1045 } else { |
1046 Result receiver = Pop(); | 1046 Result receiver = Pop(); |
1047 PrepareForCall(0, 0); | 1047 PrepareForCall(0, 0); |
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1325 } | 1325 } |
1326 UNREACHABLE(); | 1326 UNREACHABLE(); |
1327 } | 1327 } |
1328 | 1328 |
1329 | 1329 |
1330 #undef __ | 1330 #undef __ |
1331 | 1331 |
1332 } } // namespace v8::internal | 1332 } } // namespace v8::internal |
1333 | 1333 |
1334 #endif // V8_TARGET_ARCH_IA32 | 1334 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |