| OLD | NEW |
| 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 3431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3442 ASSERT_EQ(2, args->length()); | 3442 ASSERT_EQ(2, args->length()); |
| 3443 | 3443 |
| 3444 Load(args->at(0)); | 3444 Load(args->at(0)); |
| 3445 Load(args->at(1)); | 3445 Load(args->at(1)); |
| 3446 | 3446 |
| 3447 frame_->CallRuntime(Runtime::kStringAdd, 2); | 3447 frame_->CallRuntime(Runtime::kStringAdd, 2); |
| 3448 frame_->EmitPush(r0); | 3448 frame_->EmitPush(r0); |
| 3449 } | 3449 } |
| 3450 | 3450 |
| 3451 | 3451 |
| 3452 void CodeGenerator::GenerateRegExpExec(ZoneList<Expression*>* args) { |
| 3453 ASSERT_EQ(4, args->length()); |
| 3454 |
| 3455 Load(args->at(0)); |
| 3456 Load(args->at(1)); |
| 3457 Load(args->at(2)); |
| 3458 Load(args->at(3)); |
| 3459 |
| 3460 frame_->CallRuntime(Runtime::kRegExpExec, 4); |
| 3461 frame_->EmitPush(r0); |
| 3462 } |
| 3463 |
| 3464 |
| 3452 void CodeGenerator::GenerateObjectEquals(ZoneList<Expression*>* args) { | 3465 void CodeGenerator::GenerateObjectEquals(ZoneList<Expression*>* args) { |
| 3453 VirtualFrame::SpilledScope spilled_scope; | 3466 VirtualFrame::SpilledScope spilled_scope; |
| 3454 ASSERT(args->length() == 2); | 3467 ASSERT(args->length() == 2); |
| 3455 | 3468 |
| 3456 // Load the two objects into registers and perform the comparison. | 3469 // Load the two objects into registers and perform the comparison. |
| 3457 LoadAndSpill(args->at(0)); | 3470 LoadAndSpill(args->at(0)); |
| 3458 LoadAndSpill(args->at(1)); | 3471 LoadAndSpill(args->at(1)); |
| 3459 frame_->EmitPop(r0); | 3472 frame_->EmitPop(r0); |
| 3460 frame_->EmitPop(r1); | 3473 frame_->EmitPop(r1); |
| 3461 __ cmp(r0, Operand(r1)); | 3474 __ cmp(r0, Operand(r1)); |
| (...skipping 3001 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6463 int CompareStub::MinorKey() { | 6476 int CompareStub::MinorKey() { |
| 6464 // Encode the two parameters in a unique 16 bit value. | 6477 // Encode the two parameters in a unique 16 bit value. |
| 6465 ASSERT(static_cast<unsigned>(cc_) >> 28 < (1 << 15)); | 6478 ASSERT(static_cast<unsigned>(cc_) >> 28 < (1 << 15)); |
| 6466 return (static_cast<unsigned>(cc_) >> 27) | (strict_ ? 1 : 0); | 6479 return (static_cast<unsigned>(cc_) >> 27) | (strict_ ? 1 : 0); |
| 6467 } | 6480 } |
| 6468 | 6481 |
| 6469 | 6482 |
| 6470 #undef __ | 6483 #undef __ |
| 6471 | 6484 |
| 6472 } } // namespace v8::internal | 6485 } } // namespace v8::internal |
| OLD | NEW |