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

Side by Side Diff: src/full-codegen/full-codegen.cc

Issue 1252323002: Debugger: always include deoptimization support for debug code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: address comment Created 5 years, 5 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/compiler.cc ('k') | src/objects.h » ('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 "src/v8.h" 5 #include "src/v8.h"
6 6
7 #include "src/ast.h" 7 #include "src/ast.h"
8 #include "src/ast-numbering.h" 8 #include "src/ast-numbering.h"
9 #include "src/code-factory.h" 9 #include "src/code-factory.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 } 52 }
53 unsigned table_offset = cgen.EmitBackEdgeTable(); 53 unsigned table_offset = cgen.EmitBackEdgeTable();
54 54
55 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION); 55 Code::Flags flags = Code::ComputeFlags(Code::FUNCTION);
56 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, flags, info); 56 Handle<Code> code = CodeGenerator::MakeCodeEpilogue(&masm, flags, info);
57 cgen.PopulateDeoptimizationData(code); 57 cgen.PopulateDeoptimizationData(code);
58 cgen.PopulateTypeFeedbackInfo(code); 58 cgen.PopulateTypeFeedbackInfo(code);
59 cgen.PopulateHandlerTable(code); 59 cgen.PopulateHandlerTable(code);
60 code->set_has_deoptimization_support(info->HasDeoptimizationSupport()); 60 code->set_has_deoptimization_support(info->HasDeoptimizationSupport());
61 code->set_has_reloc_info_for_serialization(info->will_serialize()); 61 code->set_has_reloc_info_for_serialization(info->will_serialize());
62 code->set_compiled_optimizable(info->IsOptimizable());
63 code->set_allow_osr_at_loop_nesting_level(0); 62 code->set_allow_osr_at_loop_nesting_level(0);
64 code->set_profiler_ticks(0); 63 code->set_profiler_ticks(0);
65 code->set_back_edge_table_offset(table_offset); 64 code->set_back_edge_table_offset(table_offset);
66 CodeGenerator::PrintCode(code, info); 65 CodeGenerator::PrintCode(code, info);
67 info->SetCode(code); 66 info->SetCode(code);
68 void* line_info = masm.positions_recorder()->DetachJITHandlerData(); 67 void* line_info = masm.positions_recorder()->DetachJITHandlerData();
69 LOG_CODE_EVENT(isolate, CodeEndLinePosInfoRecordEvent(*code, line_info)); 68 LOG_CODE_EVENT(isolate, CodeEndLinePosInfoRecordEvent(*code, line_info));
70 69
71 #ifdef DEBUG 70 #ifdef DEBUG
72 // Check that no context-specific object has been embedded. 71 // Check that no context-specific object has been embedded.
(...skipping 1513 matching lines...) Expand 10 before | Expand all | Expand 10 after
1586 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS); 1585 codegen_->PrepareForBailoutForId(exit_id_, NO_REGISTERS);
1587 codegen_->scope_ = saved_scope_; 1586 codegen_->scope_ = saved_scope_;
1588 } 1587 }
1589 1588
1590 1589
1591 #undef __ 1590 #undef __
1592 1591
1593 1592
1594 } // namespace internal 1593 } // namespace internal
1595 } // namespace v8 1594 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698