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

Side by Side Diff: src/x64/lithium-codegen-x64.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/x64/code-stubs-x64.cc ('k') | no next file » | 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 2991 matching lines...) Expand 10 before | Expand all | Expand 10 after
3002 __ Move(rcx, instr->name()); 3002 __ Move(rcx, instr->name());
3003 CallCode(ic, mode, instr); 3003 CallCode(ic, mode, instr);
3004 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); 3004 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
3005 } 3005 }
3006 3006
3007 3007
3008 void LCodeGen::DoCallFunction(LCallFunction* instr) { 3008 void LCodeGen::DoCallFunction(LCallFunction* instr) {
3009 ASSERT(ToRegister(instr->result()).is(rax)); 3009 ASSERT(ToRegister(instr->result()).is(rax));
3010 3010
3011 int arity = instr->arity(); 3011 int arity = instr->arity();
3012 CallFunctionStub stub(arity, RECEIVER_MIGHT_BE_IMPLICIT); 3012 CallFunctionStub stub(arity, NO_CALL_FUNCTION_FLAGS);
3013 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 3013 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
3014 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset)); 3014 __ movq(rsi, Operand(rbp, StandardFrameConstants::kContextOffset));
3015 __ Drop(1); 3015 __ Drop(1);
3016 } 3016 }
3017 3017
3018 3018
3019 void LCodeGen::DoCallGlobal(LCallGlobal* instr) { 3019 void LCodeGen::DoCallGlobal(LCallGlobal* instr) {
3020 ASSERT(ToRegister(instr->result()).is(rax)); 3020 ASSERT(ToRegister(instr->result()).is(rax));
3021 int arity = instr->arity(); 3021 int arity = instr->arity();
3022 RelocInfo::Mode mode = RelocInfo::CODE_TARGET_CONTEXT; 3022 RelocInfo::Mode mode = RelocInfo::CODE_TARGET_CONTEXT;
(...skipping 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
4184 RegisterEnvironmentForDeoptimization(environment); 4184 RegisterEnvironmentForDeoptimization(environment);
4185 ASSERT(osr_pc_offset_ == -1); 4185 ASSERT(osr_pc_offset_ == -1);
4186 osr_pc_offset_ = masm()->pc_offset(); 4186 osr_pc_offset_ = masm()->pc_offset();
4187 } 4187 }
4188 4188
4189 #undef __ 4189 #undef __
4190 4190
4191 } } // namespace v8::internal 4191 } } // namespace v8::internal
4192 4192
4193 #endif // V8_TARGET_ARCH_X64 4193 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/x64/code-stubs-x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698