V8 Project
hydrogen-osr.h
Go to the documentation of this file.
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
3 // found in the LICENSE file.
4 
5 #ifndef V8_HYDROGEN_OSR_H_
6 #define V8_HYDROGEN_OSR_H_
7 
8 #include "src/hydrogen.h"
9 #include "src/ast.h"
10 #include "src/zone.h"
11 
12 namespace v8 {
13 namespace internal {
14 
15 // Responsible for building graph parts related to OSR and otherwise
16 // setting up the graph to do an OSR compile.
17 class HOsrBuilder : public ZoneObject {
18  public:
21  builder_(builder),
24  osr_values_(NULL) { }
25 
26  // Creates the loop entry block for the given statement, setting up OSR
27  // entries as necessary, and sets the current block to the new block.
28  HBasicBlock* BuildOsrLoopEntry(IterationStatement* statement);
29 
30  // Process the hydrogen graph after it has been completed, performing
31  // any OSR-specific cleanups or changes.
32  void FinishGraph();
33 
34  // Process the OSR values and phis after initial graph optimization.
35  void FinishOsrValues();
36 
37  // Return the number of slots in the unoptimized frame at the entry to OSR.
38  int UnoptimizedFrameSlots() const {
40  }
41 
42  bool HasOsrEntryAt(IterationStatement* statement);
43 
44  private:
47  HBasicBlock* osr_entry_;
48  HBasicBlock* osr_loop_entry_;
50 };
51 
52 } } // namespace v8::internal
53 
54 #endif // V8_HYDROGEN_OSR_H_
HBasicBlock * BuildOsrLoopEntry(IterationStatement *statement)
Definition: hydrogen-osr.cc:17
HBasicBlock * osr_loop_entry_
Definition: hydrogen-osr.h:48
int UnoptimizedFrameSlots() const
Definition: hydrogen-osr.h:38
HOsrBuilder(HOptimizedGraphBuilder *builder)
Definition: hydrogen-osr.h:19
HBasicBlock * osr_entry_
Definition: hydrogen-osr.h:47
HOptimizedGraphBuilder * builder_
Definition: hydrogen-osr.h:46
ZoneList< HUnknownOSRValue * > * osr_values_
Definition: hydrogen-osr.h:49
bool HasOsrEntryAt(IterationStatement *statement)
Definition: hydrogen-osr.cc:12
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long enable alignment of csp to bytes on platforms which prefer the register to always be NULL
Debugger support for the V8 JavaScript engine.
Definition: accessors.cc:20