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/objects.cc

Issue 568783002: Remove deoptimization by patching the call stack. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebase Created 6 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 // 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/accessors.h" 7 #include "src/accessors.h"
8 #include "src/allocation-site-scopes.h" 8 #include "src/allocation-site-scopes.h"
9 #include "src/api.h" 9 #include "src/api.h"
10 #include "src/arguments.h" 10 #include "src/arguments.h"
(...skipping 10919 matching lines...) Expand 10 before | Expand all | Expand 10 after
10930 table.PrintEntry(i, os); 10930 table.PrintEntry(i, os);
10931 os << " (sp -> fp) "; 10931 os << " (sp -> fp) ";
10932 SafepointEntry entry = table.GetEntry(i); 10932 SafepointEntry entry = table.GetEntry(i);
10933 if (entry.deoptimization_index() != Safepoint::kNoDeoptimizationIndex) { 10933 if (entry.deoptimization_index() != Safepoint::kNoDeoptimizationIndex) {
10934 Vector<char> buf2 = Vector<char>::New(30); 10934 Vector<char> buf2 = Vector<char>::New(30);
10935 SNPrintF(buf2, "%6d", entry.deoptimization_index()); 10935 SNPrintF(buf2, "%6d", entry.deoptimization_index());
10936 os << buf2.start(); 10936 os << buf2.start();
10937 } else { 10937 } else {
10938 os << "<none>"; 10938 os << "<none>";
10939 } 10939 }
10940 if (entry.deoptimization_pc() != Safepoint::kNoDeoptimizationPc) {
10941 Vector<char> buf2 = Vector<char>::New(30);
10942 SNPrintF(buf2, "%6d", entry.deoptimization_pc());
10943 os << buf2.start();
10944 } else {
10945 os << "<none>";
10946 }
10947 if (entry.argument_count() > 0) { 10940 if (entry.argument_count() > 0) {
10948 os << " argc: " << entry.argument_count(); 10941 os << " argc: " << entry.argument_count();
10949 } 10942 }
10950 os << "\n"; 10943 os << "\n";
10951 } 10944 }
10952 os << "\n"; 10945 os << "\n";
10953 } else if (kind() == FUNCTION) { 10946 } else if (kind() == FUNCTION) {
10954 unsigned offset = back_edge_table_offset(); 10947 unsigned offset = back_edge_table_offset();
10955 // If there is no back edge table, the "table start" will be at or after 10948 // If there is no back edge table, the "table start" will be at or after
10956 // (due to alignment) the end of the instruction stream. 10949 // (due to alignment) the end of the instruction stream.
(...skipping 5444 matching lines...) Expand 10 before | Expand all | Expand 10 after
16401 #define ERROR_MESSAGES_TEXTS(C, T) T, 16394 #define ERROR_MESSAGES_TEXTS(C, T) T,
16402 static const char* error_messages_[] = { 16395 static const char* error_messages_[] = {
16403 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS) 16396 ERROR_MESSAGES_LIST(ERROR_MESSAGES_TEXTS)
16404 }; 16397 };
16405 #undef ERROR_MESSAGES_TEXTS 16398 #undef ERROR_MESSAGES_TEXTS
16406 return error_messages_[reason]; 16399 return error_messages_[reason];
16407 } 16400 }
16408 16401
16409 16402
16410 } } // namespace v8::internal 16403 } } // namespace v8::internal
OLDNEW
« src/compiler/code-generator.cc ('K') | « src/deoptimizer.cc ('k') | src/safepoint-table.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698