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 #include "src/full-codegen/full-codegen.h" | 5 #include "src/full-codegen/full-codegen.h" |
6 | 6 |
7 #include "src/ast/ast.h" | 7 #include "src/ast/ast.h" |
8 #include "src/ast/ast-numbering.h" | 8 #include "src/ast/ast-numbering.h" |
9 #include "src/ast/prettyprinter.h" | 9 #include "src/ast/prettyprinter.h" |
10 #include "src/ast/scopeinfo.h" | 10 #include "src/ast/scopeinfo.h" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 cgen.PopulateTypeFeedbackInfo(code); | 60 cgen.PopulateTypeFeedbackInfo(code); |
61 cgen.PopulateHandlerTable(code); | 61 cgen.PopulateHandlerTable(code); |
62 code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); | 62 code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); |
63 code->set_has_reloc_info_for_serialization(info->will_serialize()); | 63 code->set_has_reloc_info_for_serialization(info->will_serialize()); |
64 code->set_allow_osr_at_loop_nesting_level(0); | 64 code->set_allow_osr_at_loop_nesting_level(0); |
65 code->set_profiler_ticks(0); | 65 code->set_profiler_ticks(0); |
66 code->set_back_edge_table_offset(table_offset); | 66 code->set_back_edge_table_offset(table_offset); |
67 CodeGenerator::PrintCode(code, info); | 67 CodeGenerator::PrintCode(code, info); |
68 info->SetCode(code); | 68 info->SetCode(code); |
69 void* line_info = masm.positions_recorder()->DetachJITHandlerData(); | 69 void* line_info = masm.positions_recorder()->DetachJITHandlerData(); |
70 LOG_CODE_EVENT(isolate, CodeEndLinePosInfoRecordEvent(*code, line_info)); | 70 LOG_CODE_EVENT(isolate, CodeEndLinePosInfoRecordEvent( |
| 71 AbstractCode::cast(*code), line_info)); |
71 | 72 |
72 #ifdef DEBUG | 73 #ifdef DEBUG |
73 // Check that no context-specific object has been embedded. | 74 // Check that no context-specific object has been embedded. |
74 code->VerifyEmbeddedObjects(Code::kNoContextSpecificPointers); | 75 code->VerifyEmbeddedObjects(Code::kNoContextSpecificPointers); |
75 #endif // DEBUG | 76 #endif // DEBUG |
76 return true; | 77 return true; |
77 } | 78 } |
78 | 79 |
79 | 80 |
80 unsigned FullCodeGenerator::EmitBackEdgeTable() { | 81 unsigned FullCodeGenerator::EmitBackEdgeTable() { |
(...skipping 1838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1919 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || | 1920 return var->mode() == CONST_LEGACY || var->scope()->is_nonlinear() || |
1920 var->initializer_position() >= proxy->position(); | 1921 var->initializer_position() >= proxy->position(); |
1921 } | 1922 } |
1922 | 1923 |
1923 | 1924 |
1924 #undef __ | 1925 #undef __ |
1925 | 1926 |
1926 | 1927 |
1927 } // namespace internal | 1928 } // namespace internal |
1928 } // namespace v8 | 1929 } // namespace v8 |
OLD | NEW |