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 3159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3170 __ LoadHeapObject(edi, instr->target()); | 3170 __ LoadHeapObject(edi, instr->target()); |
3171 CallKnownFunction(instr->target(), instr->arity(), instr, CALL_AS_FUNCTION); | 3171 CallKnownFunction(instr->target(), instr->arity(), instr, CALL_AS_FUNCTION); |
3172 } | 3172 } |
3173 | 3173 |
3174 | 3174 |
3175 void LCodeGen::DoCallNew(LCallNew* instr) { | 3175 void LCodeGen::DoCallNew(LCallNew* instr) { |
3176 ASSERT(ToRegister(instr->context()).is(esi)); | 3176 ASSERT(ToRegister(instr->context()).is(esi)); |
3177 ASSERT(ToRegister(instr->constructor()).is(edi)); | 3177 ASSERT(ToRegister(instr->constructor()).is(edi)); |
3178 ASSERT(ToRegister(instr->result()).is(eax)); | 3178 ASSERT(ToRegister(instr->result()).is(eax)); |
3179 | 3179 |
3180 Handle<Code> builtin = isolate()->builtins()->JSConstructCall(); | 3180 CallConstructStub stub(NO_CALL_FUNCTION_FLAGS); |
3181 __ Set(eax, Immediate(instr->arity())); | 3181 __ Set(eax, Immediate(instr->arity())); |
3182 CallCode(builtin, RelocInfo::CONSTRUCT_CALL, instr); | 3182 CallCode(stub.GetCode(), RelocInfo::CONSTRUCT_CALL, instr); |
3183 } | 3183 } |
3184 | 3184 |
3185 | 3185 |
3186 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { | 3186 void LCodeGen::DoCallRuntime(LCallRuntime* instr) { |
3187 CallRuntime(instr->function(), instr->arity(), instr); | 3187 CallRuntime(instr->function(), instr->arity(), instr); |
3188 } | 3188 } |
3189 | 3189 |
3190 | 3190 |
3191 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { | 3191 void LCodeGen::DoStoreNamedField(LStoreNamedField* instr) { |
3192 Register object = ToRegister(instr->object()); | 3192 Register object = ToRegister(instr->object()); |
(...skipping 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4617 this, pointers, Safepoint::kLazyDeopt); | 4617 this, pointers, Safepoint::kLazyDeopt); |
4618 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); | 4618 __ InvokeBuiltin(Builtins::IN, CALL_FUNCTION, safepoint_generator); |
4619 } | 4619 } |
4620 | 4620 |
4621 | 4621 |
4622 #undef __ | 4622 #undef __ |
4623 | 4623 |
4624 } } // namespace v8::internal | 4624 } } // namespace v8::internal |
4625 | 4625 |
4626 #endif // V8_TARGET_ARCH_IA32 | 4626 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |