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

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

Issue 8318014: Make _CallFunction proxy-aware. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Kevin's comment. Created 9 years, 1 month 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/builtins.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 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 3228 matching lines...) Expand 10 before | Expand all | Expand 10 after
3239 Handle<Code> ic = 3239 Handle<Code> ic =
3240 isolate()->stub_cache()->ComputeCallInitialize(arity, mode); 3240 isolate()->stub_cache()->ComputeCallInitialize(arity, mode);
3241 __ mov(r2, Operand(instr->name())); 3241 __ mov(r2, Operand(instr->name()));
3242 CallCode(ic, mode, instr); 3242 CallCode(ic, mode, instr);
3243 // Restore context register. 3243 // Restore context register.
3244 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 3244 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
3245 } 3245 }
3246 3246
3247 3247
3248 void LCodeGen::DoCallFunction(LCallFunction* instr) { 3248 void LCodeGen::DoCallFunction(LCallFunction* instr) {
3249 ASSERT(ToRegister(instr->function()).is(r1));
3249 ASSERT(ToRegister(instr->result()).is(r0)); 3250 ASSERT(ToRegister(instr->result()).is(r0));
3250 3251
3251 int arity = instr->arity(); 3252 int arity = instr->arity();
3252 CallFunctionStub stub(arity, NO_CALL_FUNCTION_FLAGS); 3253 CallFunctionStub stub(arity, NO_CALL_FUNCTION_FLAGS);
3253 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr); 3254 CallCode(stub.GetCode(), RelocInfo::CODE_TARGET, instr);
3254 __ Drop(1);
3255 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 3255 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
3256 } 3256 }
3257 3257
3258 3258
3259 void LCodeGen::DoCallGlobal(LCallGlobal* instr) { 3259 void LCodeGen::DoCallGlobal(LCallGlobal* instr) {
3260 ASSERT(ToRegister(instr->result()).is(r0)); 3260 ASSERT(ToRegister(instr->result()).is(r0));
3261 3261
3262 int arity = instr->arity(); 3262 int arity = instr->arity();
3263 RelocInfo::Mode mode = RelocInfo::CODE_TARGET_CONTEXT; 3263 RelocInfo::Mode mode = RelocInfo::CODE_TARGET_CONTEXT;
3264 Handle<Code> ic = 3264 Handle<Code> ic =
(...skipping 1332 matching lines...) Expand 10 before | Expand all | Expand 10 after
4597 ASSERT(osr_pc_offset_ == -1); 4597 ASSERT(osr_pc_offset_ == -1);
4598 osr_pc_offset_ = masm()->pc_offset(); 4598 osr_pc_offset_ = masm()->pc_offset();
4599 } 4599 }
4600 4600
4601 4601
4602 4602
4603 4603
4604 #undef __ 4604 #undef __
4605 4605
4606 } } // namespace v8::internal 4606 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/lithium-arm.cc ('k') | src/builtins.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698