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

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

Issue 7966038: Record function call targets, use them for inlining. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 2 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/code-stubs-arm.cc ('k') | src/ast.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 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 3223 matching lines...) Expand 10 before | Expand all | Expand 10 after
3234 CallCode(ic, mode, instr); 3234 CallCode(ic, mode, instr);
3235 // Restore context register. 3235 // Restore context register.
3236 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 3236 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
3237 } 3237 }
3238 3238
3239 3239
3240 void LCodeGen::DoCallFunction(LCallFunction* instr) { 3240 void LCodeGen::DoCallFunction(LCallFunction* instr) {
3241 ASSERT(ToRegister(instr->result()).is(r0)); 3241 ASSERT(ToRegister(instr->result()).is(r0));
3242 3242
3243 int arity = instr->arity(); 3243 int arity = instr->arity();
3244 CallFunctionStub stub(arity, RECEIVER_MIGHT_BE_IMPLICIT); 3244 CallFunctionStub stub(arity, NO_CALL_FUNCTION_FLAGS);
3245 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 3245 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
3246 __ Drop(1); 3246 __ Drop(1);
3247 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 3247 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
3248 } 3248 }
3249 3249
3250 3250
3251 void LCodeGen::DoCallGlobal(LCallGlobal* instr) { 3251 void LCodeGen::DoCallGlobal(LCallGlobal* instr) {
3252 ASSERT(ToRegister(instr->result()).is(r0)); 3252 ASSERT(ToRegister(instr->result()).is(r0));
3253 3253
3254 int arity = instr->arity(); 3254 int arity = instr->arity();
(...skipping 1299 matching lines...) Expand 10 before | Expand all | Expand 10 after
4554 ASSERT(osr_pc_offset_ == -1); 4554 ASSERT(osr_pc_offset_ == -1);
4555 osr_pc_offset_ = masm()->pc_offset(); 4555 osr_pc_offset_ = masm()->pc_offset();
4556 } 4556 }
4557 4557
4558 4558
4559 4559
4560 4560
4561 #undef __ 4561 #undef __
4562 4562
4563 } } // namespace v8::internal 4563 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/ast.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698