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

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

Issue 134333007: Remove HCallGlobal and merge uses with HCallNamed. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « src/hydrogen-instructions.cc ('k') | 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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 4233 matching lines...) Expand 10 before | Expand all | Expand 10 after
4244 CallFunctionStub stub(arity, NO_CALL_FUNCTION_FLAGS); 4244 CallFunctionStub stub(arity, NO_CALL_FUNCTION_FLAGS);
4245 if (instr->hydrogen()->IsTailCall()) { 4245 if (instr->hydrogen()->IsTailCall()) {
4246 if (NeedsEagerFrame()) __ leave(); 4246 if (NeedsEagerFrame()) __ leave();
4247 __ jmp(stub.GetCode(isolate()), RelocInfo::CODE_TARGET); 4247 __ jmp(stub.GetCode(isolate()), RelocInfo::CODE_TARGET);
4248 } else { 4248 } else {
4249 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 4249 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
4250 } 4250 }
4251 } 4251 }
4252 4252
4253 4253
4254 void LCodeGen::DoCallGlobal(LCallGlobal* instr) {
4255 ASSERT(ToRegister(instr->context()).is(esi));
4256 ASSERT(ToRegister(instr->result()).is(eax));
4257
4258 int arity = instr->arity();
4259 Handle<Code> ic = isolate()->stub_cache()->ComputeCallInitialize(arity);
4260 __ mov(ecx, instr->name());
4261 CallCode(ic, RelocInfo::CODE_TARGET, instr);
4262 }
4263
4264
4265 void LCodeGen::DoCallKnownGlobal(LCallKnownGlobal* instr) { 4254 void LCodeGen::DoCallKnownGlobal(LCallKnownGlobal* instr) {
4266 ASSERT(ToRegister(instr->result()).is(eax)); 4255 ASSERT(ToRegister(instr->result()).is(eax));
4267 CallKnownFunction(instr->hydrogen()->target(), 4256 CallKnownFunction(instr->hydrogen()->target(),
4268 instr->hydrogen()->formal_parameter_count(), 4257 instr->hydrogen()->formal_parameter_count(),
4269 instr->arity(), 4258 instr->arity(),
4270 instr, 4259 instr,
4271 EDI_UNINITIALIZED); 4260 EDI_UNINITIALIZED);
4272 } 4261 }
4273 4262
4274 4263
(...skipping 2079 matching lines...) Expand 10 before | Expand all | Expand 10 after
6354 FixedArray::kHeaderSize - kPointerSize)); 6343 FixedArray::kHeaderSize - kPointerSize));
6355 __ bind(&done); 6344 __ bind(&done);
6356 } 6345 }
6357 6346
6358 6347
6359 #undef __ 6348 #undef __
6360 6349
6361 } } // namespace v8::internal 6350 } } // namespace v8::internal
6362 6351
6363 #endif // V8_TARGET_ARCH_IA32 6352 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/ia32/lithium-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698