| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 2413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2424 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { | 2424 LInstruction* LChunkBuilder::DoRegExpLiteral(HRegExpLiteral* instr) { |
| 2425 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, r0), instr); | 2425 return MarkAsCall(DefineFixed(new(zone()) LRegExpLiteral, r0), instr); |
| 2426 } | 2426 } |
| 2427 | 2427 |
| 2428 | 2428 |
| 2429 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { | 2429 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { |
| 2430 return MarkAsCall(DefineFixed(new(zone()) LFunctionLiteral, r0), instr); | 2430 return MarkAsCall(DefineFixed(new(zone()) LFunctionLiteral, r0), instr); |
| 2431 } | 2431 } |
| 2432 | 2432 |
| 2433 | 2433 |
| 2434 LInstruction* LChunkBuilder::DoDeleteProperty(HDeleteProperty* instr) { | |
| 2435 LOperand* object = UseFixed(instr->object(), r0); | |
| 2436 LOperand* key = UseFixed(instr->key(), r1); | |
| 2437 LDeleteProperty* result = new(zone()) LDeleteProperty(object, key); | |
| 2438 return MarkAsCall(DefineFixed(result, r0), instr); | |
| 2439 } | |
| 2440 | |
| 2441 | |
| 2442 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { | 2434 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { |
| 2443 ASSERT(argument_count_ == 0); | 2435 ASSERT(argument_count_ == 0); |
| 2444 allocator_->MarkAsOsrEntry(); | 2436 allocator_->MarkAsOsrEntry(); |
| 2445 current_block_->last_environment()->set_ast_id(instr->ast_id()); | 2437 current_block_->last_environment()->set_ast_id(instr->ast_id()); |
| 2446 return AssignEnvironment(new(zone()) LOsrEntry); | 2438 return AssignEnvironment(new(zone()) LOsrEntry); |
| 2447 } | 2439 } |
| 2448 | 2440 |
| 2449 | 2441 |
| 2450 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { | 2442 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { |
| 2451 LParameter* result = new(zone()) LParameter; | 2443 LParameter* result = new(zone()) LParameter; |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2604 } | 2596 } |
| 2605 | 2597 |
| 2606 HEnvironment* outer = current_block_->last_environment()-> | 2598 HEnvironment* outer = current_block_->last_environment()-> |
| 2607 DiscardInlined(false); | 2599 DiscardInlined(false); |
| 2608 current_block_->UpdateEnvironment(outer); | 2600 current_block_->UpdateEnvironment(outer); |
| 2609 | 2601 |
| 2610 return pop; | 2602 return pop; |
| 2611 } | 2603 } |
| 2612 | 2604 |
| 2613 | 2605 |
| 2614 LInstruction* LChunkBuilder::DoIn(HIn* instr) { | |
| 2615 LOperand* key = UseRegisterAtStart(instr->key()); | |
| 2616 LOperand* object = UseRegisterAtStart(instr->object()); | |
| 2617 LIn* result = new(zone()) LIn(key, object); | |
| 2618 return MarkAsCall(DefineFixed(result, r0), instr); | |
| 2619 } | |
| 2620 | |
| 2621 | |
| 2622 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) { | 2606 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) { |
| 2623 LOperand* object = UseFixed(instr->enumerable(), r0); | 2607 LOperand* object = UseFixed(instr->enumerable(), r0); |
| 2624 LForInPrepareMap* result = new(zone()) LForInPrepareMap(object); | 2608 LForInPrepareMap* result = new(zone()) LForInPrepareMap(object); |
| 2625 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); | 2609 return MarkAsCall(DefineFixed(result, r0), instr, CAN_DEOPTIMIZE_EAGERLY); |
| 2626 } | 2610 } |
| 2627 | 2611 |
| 2628 | 2612 |
| 2629 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) { | 2613 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) { |
| 2630 LOperand* map = UseRegister(instr->map()); | 2614 LOperand* map = UseRegister(instr->map()); |
| 2631 return AssignEnvironment(DefineAsRegister(new(zone()) LForInCacheArray(map))); | 2615 return AssignEnvironment(DefineAsRegister(new(zone()) LForInCacheArray(map))); |
| 2632 } | 2616 } |
| 2633 | 2617 |
| 2634 | 2618 |
| 2635 LInstruction* LChunkBuilder::DoCheckMapValue(HCheckMapValue* instr) { | 2619 LInstruction* LChunkBuilder::DoCheckMapValue(HCheckMapValue* instr) { |
| 2636 LOperand* value = UseRegisterAtStart(instr->value()); | 2620 LOperand* value = UseRegisterAtStart(instr->value()); |
| 2637 LOperand* map = UseRegisterAtStart(instr->map()); | 2621 LOperand* map = UseRegisterAtStart(instr->map()); |
| 2638 return AssignEnvironment(new(zone()) LCheckMapValue(value, map)); | 2622 return AssignEnvironment(new(zone()) LCheckMapValue(value, map)); |
| 2639 } | 2623 } |
| 2640 | 2624 |
| 2641 | 2625 |
| 2642 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { | 2626 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { |
| 2643 LOperand* object = UseRegister(instr->object()); | 2627 LOperand* object = UseRegister(instr->object()); |
| 2644 LOperand* index = UseRegister(instr->index()); | 2628 LOperand* index = UseRegister(instr->index()); |
| 2645 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); | 2629 return DefineAsRegister(new(zone()) LLoadFieldByIndex(object, index)); |
| 2646 } | 2630 } |
| 2647 | 2631 |
| 2648 | 2632 |
| 2649 } } // namespace v8::internal | 2633 } } // namespace v8::internal |
| OLD | NEW |