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

Side by Side Diff: src/objects.cc

Issue 23710014: Introduce concurrent on-stack replacement. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 10767 matching lines...) Expand 10 before | Expand all | Expand 10 after
10778 PrintF(out, " argc: %d", entry.argument_count()); 10778 PrintF(out, " argc: %d", entry.argument_count());
10779 } 10779 }
10780 PrintF(out, "\n"); 10780 PrintF(out, "\n");
10781 } 10781 }
10782 PrintF(out, "\n"); 10782 PrintF(out, "\n");
10783 } else if (kind() == FUNCTION) { 10783 } else if (kind() == FUNCTION) {
10784 unsigned offset = back_edge_table_offset(); 10784 unsigned offset = back_edge_table_offset();
10785 // If there is no back edge table, the "table start" will be at or after 10785 // If there is no back edge table, the "table start" will be at or after
10786 // (due to alignment) the end of the instruction stream. 10786 // (due to alignment) the end of the instruction stream.
10787 if (static_cast<int>(offset) < instruction_size()) { 10787 if (static_cast<int>(offset) < instruction_size()) {
10788 FullCodeGenerator::BackEdgeTableIterator back_edges(this); 10788 DisallowHeapAllocation no_gc;
10789 FullCodeGenerator::BackEdgeTableIterator back_edges(this, &no_gc);
10789 10790
10790 PrintF(out, "Back edges (size = %u)\n", back_edges.table_length()); 10791 PrintF(out, "Back edges (size = %u)\n", back_edges.table_length());
10791 PrintF(out, "ast_id pc_offset loop_depth\n"); 10792 PrintF(out, "ast_id pc_offset loop_depth\n");
10792 10793
10793 for ( ; !back_edges.Done(); back_edges.Next()) { 10794 for ( ; !back_edges.Done(); back_edges.Next()) {
10794 PrintF(out, "%6d %9u %10u\n", back_edges.ast_id().ToInt(), 10795 PrintF(out, "%6d %9u %10u\n", back_edges.ast_id().ToInt(),
10795 back_edges.pc_offset(), 10796 back_edges.pc_offset(),
10796 back_edges.loop_depth()); 10797 back_edges.loop_depth());
10797 } 10798 }
10798 10799
(...skipping 5169 matching lines...) Expand 10 before | Expand all | Expand 10 after
15968 #define ERROR_MESSAGES_TEXTS(C, T) T, 15969 #define ERROR_MESSAGES_TEXTS(C, T) T,
15969 static const char* error_messages_[] = { 15970 static const char* error_messages_[] = {
15970 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 15971 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
15971 }; 15972 };
15972 #undef ERROR_MESSAGES_TEXTS 15973 #undef ERROR_MESSAGES_TEXTS
15973 return error_messages_[reason]; 15974 return error_messages_[reason];
15974 } 15975 }
15975 15976
15976 15977
15977 } } // namespace v8::internal 15978 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698