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

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

Issue 7631020: Version 3.5.6. (Closed) Base URL: https://v8.googlecode.com/svn/trunk
Patch Set: Created 9 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « src/weakmap.js ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 694 matching lines...) Expand 10 before | Expand all | Expand 10 after
705 int offset = Context::SlotOffset(slot->index()); 705 int offset = Context::SlotOffset(slot->index());
706 __ movq(rbx, rsi); 706 __ movq(rbx, rsi);
707 __ RecordWrite(rbx, offset, result_register(), rcx); 707 __ RecordWrite(rbx, offset, result_register(), rcx);
708 } 708 }
709 break; 709 break;
710 710
711 case Slot::LOOKUP: { 711 case Slot::LOOKUP: {
712 __ push(rsi); 712 __ push(rsi);
713 __ Push(variable->name()); 713 __ Push(variable->name());
714 // Declaration nodes are always introduced in one of two modes. 714 // Declaration nodes are always introduced in one of two modes.
715 ASSERT(mode == Variable::VAR || mode == Variable::CONST); 715 ASSERT(mode == Variable::VAR ||
716 PropertyAttributes attr = (mode == Variable::VAR) ? NONE : READ_ONLY; 716 mode == Variable::CONST ||
717 mode == Variable::LET);
718 PropertyAttributes attr = (mode == Variable::CONST) ? READ_ONLY : NONE;
717 __ Push(Smi::FromInt(attr)); 719 __ Push(Smi::FromInt(attr));
718 // Push initial value, if any. 720 // Push initial value, if any.
719 // Note: For variables we must not push an initial value (such as 721 // Note: For variables we must not push an initial value (such as
720 // 'undefined') because we may have a (legal) redeclaration and we 722 // 'undefined') because we may have a (legal) redeclaration and we
721 // must not destroy the current value. 723 // must not destroy the current value.
722 if (mode == Variable::CONST) { 724 if (mode == Variable::CONST) {
723 __ PushRoot(Heap::kTheHoleValueRootIndex); 725 __ PushRoot(Heap::kTheHoleValueRootIndex);
724 } else if (function != NULL) { 726 } else if (function != NULL) {
725 VisitForStackValue(function); 727 VisitForStackValue(function);
726 } else { 728 } else {
(...skipping 3508 matching lines...) Expand 10 before | Expand all | Expand 10 after
4235 __ jmp(rdx); 4237 __ jmp(rdx);
4236 } 4238 }
4237 4239
4238 4240
4239 #undef __ 4241 #undef __
4240 4242
4241 4243
4242 } } // namespace v8::internal 4244 } } // namespace v8::internal
4243 4245
4244 #endif // V8_TARGET_ARCH_X64 4246 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/weakmap.js ('k') | src/x64/lithium-codegen-x64.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698