OLD | NEW |
1 // Copyright 2009 the V8 project authors. All rights reserved. | 1 // Copyright 2009 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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
819 TestAndBranch(eax, &discard, false_label_); | 819 TestAndBranch(eax, &discard, false_label_); |
820 __ bind(&discard); | 820 __ bind(&discard); |
821 __ add(Operand(esp), Immediate(kPointerSize)); | 821 __ add(Operand(esp), Immediate(kPointerSize)); |
822 __ jmp(true_label_); | 822 __ jmp(true_label_); |
823 break; | 823 break; |
824 } | 824 } |
825 } | 825 } |
826 } | 826 } |
827 | 827 |
828 | 828 |
829 void FastCodeGenerator::EmitNamedPropertyLoad(Property* prop, Expression::Contex
t context) { | 829 void FastCodeGenerator::EmitNamedPropertyLoad(Property* prop, |
| 830 Expression::Context context) { |
830 Literal* key = prop->key()->AsLiteral(); | 831 Literal* key = prop->key()->AsLiteral(); |
831 __ mov(ecx, Immediate(key->handle())); | 832 __ mov(ecx, Immediate(key->handle())); |
832 Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize)); | 833 Handle<Code> ic(Builtins::builtin(Builtins::LoadIC_Initialize)); |
833 __ call(ic, RelocInfo::CODE_TARGET); | 834 __ call(ic, RelocInfo::CODE_TARGET); |
834 Move(context, eax); | 835 Move(context, eax); |
835 } | 836 } |
836 | 837 |
837 | 838 |
838 void FastCodeGenerator::EmitKeyedPropertyLoad(Expression::Context context) { | 839 void FastCodeGenerator::EmitKeyedPropertyLoad(Expression::Context context) { |
839 Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize)); | 840 Handle<Code> ic(Builtins::builtin(Builtins::KeyedLoadIC_Initialize)); |
(...skipping 819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1659 | 1660 |
1660 void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) { | 1661 void FastCodeGenerator::VisitThisFunction(ThisFunction* expr) { |
1661 __ mov(eax, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); | 1662 __ mov(eax, Operand(ebp, JavaScriptFrameConstants::kFunctionOffset)); |
1662 Move(expr->context(), eax); | 1663 Move(expr->context(), eax); |
1663 } | 1664 } |
1664 | 1665 |
1665 #undef __ | 1666 #undef __ |
1666 | 1667 |
1667 | 1668 |
1668 } } // namespace v8::internal | 1669 } } // namespace v8::internal |
OLD | NEW |