| OLD | NEW |
| 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 3259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3270 void LCodeGen::DoCallKnownGlobal(LCallKnownGlobal* instr) { | 3270 void LCodeGen::DoCallKnownGlobal(LCallKnownGlobal* instr) { |
| 3271 ASSERT(ToRegister(instr->result()).is(v0)); | 3271 ASSERT(ToRegister(instr->result()).is(v0)); |
| 3272 CallKnownFunction(instr->target(), instr->arity(), instr, CALL_AS_FUNCTION); | 3272 CallKnownFunction(instr->target(), instr->arity(), instr, CALL_AS_FUNCTION); |
| 3273 } | 3273 } |
| 3274 | 3274 |
| 3275 | 3275 |
| 3276 void LCodeGen::DoCallNew(LCallNew* instr) { | 3276 void LCodeGen::DoCallNew(LCallNew* instr) { |
| 3277 ASSERT(ToRegister(instr->InputAt(0)).is(a1)); | 3277 ASSERT(ToRegister(instr->InputAt(0)).is(a1)); |
| 3278 ASSERT(ToRegister(instr->result()).is(v0)); | 3278 ASSERT(ToRegister(instr->result()).is(v0)); |
| 3279 | 3279 |
| 3280 Handle<Code> builtin = isolate()->builtins()->JSConstructCall(); | 3280 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); |
| 3281 __ li(a0, Operand(instr->arity())); | 3281 __ li(a0, Operand(instr->arity())); |
| 3282 CallCode(builtin, RelocInfo::CONSTRUCT_CALL, instr); | 3282 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); |
| 3283 } | 3283 } |
| 3284 | 3284 |
| 3285 | 3285 |
| 3286 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { | 3286 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { |
| 3287 CallRuntime(instr->function(), instr->arity(), instr); | 3287 CallRuntime(instr->function(), instr->arity(), instr); |
| 3288 } | 3288 } |
| 3289 | 3289 |
| 3290 | 3290 |
| 3291 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { | 3291 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
| 3292 Register object = ToRegister(instr->object()); | 3292 Register object = ToRegister(instr->object()); |
| (...skipping 1447 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4740 ASSERT(!environment->HasBeenRegistered()); | 4740 ASSERT(!environment->HasBeenRegistered()); |
| 4741 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); | 4741 RegisterEnvironmentForDeoptimization(environment, Safepoint::kNoLazyDeopt); |
| 4742 ASSERT(osr_pc_offset_ == -1); | 4742 ASSERT(osr_pc_offset_ == -1); |
| 4743 osr_pc_offset_ = masm()->pc_offset(); | 4743 osr_pc_offset_ = masm()->pc_offset(); |
| 4744 } | 4744 } |
| 4745 | 4745 |
| 4746 | 4746 |
| 4747 #undef __ | 4747 #undef __ |
| 4748 | 4748 |
| 4749 } } // namespace v8::internal | 4749 } } // namespace v8::internal |
| OLD | NEW |