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

Side by Side Diff: src/objects.cc

Issue 943503003: Emit exception handler table in TurboFan. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_trycatch-4
Patch Set: Created 5 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
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 <sstream> 5 #include <sstream>
6 6
7 #include "src/v8.h" 7 #include "src/v8.h"
8 8
9 #include "src/accessors.h" 9 #include "src/accessors.h"
10 #include "src/allocation-site-scopes.h" 10 #include "src/allocation-site-scopes.h"
(...skipping 11695 matching lines...) Expand 10 before | Expand all | Expand 10 after
11706 } 11706 }
11707 #ifdef OBJECT_PRINT 11707 #ifdef OBJECT_PRINT
11708 if (!type_feedback_info()->IsUndefined()) { 11708 if (!type_feedback_info()->IsUndefined()) {
11709 OFStream os(stdout); 11709 OFStream os(stdout);
11710 TypeFeedbackInfo::cast(type_feedback_info())->TypeFeedbackInfoPrint(os); 11710 TypeFeedbackInfo::cast(type_feedback_info())->TypeFeedbackInfoPrint(os);
11711 os << "\n"; 11711 os << "\n";
11712 } 11712 }
11713 #endif 11713 #endif
11714 } 11714 }
11715 11715
11716 if (handler_table()->length() > 0 && is_turbofanned()) {
11717 os << "Handler Table (size = " << handler_table()->Size() << ")\n";
11718 for (int i = 0; i < handler_table()->length(); i += 2) {
11719 int pc_offset = Smi::cast(handler_table()->get(i))->value();
11720 int handler = Smi::cast(handler_table()->get(i + 1))->value();
11721 os << static_cast<const void*>(instruction_start() + pc_offset) << " ";
11722 Vector<char> buf = Vector<char>::New(20);
11723 SNPrintF(buf, "%4d %4d\n", pc_offset, handler);
11724 os << buf.start();
Benedikt Meurer 2015/02/19 18:31:19 How about using ios formatting here instead of SNP
Michael Starzinger 2015/02/20 10:04:54 Acknowledged. As discussed offline, we'll do that
11725 }
11726 os << "\n";
11727 }
11728
11716 os << "RelocInfo (size = " << relocation_size() << ")\n"; 11729 os << "RelocInfo (size = " << relocation_size() << ")\n";
11717 for (RelocIterator it(this); !it.done(); it.next()) { 11730 for (RelocIterator it(this); !it.done(); it.next()) {
11718 it.rinfo()->Print(GetIsolate(), os); 11731 it.rinfo()->Print(GetIsolate(), os);
11719 } 11732 }
11720 os << "\n"; 11733 os << "\n";
11721 11734
11722 #ifdef OBJECT_PRINT 11735 #ifdef OBJECT_PRINT
11723 if (FLAG_enable_ool_constant_pool) { 11736 if (FLAG_enable_ool_constant_pool) {
11724 ConstantPoolArray* pool = constant_pool(); 11737 ConstantPoolArray* pool = constant_pool();
11725 if (pool->length()) { 11738 if (pool->length()) {
(...skipping 5487 matching lines...) Expand 10 before | Expand all | Expand 10 after
17213 CompilationInfo* info) { 17226 CompilationInfo* info) {
17214 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo( 17227 Handle<DependentCode> codes = DependentCode::InsertCompilationInfo(
17215 handle(cell->dependent_code(), info->isolate()), 17228 handle(cell->dependent_code(), info->isolate()),
17216 DependentCode::kPropertyCellChangedGroup, info->object_wrapper()); 17229 DependentCode::kPropertyCellChangedGroup, info->object_wrapper());
17217 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes); 17230 if (*codes != cell->dependent_code()) cell->set_dependent_code(*codes);
17218 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add( 17231 info->dependencies(DependentCode::kPropertyCellChangedGroup)->Add(
17219 cell, info->zone()); 17232 cell, info->zone());
17220 } 17233 }
17221 17234
17222 } } // namespace v8::internal 17235 } } // namespace v8::internal
OLDNEW
« src/compiler/ia32/instruction-selector-ia32.cc ('K') | « src/compiler/linkage.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698