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

Side by Side Diff: src/ia32/lithium-ia32.cc

Issue 18154004: Replace custom builtin invocation instructions by a generic version (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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
OLDNEW
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 2563 matching lines...) Expand 10 before | Expand all | Expand 10 after
2574 } 2574 }
2575 2575
2576 2576
2577 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) { 2577 LInstruction* LChunkBuilder::DoFunctionLiteral(HFunctionLiteral* instr) {
2578 LOperand* context = UseFixed(instr->context(), esi); 2578 LOperand* context = UseFixed(instr->context(), esi);
2579 return MarkAsCall( 2579 return MarkAsCall(
2580 DefineFixed(new(zone()) LFunctionLiteral(context), eax), instr); 2580 DefineFixed(new(zone()) LFunctionLiteral(context), eax), instr);
2581 } 2581 }
2582 2582
2583 2583
2584 LInstruction* LChunkBuilder::DoDeleteProperty(HDeleteProperty* instr) {
2585 LOperand* context = UseFixed(instr->context(), esi);
2586 LOperand* object = UseAtStart(instr->object());
2587 LOperand* key = UseOrConstantAtStart(instr->key());
2588 LDeleteProperty* result = new(zone()) LDeleteProperty(context, object, key);
2589 return MarkAsCall(DefineFixed(result, eax), instr);
2590 }
2591
2592
2593 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) { 2584 LInstruction* LChunkBuilder::DoOsrEntry(HOsrEntry* instr) {
2594 ASSERT(argument_count_ == 0); 2585 ASSERT(argument_count_ == 0);
2595 allocator_->MarkAsOsrEntry(); 2586 allocator_->MarkAsOsrEntry();
2596 current_block_->last_environment()->set_ast_id(instr->ast_id()); 2587 current_block_->last_environment()->set_ast_id(instr->ast_id());
2597 return AssignEnvironment(new(zone()) LOsrEntry); 2588 return AssignEnvironment(new(zone()) LOsrEntry);
2598 } 2589 }
2599 2590
2600 2591
2601 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) { 2592 LInstruction* LChunkBuilder::DoParameter(HParameter* instr) {
2602 LParameter* result = new(zone()) LParameter; 2593 LParameter* result = new(zone()) LParameter;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
2763 argument_count_ -= argument_count; 2754 argument_count_ -= argument_count;
2764 } 2755 }
2765 2756
2766 HEnvironment* outer = current_block_->last_environment()-> 2757 HEnvironment* outer = current_block_->last_environment()->
2767 DiscardInlined(false); 2758 DiscardInlined(false);
2768 current_block_->UpdateEnvironment(outer); 2759 current_block_->UpdateEnvironment(outer);
2769 return pop; 2760 return pop;
2770 } 2761 }
2771 2762
2772 2763
2773 LInstruction* LChunkBuilder::DoIn(HIn* instr) {
2774 LOperand* context = UseFixed(instr->context(), esi);
2775 LOperand* key = UseOrConstantAtStart(instr->key());
2776 LOperand* object = UseOrConstantAtStart(instr->object());
2777 LIn* result = new(zone()) LIn(context, key, object);
2778 return MarkAsCall(DefineFixed(result, eax), instr);
2779 }
2780
2781
2782 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) { 2764 LInstruction* LChunkBuilder::DoForInPrepareMap(HForInPrepareMap* instr) {
2783 LOperand* context = UseFixed(instr->context(), esi); 2765 LOperand* context = UseFixed(instr->context(), esi);
2784 LOperand* object = UseFixed(instr->enumerable(), eax); 2766 LOperand* object = UseFixed(instr->enumerable(), eax);
2785 LForInPrepareMap* result = new(zone()) LForInPrepareMap(context, object); 2767 LForInPrepareMap* result = new(zone()) LForInPrepareMap(context, object);
2786 return MarkAsCall(DefineFixed(result, eax), instr, CAN_DEOPTIMIZE_EAGERLY); 2768 return MarkAsCall(DefineFixed(result, eax), instr, CAN_DEOPTIMIZE_EAGERLY);
2787 } 2769 }
2788 2770
2789 2771
2790 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) { 2772 LInstruction* LChunkBuilder::DoForInCacheArray(HForInCacheArray* instr) {
2791 LOperand* map = UseRegister(instr->map()); 2773 LOperand* map = UseRegister(instr->map());
(...skipping 12 matching lines...) Expand all
2804 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) { 2786 LInstruction* LChunkBuilder::DoLoadFieldByIndex(HLoadFieldByIndex* instr) {
2805 LOperand* object = UseRegister(instr->object()); 2787 LOperand* object = UseRegister(instr->object());
2806 LOperand* index = UseTempRegister(instr->index()); 2788 LOperand* index = UseTempRegister(instr->index());
2807 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index)); 2789 return DefineSameAsFirst(new(zone()) LLoadFieldByIndex(object, index));
2808 } 2790 }
2809 2791
2810 2792
2811 } } // namespace v8::internal 2793 } } // namespace v8::internal
2812 2794
2813 #endif // V8_TARGET_ARCH_IA32 2795 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« src/hydrogen.cc ('K') | « src/ia32/lithium-ia32.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698