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

Side by Side Diff: src/arm/lithium-codegen-arm.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/arm/lithium-arm.cc ('k') | src/hydrogen.cc » ('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 3991 matching lines...) Expand 10 before | Expand all | Expand 10 after
4002 CallFunctionStub stub(arity, NO_CALL_FUNCTION_FLAGS); 4002 CallFunctionStub stub(arity, NO_CALL_FUNCTION_FLAGS);
4003 if (instr->hydrogen()->IsTailCall()) { 4003 if (instr->hydrogen()->IsTailCall()) {
4004 if (NeedsEagerFrame()) __ mov(sp, fp); 4004 if (NeedsEagerFrame()) __ mov(sp, fp);
4005 __ Jump(stub.GetCode(isolate()), RelocInfo::CODE_TARGET); 4005 __ Jump(stub.GetCode(isolate()), RelocInfo::CODE_TARGET);
4006 } else { 4006 } else {
4007 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr); 4007 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
4008 } 4008 }
4009 } 4009 }
4010 4010
4011 4011
4012 void LCodeGen::DoCallGlobal(LCallGlobal* instr) {
4013 ASSERT(ToRegister(instr->context()).is(cp));
4014 ASSERT(ToRegister(instr->result()).is(r0));
4015
4016 int arity = instr->arity();
4017 Handle<Code> ic = isolate()->stub_cache()->ComputeCallInitialize(arity);
4018 __ mov(r2, Operand(instr->name()));
4019 CallCode(ic, RelocInfo::CODE_TARGET, instr, NEVER_INLINE_TARGET_ADDRESS);
4020 }
4021
4022
4023 void LCodeGen::DoCallKnownGlobal(LCallKnownGlobal* instr) { 4012 void LCodeGen::DoCallKnownGlobal(LCallKnownGlobal* instr) {
4024 ASSERT(ToRegister(instr->result()).is(r0)); 4013 ASSERT(ToRegister(instr->result()).is(r0));
4025 CallKnownFunction(instr->hydrogen()->target(), 4014 CallKnownFunction(instr->hydrogen()->target(),
4026 instr->hydrogen()->formal_parameter_count(), 4015 instr->hydrogen()->formal_parameter_count(),
4027 instr->arity(), 4016 instr->arity(),
4028 instr, 4017 instr,
4029 R1_UNINITIALIZED); 4018 R1_UNINITIALIZED);
4030 } 4019 }
4031 4020
4032 4021
(...skipping 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after
5812 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5801 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5813 __ ldr(result, FieldMemOperand(scratch, 5802 __ ldr(result, FieldMemOperand(scratch,
5814 FixedArray::kHeaderSize - kPointerSize)); 5803 FixedArray::kHeaderSize - kPointerSize));
5815 __ bind(&done); 5804 __ bind(&done);
5816 } 5805 }
5817 5806
5818 5807
5819 #undef __ 5808 #undef __
5820 5809
5821 } } // namespace v8::internal 5810 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/hydrogen.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698