| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 3086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3097 __ InvokeFunction(edi, count, CALL_FUNCTION, generator, CALL_AS_METHOD); | 3097 __ InvokeFunction(edi, count, CALL_FUNCTION, generator, CALL_AS_METHOD); |
| 3098 } | 3098 } |
| 3099 | 3099 |
| 3100 | 3100 |
| 3101 void LCodeGen::DoCallKeyed(LCallKeyed* instr) { | 3101 void LCodeGen::DoCallKeyed(LCallKeyed* instr) { |
| 3102 ASSERT(ToRegister(instr->context()).is(esi)); | 3102 ASSERT(ToRegister(instr->context()).is(esi)); |
| 3103 ASSERT(ToRegister(instr->key()).is(ecx)); | 3103 ASSERT(ToRegister(instr->key()).is(ecx)); |
| 3104 ASSERT(ToRegister(instr->result()).is(eax)); | 3104 ASSERT(ToRegister(instr->result()).is(eax)); |
| 3105 | 3105 |
| 3106 int arity = instr->arity(); | 3106 int arity = instr->arity(); |
| 3107 RelocInfo::Mode mode = RelocInfo::CODE_TARGET; |
| 3107 Handle<Code> ic = | 3108 Handle<Code> ic = |
| 3108 isolate()->stub_cache()->ComputeKeyedCallInitialize(arity); | 3109 isolate()->stub_cache()->ComputeKeyedCallInitialize(arity, mode); |
| 3109 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 3110 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
| 3110 } | 3111 } |
| 3111 | 3112 |
| 3112 | 3113 |
| 3113 void LCodeGen::DoCallNamed(LCallNamed* instr) { | 3114 void LCodeGen::DoCallNamed(LCallNamed* instr) { |
| 3114 ASSERT(ToRegister(instr->context()).is(esi)); | 3115 ASSERT(ToRegister(instr->context()).is(esi)); |
| 3115 ASSERT(ToRegister(instr->result()).is(eax)); | 3116 ASSERT(ToRegister(instr->result()).is(eax)); |
| 3116 | 3117 |
| 3117 int arity = instr->arity(); | 3118 int arity = instr->arity(); |
| 3118 RelocInfo::Mode mode = RelocInfo::CODE_TARGET; | 3119 RelocInfo::Mode mode = RelocInfo::CODE_TARGET; |
| (...skipping 1515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4634 this, pointers, Safepoint::kLazyDeopt); | 4635 this, pointers, Safepoint::kLazyDeopt); |
| 4635 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); | 4636 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); |
| 4636 } | 4637 } |
| 4637 | 4638 |
| 4638 | 4639 |
| 4639 #undef __ | 4640 #undef __ |
| 4640 | 4641 |
| 4641 } } // namespace v8::internal | 4642 } } // namespace v8::internal |
| 4642 | 4643 |
| 4643 #endif // V8_TARGET_ARCH_IA32 | 4644 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |