OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |