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

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

Issue 1317383002: Crankshaft is now able to compile top level code even if there is a ScriptContext. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebasing Created 5 years, 3 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
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mips64/lithium-codegen-mips64.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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <sstream> 5 #include <sstream>
6 6
7 #if V8_TARGET_ARCH_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/hydrogen-osr.h" 9 #include "src/hydrogen-osr.h"
10 #include "src/lithium-inl.h" 10 #include "src/lithium-inl.h"
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after
917 #endif 917 #endif
918 918
919 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) { 919 if (FLAG_stress_pointer_maps && !instr->HasPointerMap()) {
920 instr = AssignPointerMap(instr); 920 instr = AssignPointerMap(instr);
921 } 921 }
922 if (FLAG_stress_environments && !instr->HasEnvironment()) { 922 if (FLAG_stress_environments && !instr->HasEnvironment()) {
923 instr = AssignEnvironment(instr); 923 instr = AssignEnvironment(instr);
924 } 924 }
925 chunk_->AddInstruction(instr, current_block_); 925 chunk_->AddInstruction(instr, current_block_);
926 926
927 if (instr->IsCall()) { 927 if (instr->IsCall() || instr->IsPrologue()) {
928 HValue* hydrogen_value_for_lazy_bailout = hydrogen_val; 928 HValue* hydrogen_value_for_lazy_bailout = hydrogen_val;
929 if (hydrogen_val->HasObservableSideEffects()) { 929 if (hydrogen_val->HasObservableSideEffects()) {
930 HSimulate* sim = HSimulate::cast(hydrogen_val->next()); 930 HSimulate* sim = HSimulate::cast(hydrogen_val->next());
931 sim->ReplayEnvironment(current_block_->last_environment()); 931 sim->ReplayEnvironment(current_block_->last_environment());
932 hydrogen_value_for_lazy_bailout = sim; 932 hydrogen_value_for_lazy_bailout = sim;
933 } 933 }
934 LInstruction* bailout = AssignEnvironment(new(zone()) LLazyBailout()); 934 LInstruction* bailout = AssignEnvironment(new(zone()) LLazyBailout());
935 bailout->set_hydrogen_value(hydrogen_value_for_lazy_bailout); 935 bailout->set_hydrogen_value(hydrogen_value_for_lazy_bailout);
936 chunk_->AddInstruction(bailout, current_block_); 936 chunk_->AddInstruction(bailout, current_block_);
937 } 937 }
938 } 938 }
939 939
940 940
941 LInstruction* LChunkBuilder::DoPrologue(HPrologue* instr) {
942 return new (zone()) LPrologue();
943 }
944
945
941 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) { 946 LInstruction* LChunkBuilder::DoGoto(HGoto* instr) {
942 return new(zone()) LGoto(instr->FirstSuccessor()); 947 return new(zone()) LGoto(instr->FirstSuccessor());
943 } 948 }
944 949
945 950
946 LInstruction* LChunkBuilder::DoBranch(HBranch* instr) { 951 LInstruction* LChunkBuilder::DoBranch(HBranch* instr) {
947 HValue* value = instr->value(); 952 HValue* value = instr->value();
948 Representation r = value->representation(); 953 Representation r = value->representation();
949 HType type = value->type(); 954 HType type = value->type();
950 ToBooleanStub::Types expected = instr->expected_input_types(); 955 ToBooleanStub::Types expected = instr->expected_input_types();
(...skipping 1691 matching lines...) Expand 10 before | Expand all | Expand 10 after
2642 LOperand* function = UseRegisterAtStart(instr->function()); 2647 LOperand* function = UseRegisterAtStart(instr->function());
2643 LAllocateBlockContext* result = 2648 LAllocateBlockContext* result =
2644 new(zone()) LAllocateBlockContext(context, function); 2649 new(zone()) LAllocateBlockContext(context, function);
2645 return MarkAsCall(DefineFixed(result, cp), instr); 2650 return MarkAsCall(DefineFixed(result, cp), instr);
2646 } 2651 }
2647 2652
2648 } // namespace internal 2653 } // namespace internal
2649 } // namespace v8 2654 } // namespace v8
2650 2655
2651 #endif // V8_TARGET_ARCH_MIPS 2656 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mips/lithium-mips.h ('k') | src/mips64/lithium-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698