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

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

Issue 6541069: X64 Crankshaft: Implement CallKeyed in optimizing compiler. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years, 10 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/x64/lithium-x64.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 2335 matching lines...) Expand 10 before | Expand all | Expand 10 after
2346 DoMathLog(instr); 2346 DoMathLog(instr);
2347 break; 2347 break;
2348 2348
2349 default: 2349 default:
2350 UNREACHABLE(); 2350 UNREACHABLE();
2351 } 2351 }
2352 } 2352 }
2353 2353
2354 2354
2355 void LCodeGen::DoCallKeyed(LCallKeyed* instr) { 2355 void LCodeGen::DoCallKeyed(LCallKeyed* instr) {
2356 Abort("Unimplemented: %s", "DoCallKeyed"); 2356 ASSERT(ToRegister(instr->key()).is(rcx));
2357 ASSERT(ToRegister(instr->result()).is(rax));
2358
2359 int arity = instr->arity();
2360 Handle<Code> ic = StubCache::ComputeKeyedCallInitialize(arity, NOT_IN_LOOP);
2361 CallCode(ic, RelocInfo::CODE_TARGET, instr);
2357 } 2362 }
2358 2363
2359 2364
2360 void LCodeGen::DoCallNamed(LCallNamed* instr) { 2365 void LCodeGen::DoCallNamed(LCallNamed* instr) {
2361 ASSERT(ToRegister(instr->result()).is(rax)); 2366 ASSERT(ToRegister(instr->result()).is(rax));
2362 2367
2363 int arity = instr->arity(); 2368 int arity = instr->arity();
2364 Handle<Code> ic = StubCache::ComputeCallInitialize(arity, NOT_IN_LOOP); 2369 Handle<Code> ic = StubCache::ComputeCallInitialize(arity, NOT_IN_LOOP);
2365 __ Move(rcx, instr->name()); 2370 __ Move(rcx, instr->name());
2366 CallCode(ic, RelocInfo::CODE_TARGET, instr); 2371 CallCode(ic, RelocInfo::CODE_TARGET, instr);
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after
3302 RegisterEnvironmentForDeoptimization(environment); 3307 RegisterEnvironmentForDeoptimization(environment);
3303 ASSERT(osr_pc_offset_ == -1); 3308 ASSERT(osr_pc_offset_ == -1);
3304 osr_pc_offset_ = masm()->pc_offset(); 3309 osr_pc_offset_ = masm()->pc_offset();
3305 } 3310 }
3306 3311
3307 #undef __ 3312 #undef __
3308 3313
3309 } } // namespace v8::internal 3314 } } // namespace v8::internal
3310 3315
3311 #endif // V8_TARGET_ARCH_X64 3316 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « no previous file | src/x64/lithium-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698