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

Side by Side Diff: src/ia32/fast-codegen-ia32.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 | « src/fast-codegen.cc ('k') | src/x64/fast-codegen-x64.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 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 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after
1386 __ mov(Operand(esp, kPointerSize), eax); 1386 __ mov(Operand(esp, kPointerSize), eax);
1387 break; 1387 break;
1388 case KEYED_PROPERTY: 1388 case KEYED_PROPERTY:
1389 __ mov(Operand(esp, 2 * kPointerSize), eax); 1389 __ mov(Operand(esp, 2 * kPointerSize), eax);
1390 break; 1390 break;
1391 } 1391 }
1392 break; 1392 break;
1393 } 1393 }
1394 } 1394 }
1395 1395
1396 // Call runtime for +1/-1. 1396 // Call stub for +1/-1.
1397 __ push(eax); 1397 __ push(eax);
1398 __ push(Immediate(Smi::FromInt(1))); 1398 __ push(Immediate(Smi::FromInt(1)));
1399 if (expr->op() == Token::INC) { 1399 GenericBinaryOpStub stub(expr->binary_op(),
1400 __ CallRuntime(Runtime::kNumberAdd, 2); 1400 NO_OVERWRITE,
1401 } else { 1401 NO_GENERIC_BINARY_FLAGS);
1402 __ CallRuntime(Runtime::kNumberSub, 2); 1402 __ CallStub(&stub);
1403 }
1404 1403
1405 // Store the value returned in eax. 1404 // Store the value returned in eax.
1406 switch (assign_type) { 1405 switch (assign_type) {
1407 case VARIABLE: 1406 case VARIABLE:
1408 __ push(eax); 1407 __ push(eax);
1409 if (expr->is_postfix()) { 1408 if (expr->is_postfix()) {
1410 EmitVariableAssignment(expr->expression()->AsVariableProxy()->var(), 1409 EmitVariableAssignment(expr->expression()->AsVariableProxy()->var(),
1411 Expression::kEffect); 1410 Expression::kEffect);
1412 // For all contexts except kEffect: We have the result on 1411 // For all contexts except kEffect: We have the result on
1413 // top of the stack. 1412 // top of the stack.
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
1702 __ add(Operand(edx), Immediate(masm_->CodeObject())); 1701 __ add(Operand(edx), Immediate(masm_->CodeObject()));
1703 __ mov(Operand(esp, 0), edx); 1702 __ mov(Operand(esp, 0), edx);
1704 // And return. 1703 // And return.
1705 __ ret(0); 1704 __ ret(0);
1706 } 1705 }
1707 1706
1708 1707
1709 #undef __ 1708 #undef __
1710 1709
1711 } } // namespace v8::internal 1710 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/fast-codegen.cc ('k') | src/x64/fast-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698