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

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

Issue 5883003: Fix issue 974. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge/build/ia32
Patch Set: Better instruction sequence for x64. Created 10 years 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 | « no previous file | src/full-codegen.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 2010 the V8 project authors. All rights reserved. 1 // Copyright 2010 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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); 199 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex);
200 } 200 }
201 EmitReturnSequence(); 201 EmitReturnSequence();
202 202
203 // Force emit the constant pool, so it doesn't get emitted in the middle 203 // Force emit the constant pool, so it doesn't get emitted in the middle
204 // of the stack check table. 204 // of the stack check table.
205 masm()->CheckConstPool(true, false); 205 masm()->CheckConstPool(true, false);
206 } 206 }
207 207
208 208
209 void FullCodeGenerator::ClearAccumulator() {
210 __ mov(r0, Operand(Smi::FromInt(0)));
211 }
212
213
209 void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt) { 214 void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt) {
210 Comment cmnt(masm_, "[ Stack check"); 215 Comment cmnt(masm_, "[ Stack check");
211 Label ok; 216 Label ok;
212 __ LoadRoot(ip, Heap::kStackLimitRootIndex); 217 __ LoadRoot(ip, Heap::kStackLimitRootIndex);
213 __ cmp(sp, Operand(ip)); 218 __ cmp(sp, Operand(ip));
214 __ b(hs, &ok); 219 __ b(hs, &ok);
215 StackCheckStub stub; 220 StackCheckStub stub;
216 __ CallStub(&stub); 221 __ CallStub(&stub);
217 __ bind(&ok); 222 __ bind(&ok);
218 PrepareForBailoutForId(stmt->EntryId(), NO_REGISTERS); 223 PrepareForBailoutForId(stmt->EntryId(), NO_REGISTERS);
(...skipping 3372 matching lines...) Expand 10 before | Expand all | Expand 10 after
3591 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 3596 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
3592 __ add(pc, r1, Operand(masm_->CodeObject())); 3597 __ add(pc, r1, Operand(masm_->CodeObject()));
3593 } 3598 }
3594 3599
3595 3600
3596 #undef __ 3601 #undef __
3597 3602
3598 } } // namespace v8::internal 3603 } } // namespace v8::internal
3599 3604
3600 #endif // V8_TARGET_ARCH_ARM 3605 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/full-codegen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698