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 4526 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4537 Result left = frame_->Pop(); | 4537 Result left = frame_->Pop(); |
4538 right.ToRegister(); | 4538 right.ToRegister(); |
4539 left.ToRegister(); | 4539 left.ToRegister(); |
4540 __ cmp(right.reg(), Operand(left.reg())); | 4540 __ cmp(right.reg(), Operand(left.reg())); |
4541 right.Unuse(); | 4541 right.Unuse(); |
4542 left.Unuse(); | 4542 left.Unuse(); |
4543 destination()->Split(equal); | 4543 destination()->Split(equal); |
4544 } | 4544 } |
4545 | 4545 |
4546 | 4546 |
| 4547 void CodeGenerator::GenerateGetFramePointer(ZoneList<Expression*>* args) { |
| 4548 ASSERT(args->length() == 0); |
| 4549 ASSERT(kSmiTagSize == 1 && kSmiTag == 0); // shifting code depends on this |
| 4550 Result ebp_as_smi = allocator_->Allocate(); |
| 4551 ASSERT(ebp_as_smi.is_valid()); |
| 4552 __ mov(ebp_as_smi.reg(), Operand(ebp)); |
| 4553 __ shr(ebp_as_smi.reg(), kSmiTagSize); |
| 4554 frame_->Push(&ebp_as_smi); |
| 4555 } |
| 4556 |
| 4557 |
4547 void CodeGenerator::VisitCallRuntime(CallRuntime* node) { | 4558 void CodeGenerator::VisitCallRuntime(CallRuntime* node) { |
4548 if (CheckForInlineRuntimeCall(node)) { | 4559 if (CheckForInlineRuntimeCall(node)) { |
4549 return; | 4560 return; |
4550 } | 4561 } |
4551 | 4562 |
4552 ZoneList<Expression*>* args = node->arguments(); | 4563 ZoneList<Expression*>* args = node->arguments(); |
4553 Comment cmnt(masm_, "[ CallRuntime"); | 4564 Comment cmnt(masm_, "[ CallRuntime"); |
4554 Runtime::Function* function = node->function(); | 4565 Runtime::Function* function = node->function(); |
4555 | 4566 |
4556 if (function == NULL) { | 4567 if (function == NULL) { |
(...skipping 2661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7218 | 7229 |
7219 // Slow-case: Go through the JavaScript implementation. | 7230 // Slow-case: Go through the JavaScript implementation. |
7220 __ bind(&slow); | 7231 __ bind(&slow); |
7221 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); | 7232 __ InvokeBuiltin(Builtins::INSTANCE_OF, JUMP_FUNCTION); |
7222 } | 7233 } |
7223 | 7234 |
7224 | 7235 |
7225 #undef __ | 7236 #undef __ |
7226 | 7237 |
7227 } } // namespace v8::internal | 7238 } } // namespace v8::internal |
OLD | NEW |