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

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

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: fixed gcmole issue Created 4 years, 1 month 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
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/full-codegen/full-codegen.h" 5 #include "src/full-codegen/full-codegen.h"
6 6
7 #include "src/ast/ast-numbering.h" 7 #include "src/ast/ast-numbering.h"
8 #include "src/ast/ast.h" 8 #include "src/ast/ast.h"
9 #include "src/ast/prettyprinter.h" 9 #include "src/ast/prettyprinter.h"
10 #include "src/ast/scopes.h" 10 #include "src/ast/scopes.h"
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 void FullCodeGenerator::EmitHasProperty() { 658 void FullCodeGenerator::EmitHasProperty() {
659 Callable callable = CodeFactory::HasProperty(isolate()); 659 Callable callable = CodeFactory::HasProperty(isolate());
660 PopOperand(callable.descriptor().GetRegisterParameter(1)); 660 PopOperand(callable.descriptor().GetRegisterParameter(1));
661 PopOperand(callable.descriptor().GetRegisterParameter(0)); 661 PopOperand(callable.descriptor().GetRegisterParameter(0));
662 __ Call(callable.code(), RelocInfo::CODE_TARGET); 662 __ Call(callable.code(), RelocInfo::CODE_TARGET);
663 RestoreContext(); 663 RestoreContext();
664 } 664 }
665 665
666 void FullCodeGenerator::RecordStatementPosition(int pos) { 666 void FullCodeGenerator::RecordStatementPosition(int pos) {
667 DCHECK_NE(kNoSourcePosition, pos); 667 DCHECK_NE(kNoSourcePosition, pos);
668 source_position_table_builder_.AddPosition(masm_->pc_offset(), pos, true); 668 source_position_table_builder_.AddPosition(masm_->pc_offset(),
669 SourcePosition(pos), true);
669 } 670 }
670 671
671 void FullCodeGenerator::RecordPosition(int pos) { 672 void FullCodeGenerator::RecordPosition(int pos) {
672 DCHECK_NE(kNoSourcePosition, pos); 673 DCHECK_NE(kNoSourcePosition, pos);
673 source_position_table_builder_.AddPosition(masm_->pc_offset(), pos, false); 674 source_position_table_builder_.AddPosition(masm_->pc_offset(),
675 SourcePosition(pos), false);
674 } 676 }
675 677
676 678
677 void FullCodeGenerator::SetFunctionPosition(FunctionLiteral* fun) { 679 void FullCodeGenerator::SetFunctionPosition(FunctionLiteral* fun) {
678 RecordPosition(fun->start_position()); 680 RecordPosition(fun->start_position());
679 } 681 }
680 682
681 683
682 void FullCodeGenerator::SetReturnPosition(FunctionLiteral* fun) { 684 void FullCodeGenerator::SetReturnPosition(FunctionLiteral* fun) {
683 // For default constructors, start position equals end position, and there 685 // For default constructors, start position equals end position, and there
(...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after
1990 return info_->has_simple_parameters(); 1992 return info_->has_simple_parameters();
1991 } 1993 }
1992 1994
1993 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); } 1995 FunctionLiteral* FullCodeGenerator::literal() const { return info_->literal(); }
1994 1996
1995 #undef __ 1997 #undef __
1996 1998
1997 1999
1998 } // namespace internal 2000 } // namespace internal
1999 } // namespace v8 2001 } // namespace v8
OLDNEW
« src/crankshaft/hydrogen.cc ('K') | « src/disassembler.cc ('k') | src/ia32/assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698