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

Side by Side Diff: src/mips/full-codegen-mips.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/mips/debug-mips.cc ('k') | src/mips/ic-mips.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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // function calls. 155 // function calls.
156 if (info->is_strict_mode() || info->is_native()) { 156 if (info->is_strict_mode() || info->is_native()) {
157 Label ok; 157 Label ok;
158 __ Branch(&ok, eq, t1, Operand(zero_reg)); 158 __ Branch(&ok, eq, t1, Operand(zero_reg));
159 int receiver_offset = info->scope()->num_parameters() * kPointerSize; 159 int receiver_offset = info->scope()->num_parameters() * kPointerSize;
160 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex); 160 __ LoadRoot(a2, Heap::kUndefinedValueRootIndex);
161 __ sw(a2, MemOperand(sp, receiver_offset)); 161 __ sw(a2, MemOperand(sp, receiver_offset));
162 __ bind(&ok); 162 __ bind(&ok);
163 } 163 }
164 164
165 // Open a frame scope to indicate that there is a frame on the stack. The
166 // MANUAL indicates that the scope shouldn't actually generate code to set up
167 // the frame (that is done below).
168 FrameScope frame_scope(masm_, StackFrame::MANUAL);
169
165 int locals_count = info->scope()->num_stack_slots(); 170 int locals_count = info->scope()->num_stack_slots();
166 171
167 __ Push(ra, fp, cp, a1); 172 __ Push(ra, fp, cp, a1);
168 if (locals_count > 0) { 173 if (locals_count > 0) {
169 // Load undefined value here, so the value is ready for the loop 174 // Load undefined value here, so the value is ready for the loop
170 // below. 175 // below.
171 __ LoadRoot(at, Heap::kUndefinedValueRootIndex); 176 __ LoadRoot(at, Heap::kUndefinedValueRootIndex);
172 } 177 }
173 // Adjust fp to point to caller's fp. 178 // Adjust fp to point to caller's fp.
174 __ Addu(fp, sp, Operand(2 * kPointerSize)); 179 __ Addu(fp, sp, Operand(2 * kPointerSize));
(...skipping 4068 matching lines...) Expand 10 before | Expand all | Expand 10 after
4243 *context_length = 0; 4248 *context_length = 0;
4244 return previous_; 4249 return previous_;
4245 } 4250 }
4246 4251
4247 4252
4248 #undef __ 4253 #undef __
4249 4254
4250 } } // namespace v8::internal 4255 } } // namespace v8::internal
4251 4256
4252 #endif // V8_TARGET_ARCH_MIPS 4257 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/debug-mips.cc ('k') | src/mips/ic-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698