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

Side by Side Diff: src/arm/full-codegen-arm.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/arm/code-stubs-arm.cc ('k') | src/ast.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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 // We know that we have written a function, which is not a smi. 735 // We know that we have written a function, which is not a smi.
736 __ mov(r1, Operand(cp)); 736 __ mov(r1, Operand(cp));
737 __ RecordWrite(r1, Operand(offset), r2, result_register()); 737 __ RecordWrite(r1, Operand(offset), r2, result_register());
738 } 738 }
739 break; 739 break;
740 740
741 case Slot::LOOKUP: { 741 case Slot::LOOKUP: {
742 __ mov(r2, Operand(variable->name())); 742 __ mov(r2, Operand(variable->name()));
743 // Declaration nodes are always introduced in one of two modes. 743 // Declaration nodes are always introduced in one of two modes.
744 ASSERT(mode == Variable::VAR || 744 ASSERT(mode == Variable::VAR ||
745 mode == Variable::CONST); 745 mode == Variable::CONST ||
746 PropertyAttributes attr = 746 mode == Variable::LET);
747 (mode == Variable::VAR) ? NONE : READ_ONLY; 747 PropertyAttributes attr = (mode == Variable::CONST) ? READ_ONLY : NONE;
748 __ mov(r1, Operand(Smi::FromInt(attr))); 748 __ mov(r1, Operand(Smi::FromInt(attr)));
749 // Push initial value, if any. 749 // Push initial value, if any.
750 // Note: For variables we must not push an initial value (such as 750 // Note: For variables we must not push an initial value (such as
751 // 'undefined') because we may have a (legal) redeclaration and we 751 // 'undefined') because we may have a (legal) redeclaration and we
752 // must not destroy the current value. 752 // must not destroy the current value.
753 if (mode == Variable::CONST) { 753 if (mode == Variable::CONST) {
754 __ LoadRoot(r0, Heap::kTheHoleValueRootIndex); 754 __ LoadRoot(r0, Heap::kTheHoleValueRootIndex);
755 __ Push(cp, r2, r1, r0); 755 __ Push(cp, r2, r1, r0);
756 } else if (function != NULL) { 756 } else if (function != NULL) {
757 __ Push(cp, r2, r1); 757 __ Push(cp, r2, r1);
(...skipping 3540 matching lines...) Expand 10 before | Expand all | Expand 10 after
4298 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 4298 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
4299 __ add(pc, r1, Operand(masm_->CodeObject())); 4299 __ add(pc, r1, Operand(masm_->CodeObject()));
4300 } 4300 }
4301 4301
4302 4302
4303 #undef __ 4303 #undef __
4304 4304
4305 } } // namespace v8::internal 4305 } } // namespace v8::internal
4306 4306
4307 #endif // V8_TARGET_ARCH_ARM 4307 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698