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 2488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2499 break; | 2499 break; |
2500 | 2500 |
2501 default: | 2501 default: |
2502 UNREACHABLE(); | 2502 UNREACHABLE(); |
2503 } | 2503 } |
2504 } | 2504 } |
2505 | 2505 |
2506 | 2506 |
2507 void LCodeGen::DoCallKeyed(LCallKeyed* instr) { | 2507 void LCodeGen::DoCallKeyed(LCallKeyed* instr) { |
2508 ASSERT(ToRegister(instr->result()).is(eax)); | 2508 ASSERT(ToRegister(instr->result()).is(eax)); |
| 2509 ASSERT(ToRegister(instr->InputAt(0)).is(ecx)); |
2509 | 2510 |
2510 int arity = instr->arity(); | 2511 int arity = instr->arity(); |
2511 Handle<Code> ic = StubCache::ComputeKeyedCallInitialize(arity, NOT_IN_LOOP); | 2512 Handle<Code> ic = StubCache::ComputeKeyedCallInitialize(arity, NOT_IN_LOOP); |
2512 CallCode(ic, RelocInfo::CODE_TARGET, instr); | 2513 CallCode(ic, RelocInfo::CODE_TARGET, instr); |
2513 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); | 2514 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); |
2514 } | 2515 } |
2515 | 2516 |
2516 | 2517 |
2517 void LCodeGen::DoCallNamed(LCallNamed* instr) { | 2518 void LCodeGen::DoCallNamed(LCallNamed* instr) { |
2518 ASSERT(ToRegister(instr->result()).is(eax)); | 2519 ASSERT(ToRegister(instr->result()).is(eax)); |
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3449 ASSERT(osr_pc_offset_ == -1); | 3450 ASSERT(osr_pc_offset_ == -1); |
3450 osr_pc_offset_ = masm()->pc_offset(); | 3451 osr_pc_offset_ = masm()->pc_offset(); |
3451 } | 3452 } |
3452 | 3453 |
3453 | 3454 |
3454 #undef __ | 3455 #undef __ |
3455 | 3456 |
3456 } } // namespace v8::internal | 3457 } } // namespace v8::internal |
3457 | 3458 |
3458 #endif // V8_TARGET_ARCH_IA32 | 3459 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |