| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_X87 | 7 #if V8_TARGET_ARCH_X87 |
| 8 | 8 |
| 9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
| 10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
| (...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 } | 551 } |
| 552 | 552 |
| 553 | 553 |
| 554 void MathPowStub::Generate(MacroAssembler* masm) { | 554 void MathPowStub::Generate(MacroAssembler* masm) { |
| 555 // No SSE2 support | 555 // No SSE2 support |
| 556 UNREACHABLE(); | 556 UNREACHABLE(); |
| 557 } | 557 } |
| 558 | 558 |
| 559 | 559 |
| 560 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { | 560 void FunctionPrototypeStub::Generate(MacroAssembler* masm) { |
| 561 // ----------- S t a t e ------------- | |
| 562 // -- ecx : name | |
| 563 // -- edx : receiver | |
| 564 // -- esp[0] : return address | |
| 565 // ----------------------------------- | |
| 566 Label miss; | 561 Label miss; |
| 562 Register receiver = LoadIC::ReceiverRegister(); |
| 567 | 563 |
| 568 if (kind() == Code::KEYED_LOAD_IC) { | 564 NamedLoadHandlerCompiler::GenerateLoadFunctionPrototype(masm, receiver, eax, |
| 569 __ cmp(ecx, Immediate(isolate()->factory()->prototype_string())); | 565 ebx, &miss); |
| 570 __ j(not_equal, &miss); | |
| 571 } | |
| 572 | |
| 573 StubCompiler::GenerateLoadFunctionPrototype(masm, edx, eax, ebx, &miss); | |
| 574 __ bind(&miss); | 566 __ bind(&miss); |
| 575 StubCompiler::TailCallBuiltin( | 567 PropertyAccessCompiler::TailCallBuiltin( |
| 576 masm, BaseLoadStoreStubCompiler::MissBuiltin(kind())); | 568 masm, PropertyAccessCompiler::MissBuiltin(Code::LOAD_IC)); |
| 577 } | 569 } |
| 578 | 570 |
| 579 | 571 |
| 580 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { | 572 void ArgumentsAccessStub::GenerateReadElement(MacroAssembler* masm) { |
| 581 // The key is in edx and the parameter count is in eax. | 573 // The key is in edx and the parameter count is in eax. |
| 582 | 574 |
| 583 // The displacement is used for skipping the frame pointer on the | 575 // The displacement is used for skipping the frame pointer on the |
| 584 // stack. It is the offset of the last parameter (if any) relative | 576 // stack. It is the offset of the last parameter (if any) relative |
| 585 // to the frame pointer. | 577 // to the frame pointer. |
| 586 static const int kDisplacement = 1 * kPointerSize; | 578 static const int kDisplacement = 1 * kPointerSize; |
| (...skipping 4029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4616 Operand(ebp, 7 * kPointerSize), | 4608 Operand(ebp, 7 * kPointerSize), |
| 4617 NULL); | 4609 NULL); |
| 4618 } | 4610 } |
| 4619 | 4611 |
| 4620 | 4612 |
| 4621 #undef __ | 4613 #undef __ |
| 4622 | 4614 |
| 4623 } } // namespace v8::internal | 4615 } } // namespace v8::internal |
| 4624 | 4616 |
| 4625 #endif // V8_TARGET_ARCH_X87 | 4617 #endif // V8_TARGET_ARCH_X87 |
| OLD | NEW |