OLD | NEW |
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 #ifndef V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 5 #ifndef V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 6 #define V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
7 | 7 |
8 #include "src/allocation.h" | 8 #include "src/allocation.h" |
9 #include "src/assert-scope.h" | 9 #include "src/assert-scope.h" |
10 #include "src/ast/ast.h" | 10 #include "src/ast/ast.h" |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 handler_table_(info->zone()), | 48 handler_table_(info->zone()), |
49 source_position_table_builder_(info->isolate(), info->zone(), | 49 source_position_table_builder_(info->isolate(), info->zone(), |
50 info->SourcePositionRecordingMode()), | 50 info->SourcePositionRecordingMode()), |
51 ic_total_count_(0) { | 51 ic_total_count_(0) { |
52 DCHECK(!info->IsStub()); | 52 DCHECK(!info->IsStub()); |
53 Initialize(); | 53 Initialize(); |
54 } | 54 } |
55 | 55 |
56 void Initialize(); | 56 void Initialize(); |
57 | 57 |
| 58 static CompilationJob* NewCompilationJob(CompilationInfo* info); |
| 59 |
58 static bool MakeCode(CompilationInfo* info); | 60 static bool MakeCode(CompilationInfo* info); |
59 | 61 |
60 // Encode bailout state and pc-offset as a BitField<type, start, size>. | 62 // Encode bailout state and pc-offset as a BitField<type, start, size>. |
61 // Only use 30 bits because we encode the result as a smi. | 63 // Only use 30 bits because we encode the result as a smi. |
62 class BailoutStateField : public BitField<Deoptimizer::BailoutState, 0, 1> {}; | 64 class BailoutStateField : public BitField<Deoptimizer::BailoutState, 0, 1> {}; |
63 class PcField : public BitField<unsigned, 1, 30 - 1> {}; | 65 class PcField : public BitField<unsigned, 1, 30 - 1> {}; |
64 | 66 |
65 static const int kMaxBackEdgeWeight = 127; | 67 static const int kMaxBackEdgeWeight = 127; |
66 | 68 |
67 // Platform-specific code size multiplier. | 69 // Platform-specific code size multiplier. |
(...skipping 970 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1038 Address start_; | 1040 Address start_; |
1039 Address instruction_start_; | 1041 Address instruction_start_; |
1040 uint32_t length_; | 1042 uint32_t length_; |
1041 }; | 1043 }; |
1042 | 1044 |
1043 | 1045 |
1044 } // namespace internal | 1046 } // namespace internal |
1045 } // namespace v8 | 1047 } // namespace v8 |
1046 | 1048 |
1047 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ | 1049 #endif // V8_FULL_CODEGEN_FULL_CODEGEN_H_ |
OLD | NEW |