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

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

Issue 6062002: Merge 6006:6095 from bleeding_edge to experimental/gc branch. (Closed) Base URL: http://v8.googlecode.com/svn/branches/experimental/gc/
Patch Set: 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 | « src/arm/codegen-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 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); 202 __ LoadRoot(r0, Heap::kUndefinedValueRootIndex);
203 } 203 }
204 EmitReturnSequence(); 204 EmitReturnSequence();
205 205
206 // Force emit the constant pool, so it doesn't get emitted in the middle 206 // Force emit the constant pool, so it doesn't get emitted in the middle
207 // of the stack check table. 207 // of the stack check table.
208 masm()->CheckConstPool(true, false); 208 masm()->CheckConstPool(true, false);
209 } 209 }
210 210
211 211
212 void FullCodeGenerator::ClearAccumulator() {
213 __ mov(r0, Operand(Smi::FromInt(0)));
214 }
215
216
212 void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt) { 217 void FullCodeGenerator::EmitStackCheck(IterationStatement* stmt) {
213 Comment cmnt(masm_, "[ Stack check"); 218 Comment cmnt(masm_, "[ Stack check");
214 Label ok; 219 Label ok;
215 __ LoadRoot(ip, Heap::kStackLimitRootIndex); 220 __ LoadRoot(ip, Heap::kStackLimitRootIndex);
216 __ cmp(sp, Operand(ip)); 221 __ cmp(sp, Operand(ip));
217 __ b(hs, &ok); 222 __ b(hs, &ok);
218 StackCheckStub stub; 223 StackCheckStub stub;
219 __ CallStub(&stub); 224 __ CallStub(&stub);
220 __ bind(&ok); 225 __ bind(&ok);
221 PrepareForBailoutForId(stmt->EntryId(), NO_REGISTERS); 226 PrepareForBailoutForId(stmt->EntryId(), NO_REGISTERS);
(...skipping 3211 matching lines...) Expand 10 before | Expand all | Expand 10 after
3433 VisitForStackValue(expr->right()); 3438 VisitForStackValue(expr->right());
3434 __ InvokeBuiltin(Builtins::IN, CALL_JS); 3439 __ InvokeBuiltin(Builtins::IN, CALL_JS);
3435 PrepareForBailoutBeforeSplit(TOS_REG, false, NULL, NULL); 3440 PrepareForBailoutBeforeSplit(TOS_REG, false, NULL, NULL);
3436 __ LoadRoot(ip, Heap::kTrueValueRootIndex); 3441 __ LoadRoot(ip, Heap::kTrueValueRootIndex);
3437 __ cmp(r0, ip); 3442 __ cmp(r0, ip);
3438 Split(eq, if_true, if_false, fall_through); 3443 Split(eq, if_true, if_false, fall_through);
3439 break; 3444 break;
3440 3445
3441 case Token::INSTANCEOF: { 3446 case Token::INSTANCEOF: {
3442 VisitForStackValue(expr->right()); 3447 VisitForStackValue(expr->right());
3443 InstanceofStub stub; 3448 InstanceofStub stub(InstanceofStub::kNoFlags);
3444 __ CallStub(&stub); 3449 __ CallStub(&stub);
3445 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false); 3450 PrepareForBailoutBeforeSplit(TOS_REG, true, if_true, if_false);
3446 // The stub returns 0 for true. 3451 // The stub returns 0 for true.
3447 __ tst(r0, r0); 3452 __ tst(r0, r0);
3448 Split(eq, if_true, if_false, fall_through); 3453 Split(eq, if_true, if_false, fall_through);
3449 break; 3454 break;
3450 } 3455 }
3451 3456
3452 default: { 3457 default: {
3453 VisitForAccumulatorValue(expr->right()); 3458 VisitForAccumulatorValue(expr->right());
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
3606 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 3611 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
3607 __ add(pc, r1, Operand(masm_->CodeObject())); 3612 __ add(pc, r1, Operand(masm_->CodeObject()));
3608 } 3613 }
3609 3614
3610 3615
3611 #undef __ 3616 #undef __
3612 3617
3613 } } // namespace v8::internal 3618 } } // namespace v8::internal
3614 3619
3615 #endif // V8_TARGET_ARCH_ARM 3620 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.cc ('k') | src/arm/ic-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698