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

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

Issue 7891042: Add asserts to ensure that we: (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 3 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/deoptimizer-arm.cc ('k') | src/arm/ic-arm.cc » ('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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 if (info->is_strict_mode() || info->is_native()) { 148 if (info->is_strict_mode() || info->is_native()) {
149 Label ok; 149 Label ok;
150 __ cmp(r5, Operand(0)); 150 __ cmp(r5, Operand(0));
151 __ b(eq, &ok); 151 __ b(eq, &ok);
152 int receiver_offset = info->scope()->num_parameters() * kPointerSize; 152 int receiver_offset = info->scope()->num_parameters() * kPointerSize;
153 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); 153 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex);
154 __ str(r2, MemOperand(sp, receiver_offset)); 154 __ str(r2, MemOperand(sp, receiver_offset));
155 __ bind(&ok); 155 __ bind(&ok);
156 } 156 }
157 157
158 // Open a frame scope to indicate that there is a frame on the stack. The
159 // MANUAL indicates that the scope shouldn't actually generate code to set up
160 // the frame (that is done below).
161 FrameScope frame_scope(masm_, StackFrame::MANUAL);
162
158 int locals_count = info->scope()->num_stack_slots(); 163 int locals_count = info->scope()->num_stack_slots();
159 164
160 __ Push(lr, fp, cp, r1); 165 __ Push(lr, fp, cp, r1);
161 if (locals_count > 0) { 166 if (locals_count > 0) {
162 // Load undefined value here, so the value is ready for the loop 167 // Load undefined value here, so the value is ready for the loop
163 // below. 168 // below.
164 __ LoadRoot(ip, Heap::kUndefinedValueRootIndex); 169 __ LoadRoot(ip, Heap::kUndefinedValueRootIndex);
165 } 170 }
166 // Adjust fp to point to caller's fp. 171 // Adjust fp to point to caller's fp.
167 __ add(fp, sp, Operand(2 * kPointerSize)); 172 __ add(fp, sp, Operand(2 * kPointerSize));
(...skipping 4051 matching lines...) Expand 10 before | Expand all | Expand 10 after
4219 *context_length = 0; 4224 *context_length = 0;
4220 return previous_; 4225 return previous_;
4221 } 4226 }
4222 4227
4223 4228
4224 #undef __ 4229 #undef __
4225 4230
4226 } } // namespace v8::internal 4231 } } // namespace v8::internal
4227 4232
4228 #endif // V8_TARGET_ARCH_ARM 4233 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/deoptimizer-arm.cc ('k') | src/arm/ic-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698