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

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