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

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

Issue 548029: Fix a problem when compiling built-ins with the top-level compiler.... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 11 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 | « no previous file | src/ast.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1417 __ str(r0, MemOperand(sp, kPointerSize)); 1417 __ str(r0, MemOperand(sp, kPointerSize));
1418 break; 1418 break;
1419 case KEYED_PROPERTY: 1419 case KEYED_PROPERTY:
1420 __ str(r0, MemOperand(sp, 2 * kPointerSize)); 1420 __ str(r0, MemOperand(sp, 2 * kPointerSize));
1421 break; 1421 break;
1422 } 1422 }
1423 break; 1423 break;
1424 } 1424 }
1425 } 1425 }
1426 1426
1427 // Call runtime for +1/-1. 1427 // Call stub for +1/-1.
1428 if (expr->op() == Token::INC) { 1428 __ mov(r1, Operand(expr->op() == Token::INC
1429 __ mov(ip, Operand(Smi::FromInt(1))); 1429 ? Smi::FromInt(1)
1430 } else { 1430 : Smi::FromInt(-1)));
1431 __ mov(ip, Operand(Smi::FromInt(-1))); 1431 GenericBinaryOpStub stub(Token::ADD, NO_OVERWRITE);
1432 } 1432 __ CallStub(&stub);
1433 __ stm(db_w, sp, ip.bit() | r0.bit());
1434 __ CallRuntime(Runtime::kNumberAdd, 2);
1435 1433
1436 // Store the value returned in r0. 1434 // Store the value returned in r0.
1437 switch (assign_type) { 1435 switch (assign_type) {
1438 case VARIABLE: 1436 case VARIABLE:
1439 __ push(r0); 1437 __ push(r0);
1440 if (expr->is_postfix()) { 1438 if (expr->is_postfix()) {
1441 EmitVariableAssignment(expr->expression()->AsVariableProxy()->var(), 1439 EmitVariableAssignment(expr->expression()->AsVariableProxy()->var(),
1442 Expression::kEffect); 1440 Expression::kEffect);
1443 // For all contexts except kEffect: We have the result on 1441 // For all contexts except kEffect: We have the result on
1444 // top of the stack. 1442 // top of the stack.
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
1729 __ pop(result_register()); 1727 __ pop(result_register());
1730 ASSERT_EQ(1, kSmiTagSize + kSmiShiftSize); 1728 ASSERT_EQ(1, kSmiTagSize + kSmiShiftSize);
1731 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value. 1729 __ mov(r1, Operand(r1, ASR, 1)); // Un-smi-tag value.
1732 __ add(pc, r1, Operand(masm_->CodeObject())); 1730 __ add(pc, r1, Operand(masm_->CodeObject()));
1733 } 1731 }
1734 1732
1735 1733
1736 #undef __ 1734 #undef __
1737 1735
1738 } } // namespace v8::internal 1736 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698