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

Side by Side Diff: src/assembler.cc

Issue 1817033002: [Interpreter] Add dispatch counters for each bytecode. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@fix-abort
Patch Set: Created 4 years, 9 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
« no previous file with comments | « src/assembler.h ('k') | src/bailout-reason.h » ('j') | src/d8.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 1994-2006 Sun Microsystems Inc. 1 // Copyright (c) 1994-2006 Sun Microsystems Inc.
2 // All Rights Reserved. 2 // All Rights Reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // - Redistributions of source code must retain the above copyright notice, 8 // - Redistributions of source code must retain the above copyright notice,
9 // this list of conditions and the following disclaimer. 9 // this list of conditions and the following disclaimer.
10 // 10 //
(...skipping 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after
1062 1062
1063 ExternalReference ExternalReference::isolate_address(Isolate* isolate) { 1063 ExternalReference ExternalReference::isolate_address(Isolate* isolate) {
1064 return ExternalReference(isolate); 1064 return ExternalReference(isolate);
1065 } 1065 }
1066 1066
1067 ExternalReference ExternalReference::interpreter_dispatch_table_address( 1067 ExternalReference ExternalReference::interpreter_dispatch_table_address(
1068 Isolate* isolate) { 1068 Isolate* isolate) {
1069 return ExternalReference(isolate->interpreter()->dispatch_table_address()); 1069 return ExternalReference(isolate->interpreter()->dispatch_table_address());
1070 } 1070 }
1071 1071
1072 ExternalReference ExternalReference::interpreter_handlers_dispatch_counters(
1073 Isolate* isolate) {
1074 return ExternalReference(
1075 isolate->interpreter()->handlers_dispatch_counters());
1076 }
1077
1072 ExternalReference::ExternalReference(StatsCounter* counter) 1078 ExternalReference::ExternalReference(StatsCounter* counter)
1073 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {} 1079 : address_(reinterpret_cast<Address>(counter->GetInternalPointer())) {}
1074 1080
1075 1081
1076 ExternalReference::ExternalReference(Isolate::AddressId id, Isolate* isolate) 1082 ExternalReference::ExternalReference(Isolate::AddressId id, Isolate* isolate)
1077 : address_(isolate->get_address_from_id(id)) {} 1083 : address_(isolate->get_address_from_id(id)) {}
1078 1084
1079 1085
1080 ExternalReference::ExternalReference(const SCTableReference& table_ref) 1086 ExternalReference::ExternalReference(const SCTableReference& table_ref)
1081 : address_(table_ref.address()) {} 1087 : address_(table_ref.address()) {}
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
2076 2082
2077 2083
2078 void Assembler::DataAlign(int m) { 2084 void Assembler::DataAlign(int m) {
2079 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); 2085 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m));
2080 while ((pc_offset() & (m - 1)) != 0) { 2086 while ((pc_offset() & (m - 1)) != 0) {
2081 db(0); 2087 db(0);
2082 } 2088 }
2083 } 2089 }
2084 } // namespace internal 2090 } // namespace internal
2085 } // namespace v8 2091 } // namespace v8
OLDNEW
« no previous file with comments | « src/assembler.h ('k') | src/bailout-reason.h » ('j') | src/d8.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698