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

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

Issue 7084032: Add asserts and state tracking to ensure that we do not call (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 9 years, 6 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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 if (info->is_strict_mode() || info->is_native()) { 146 if (info->is_strict_mode() || info->is_native()) {
147 Label ok; 147 Label ok;
148 __ cmp(r5, Operand(0)); 148 __ cmp(r5, Operand(0));
149 __ b(eq, &ok); 149 __ b(eq, &ok);
150 int receiver_offset = scope()->num_parameters() * kPointerSize; 150 int receiver_offset = scope()->num_parameters() * kPointerSize;
151 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); 151 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex);
152 __ str(r2, MemOperand(sp, receiver_offset)); 152 __ str(r2, MemOperand(sp, receiver_offset));
153 __ bind(&ok); 153 __ bind(&ok);
154 } 154 }
155 155
156 // Open a frame scope to indicate that there is a frame on the stack. The
157 // MANUAL indicates that the scope shouldn't actually generate code to set up
158 // the frame (that is done below).
159 FrameScope frame_scope(masm_, StackFrame::MANUAL);
160
156 int locals_count = scope()->num_stack_slots(); 161 int locals_count = scope()->num_stack_slots();
157 162
158 __ Push(lr, fp, cp, r1); 163 __ Push(lr, fp, cp, r1);
159 if (locals_count > 0) { 164 if (locals_count > 0) {
160 // Load undefined value here, so the value is ready for the loop 165 // Load undefined value here, so the value is ready for the loop
161 // below. 166 // below.
162 __ LoadRoot(ip, Heap::kUndefinedValueRootIndex); 167 __ LoadRoot(ip, Heap::kUndefinedValueRootIndex);
163 } 168 }
164 // Adjust fp to point to caller's fp. 169 // Adjust fp to point to caller's fp.
165 __ add(fp, sp, Operand(2 * kPointerSize)); 170 __ add(fp, sp, Operand(2 * kPointerSize));
(...skipping 4201 matching lines...) Expand 10 before | Expand all | Expand 10 after
4367 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 4372 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
4368 __ add(pc, r1, Operand(masm_->CodeObject())); 4373 __ add(pc, r1, Operand(masm_->CodeObject()));
4369 } 4374 }
4370 4375
4371 4376
4372 #undef __ 4377 #undef __
4373 4378
4374 } } // namespace v8::internal 4379 } } // namespace v8::internal
4375 4380
4376 #endif // V8_TARGET_ARCH_ARM 4381 #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