Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(310)

Side by Side Diff: src/ia32/lithium-codegen-ia32.cc

Issue 6368003: Fix operand type for keyed calls.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/ia32/lithium-ia32.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698