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

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

Issue 148223002: Remove CallICs (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update test262 status file Created 6 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 | « src/arm/lithium-arm.cc ('k') | src/arm/stub-cache-arm.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 3928 matching lines...) Expand 10 before | Expand all | Expand 10 after
3939 RecordSafepointWithLazyDeopt(instr, RECORD_SIMPLE_SAFEPOINT); 3939 RecordSafepointWithLazyDeopt(instr, RECORD_SIMPLE_SAFEPOINT);
3940 } 3940 }
3941 3941
3942 3942
3943 void LCodeGen::DoCallFunction(LCallFunction* instr) { 3943 void LCodeGen::DoCallFunction(LCallFunction* instr) {
3944 ASSERT(ToRegister(instr->context()).is(cp)); 3944 ASSERT(ToRegister(instr->context()).is(cp));
3945 ASSERT(ToRegister(instr->function()).is(r1)); 3945 ASSERT(ToRegister(instr->function()).is(r1));
3946 ASSERT(ToRegister(instr->result()).is(r0)); 3946 ASSERT(ToRegister(instr->result()).is(r0));
3947 3947
3948 int arity = instr->arity(); 3948 int arity = instr->arity();
3949 CallFunctionStub stub(arity, NO_CALL_FUNCTION_FLAGS); 3949 CallFunctionStub stub(arity, instr->hydrogen()->function_flags());
3950 if (instr->hydrogen()->IsTailCall()) { 3950 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
3951 if (NeedsEagerFrame()) __ mov(sp, fp);
3952 __ Jump(stub.GetCode(isolate()), RelocInfo::CODE_TARGET);
3953 } else {
3954 CallCode(stub.GetCode(isolate()), RelocInfo::CODE_TARGET, instr);
3955 }
3956 } 3951 }
3957 3952
3958 3953
3959 void LCodeGen::DoCallNew(LCallNew* instr) { 3954 void LCodeGen::DoCallNew(LCallNew* instr) {
3960 ASSERT(ToRegister(instr->context()).is(cp)); 3955 ASSERT(ToRegister(instr->context()).is(cp));
3961 ASSERT(ToRegister(instr->constructor()).is(r1)); 3956 ASSERT(ToRegister(instr->constructor()).is(r1));
3962 ASSERT(ToRegister(instr->result()).is(r0)); 3957 ASSERT(ToRegister(instr->result()).is(r0));
3963 3958
3964 __ mov(r0, Operand(instr->arity())); 3959 __ mov(r0, Operand(instr->arity()));
3965 // No cell in r2 for construct type feedback in optimized code 3960 // No cell in r2 for construct type feedback in optimized code
(...skipping 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after
5745 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); 5740 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index));
5746 __ ldr(result, FieldMemOperand(scratch, 5741 __ ldr(result, FieldMemOperand(scratch,
5747 FixedArray::kHeaderSize - kPointerSize)); 5742 FixedArray::kHeaderSize - kPointerSize));
5748 __ bind(&done); 5743 __ bind(&done);
5749 } 5744 }
5750 5745
5751 5746
5752 #undef __ 5747 #undef __
5753 5748
5754 } } // namespace v8::internal 5749 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/arm/stub-cache-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698