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

Side by Side Diff: src/crankshaft/hydrogen-environment-liveness.cc

Issue 1810483002: Introduce "optimized_out" oddball marker for compilers. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix debugger. Created 4 years, 9 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/crankshaft/hydrogen.cc ('k') | src/debug/debug-frames.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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 5
6 #include "src/crankshaft/hydrogen-environment-liveness.h" 6 #include "src/crankshaft/hydrogen-environment-liveness.h"
7 7
8 8
9 namespace v8 { 9 namespace v8 {
10 namespace internal { 10 namespace internal {
(...skipping 19 matching lines...) Expand all
30 first_simulate_invalid_for_index_.Add( 30 first_simulate_invalid_for_index_.Add(
31 new(zone()) BitVector(maximum_environment_size_, zone()), zone()); 31 new(zone()) BitVector(maximum_environment_size_, zone()), zone());
32 } 32 }
33 } 33 }
34 34
35 35
36 void HEnvironmentLivenessAnalysisPhase::ZapEnvironmentSlot( 36 void HEnvironmentLivenessAnalysisPhase::ZapEnvironmentSlot(
37 int index, HSimulate* simulate) { 37 int index, HSimulate* simulate) {
38 int operand_index = simulate->ToOperandIndex(index); 38 int operand_index = simulate->ToOperandIndex(index);
39 if (operand_index == -1) { 39 if (operand_index == -1) {
40 simulate->AddAssignedValue(index, graph()->GetConstantUndefined()); 40 simulate->AddAssignedValue(index, graph()->GetConstantOptimizedOut());
41 } else { 41 } else {
42 simulate->SetOperandAt(operand_index, graph()->GetConstantUndefined()); 42 simulate->SetOperandAt(operand_index, graph()->GetConstantOptimizedOut());
43 } 43 }
44 } 44 }
45 45
46 46
47 void HEnvironmentLivenessAnalysisPhase::ZapEnvironmentSlotsInSuccessors( 47 void HEnvironmentLivenessAnalysisPhase::ZapEnvironmentSlotsInSuccessors(
48 HBasicBlock* block, BitVector* live) { 48 HBasicBlock* block, BitVector* live) {
49 // When a value is live in successor A but dead in B, we must 49 // When a value is live in successor A but dead in B, we must
50 // explicitly zap it in B. 50 // explicitly zap it in B.
51 for (HSuccessorIterator it(block->end()); !it.Done(); it.Advance()) { 51 for (HSuccessorIterator it(block->end()); !it.Done(); it.Advance()) {
52 HBasicBlock* successor = it.Current(); 52 HBasicBlock* successor = it.Current();
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 bool HEnvironmentLivenessAnalysisPhase::VerifyClosures( 223 bool HEnvironmentLivenessAnalysisPhase::VerifyClosures(
224 Handle<JSFunction> a, Handle<JSFunction> b) { 224 Handle<JSFunction> a, Handle<JSFunction> b) {
225 Heap::RelocationLock for_heap_access(isolate()->heap()); 225 Heap::RelocationLock for_heap_access(isolate()->heap());
226 AllowHandleDereference for_verification; 226 AllowHandleDereference for_verification;
227 return a.is_identical_to(b); 227 return a.is_identical_to(b);
228 } 228 }
229 #endif 229 #endif
230 230
231 } // namespace internal 231 } // namespace internal
232 } // namespace v8 232 } // namespace v8
OLDNEW
« no previous file with comments | « src/crankshaft/hydrogen.cc ('k') | src/debug/debug-frames.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698