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

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

Issue 442024: Perform string add in generated code on IA-32 platforms... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 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
OLDNEW
1 // Copyright 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-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 3487 matching lines...) Expand 10 before | Expand all | Expand 10 after
3498 frame_->CallRuntime(Runtime::kMath_sin, 1); 3498 frame_->CallRuntime(Runtime::kMath_sin, 1);
3499 break; 3499 break;
3500 case COS: 3500 case COS:
3501 frame_->CallRuntime(Runtime::kMath_cos, 1); 3501 frame_->CallRuntime(Runtime::kMath_cos, 1);
3502 break; 3502 break;
3503 } 3503 }
3504 frame_->EmitPush(r0); 3504 frame_->EmitPush(r0);
3505 } 3505 }
3506 3506
3507 3507
3508 void CodeGenerator::GenerateStringAdd(ZoneList<Expression*>* args) {
3509 ASSERT_EQ(2, args->length());
3510
3511 Load(args->at(0));
3512 Load(args->at(1));
3513
3514 frame_->CallRuntime(Runtime::kStringAdd, 2);
3515 frame_->EmitPush(r0);
3516 }
3517
3518
3508 void CodeGenerator::GenerateObjectEquals(ZoneList<Expression*>* args) { 3519 void CodeGenerator::GenerateObjectEquals(ZoneList<Expression*>* args) {
3509 VirtualFrame::SpilledScope spilled_scope; 3520 VirtualFrame::SpilledScope spilled_scope;
3510 ASSERT(args->length() == 2); 3521 ASSERT(args->length() == 2);
3511 3522
3512 // Load the two objects into registers and perform the comparison. 3523 // Load the two objects into registers and perform the comparison.
3513 LoadAndSpill(args->at(0)); 3524 LoadAndSpill(args->at(0));
3514 LoadAndSpill(args->at(1)); 3525 LoadAndSpill(args->at(1));
3515 frame_->EmitPop(r0); 3526 frame_->EmitPop(r0);
3516 frame_->EmitPop(r1); 3527 frame_->EmitPop(r1);
3517 __ cmp(r0, Operand(r1)); 3528 __ cmp(r0, Operand(r1));
(...skipping 2952 matching lines...) Expand 10 before | Expand all | Expand 10 after
6470 int CompareStub::MinorKey() { 6481 int CompareStub::MinorKey() {
6471 // Encode the two parameters in a unique 16 bit value. 6482 // Encode the two parameters in a unique 16 bit value.
6472 ASSERT(static_cast<unsigned>(cc_) >> 28 < (1 << 15)); 6483 ASSERT(static_cast<unsigned>(cc_) >> 28 < (1 << 15));
6473 return (static_cast<unsigned>(cc_) >> 27) | (strict_ ? 1 : 0); 6484 return (static_cast<unsigned>(cc_) >> 27) | (strict_ ? 1 : 0);
6474 } 6485 }
6475 6486
6476 6487
6477 #undef __ 6488 #undef __
6478 6489
6479 } } // namespace v8::internal 6490 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/arm/codegen-arm.h ('k') | src/code-stubs.h » ('j') | src/ia32/codegen-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698