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

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

Issue 9373028: Initial support for count-based profiling (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
417 417
418 // Platform-specific code for a variable, constant, or function 418 // Platform-specific code for a variable, constant, or function
419 // declaration. Functions have an initial value. 419 // declaration. Functions have an initial value.
420 // Increments global_count_ for unallocated variables. 420 // Increments global_count_ for unallocated variables.
421 void EmitDeclaration(VariableProxy* proxy, 421 void EmitDeclaration(VariableProxy* proxy,
422 VariableMode mode, 422 VariableMode mode,
423 FunctionLiteral* function); 423 FunctionLiteral* function);
424 424
425 // Platform-specific code for checking the stack limit at the back edge of 425 // Platform-specific code for checking the stack limit at the back edge of
426 // a loop. 426 // a loop.
427 void EmitStackCheck(IterationStatement* stmt); 427 void EmitStackCheck(IterationStatement* stmt, Label* back_edge_target);
Erik Corry 2012/02/10 13:01:42 Please add a comment to explain what this label is
Jakob Kummerow 2012/02/10 13:59:20 Done.
428 // Record the OSR AST id corresponding to a stack check in the code. 428 // Record the OSR AST id corresponding to a stack check in the code.
429 void RecordStackCheck(unsigned osr_ast_id); 429 void RecordStackCheck(unsigned osr_ast_id);
430 // Emit a table of stack check ids and pcs into the code stream. Return 430 // Emit a table of stack check ids and pcs into the code stream. Return
431 // the offset of the start of the table. 431 // the offset of the start of the table.
432 unsigned EmitStackCheckTable(); 432 unsigned EmitStackCheckTable();
433 433
434 // Platform-specific return sequence 434 // Platform-specific return sequence
435 void EmitReturnSequence(); 435 void EmitReturnSequence();
436 436
437 // Platform-specific code sequences for calls 437 // Platform-specific code sequences for calls
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 Scope* scope_; 767 Scope* scope_;
768 Label return_label_; 768 Label return_label_;
769 NestedStatement* nesting_stack_; 769 NestedStatement* nesting_stack_;
770 int loop_depth_; 770 int loop_depth_;
771 int global_count_; 771 int global_count_;
772 const ExpressionContext* context_; 772 const ExpressionContext* context_;
773 ZoneList<BailoutEntry> bailout_entries_; 773 ZoneList<BailoutEntry> bailout_entries_;
774 ZoneList<BailoutEntry> stack_checks_; 774 ZoneList<BailoutEntry> stack_checks_;
775 ZoneList<TypeFeedbackCellEntry> type_feedback_cells_; 775 ZoneList<TypeFeedbackCellEntry> type_feedback_cells_;
776 Handle<FixedArray> handler_table_; 776 Handle<FixedArray> handler_table_;
777 Handle<JSGlobalPropertyCell> profiling_counter_;
777 778
778 friend class NestedStatement; 779 friend class NestedStatement;
779 780
780 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator); 781 DISALLOW_COPY_AND_ASSIGN(FullCodeGenerator);
781 }; 782 };
782 783
783 784
784 } } // namespace v8::internal 785 } } // namespace v8::internal
785 786
786 #endif // V8_FULL_CODEGEN_H_ 787 #endif // V8_FULL_CODEGEN_H_
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/full-codegen.cc » ('j') | src/ia32/builtins-ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698