Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: src/x64/codegen-x64.cc

Issue 149320: X64: Added unimplemented method in codegen-x64.cc. (Closed)
Patch Set: Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 3798 matching lines...) Expand 10 before | Expand all | Expand 10 after
3809 default: 3809 default:
3810 UNREACHABLE(); 3810 UNREACHABLE();
3811 return Operand(rsp, 0); 3811 return Operand(rsp, 0);
3812 } 3812 }
3813 } 3813 }
3814 3814
3815 3815
3816 Operand CodeGenerator::ContextSlotOperandCheckExtensions(Slot* slot, 3816 Operand CodeGenerator::ContextSlotOperandCheckExtensions(Slot* slot,
3817 Result tmp, 3817 Result tmp,
3818 JumpTarget* slow) { 3818 JumpTarget* slow) {
3819 UNIMPLEMENTED(); 3819 ASSERT(slot->type() == Slot::CONTEXT);
3820 return Operand(rsp, 0); 3820 ASSERT(tmp.is_register());
3821 Register context = rsi;
3822
3823 for (Scope* s = scope(); s != slot->var()->scope(); s = s->outer_scope()) {
3824 if (s->num_heap_slots() > 0) {
3825 if (s->calls_eval()) {
3826 // Check that extension is NULL.
3827 __ cmpq(ContextOperand(context, Context::EXTENSION_INDEX),
3828 Immediate(0));
3829 slow->Branch(not_equal, not_taken);
3830 }
3831 __ movq(tmp.reg(), ContextOperand(context, Context::CLOSURE_INDEX));
3832 __ movq(tmp.reg(), FieldOperand(tmp.reg(), JSFunction::kContextOffset));
3833 context = tmp.reg();
3834 }
3835 }
3836 // Check that last extension is NULL.
3837 __ cmpq(ContextOperand(context, Context::EXTENSION_INDEX), Immediate(0));
3838 slow->Branch(not_equal, not_taken);
3839 __ movq(tmp.reg(), ContextOperand(context, Context::FCONTEXT_INDEX));
3840 return ContextOperand(tmp.reg(), slot->index());
3821 } 3841 }
3822 3842
3823 3843
3824 void CodeGenerator::LoadFromSlot(Slot* slot, TypeofState typeof_state) { 3844 void CodeGenerator::LoadFromSlot(Slot* slot, TypeofState typeof_state) {
3825 if (slot->type() == Slot::LOOKUP) { 3845 if (slot->type() == Slot::LOOKUP) {
3826 ASSERT(slot->var()->is_dynamic()); 3846 ASSERT(slot->var()->is_dynamic());
3827 3847
3828 JumpTarget slow; 3848 JumpTarget slow;
3829 JumpTarget done; 3849 JumpTarget done;
3830 Result value; 3850 Result value;
(...skipping 3116 matching lines...) Expand 10 before | Expand all | Expand 10 after
6947 int CompareStub::MinorKey() { 6967 int CompareStub::MinorKey() {
6948 // Encode the two parameters in a unique 16 bit value. 6968 // Encode the two parameters in a unique 16 bit value.
6949 ASSERT(static_cast<unsigned>(cc_) < (1 << 15)); 6969 ASSERT(static_cast<unsigned>(cc_) < (1 << 15));
6950 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0); 6970 return (static_cast<unsigned>(cc_) << 1) | (strict_ ? 1 : 0);
6951 } 6971 }
6952 6972
6953 6973
6954 #undef __ 6974 #undef __
6955 6975
6956 } } // namespace v8::internal 6976 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698