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

Side by Side Diff: src/objects-inl.h

Issue 2197183002: [debugger] use handler table on unoptimized code for exception prediction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: address comments and rebase Created 4 years, 4 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/objects.cc ('k') | test/mjsunit/es6/debug-promises/throw-finally-caught-all.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 5317 matching lines...) Expand 10 before | Expand all | Expand 10 after
5328 } 5328 }
5329 5329
5330 ByteArray* AbstractCode::source_position_table() { 5330 ByteArray* AbstractCode::source_position_table() {
5331 if (IsCode()) { 5331 if (IsCode()) {
5332 return GetCode()->source_position_table(); 5332 return GetCode()->source_position_table();
5333 } else { 5333 } else {
5334 return GetBytecodeArray()->source_position_table(); 5334 return GetBytecodeArray()->source_position_table();
5335 } 5335 }
5336 } 5336 }
5337 5337
5338 int AbstractCode::LookupRangeInHandlerTable(
5339 int code_offset, int* data, HandlerTable::CatchPrediction* prediction) {
5340 if (IsCode()) {
5341 return GetCode()->LookupRangeInHandlerTable(code_offset, data, prediction);
5342 } else {
5343 return GetBytecodeArray()->LookupRangeInHandlerTable(code_offset, data,
5344 prediction);
5345 }
5346 }
5347
5338 int AbstractCode::SizeIncludingMetadata() { 5348 int AbstractCode::SizeIncludingMetadata() {
5339 if (IsCode()) { 5349 if (IsCode()) {
5340 return GetCode()->SizeIncludingMetadata(); 5350 return GetCode()->SizeIncludingMetadata();
5341 } else { 5351 } else {
5342 return GetBytecodeArray()->SizeIncludingMetadata(); 5352 return GetBytecodeArray()->SizeIncludingMetadata();
5343 } 5353 }
5344 } 5354 }
5345 int AbstractCode::ExecutableSize() { 5355 int AbstractCode::ExecutableSize() {
5346 if (IsCode()) { 5356 if (IsCode()) {
5347 return GetCode()->ExecutableSize(); 5357 return GetCode()->ExecutableSize();
(...skipping 2824 matching lines...) Expand 10 before | Expand all | Expand 10 after
8172 #undef WRITE_INT64_FIELD 8182 #undef WRITE_INT64_FIELD
8173 #undef READ_BYTE_FIELD 8183 #undef READ_BYTE_FIELD
8174 #undef WRITE_BYTE_FIELD 8184 #undef WRITE_BYTE_FIELD
8175 #undef NOBARRIER_READ_BYTE_FIELD 8185 #undef NOBARRIER_READ_BYTE_FIELD
8176 #undef NOBARRIER_WRITE_BYTE_FIELD 8186 #undef NOBARRIER_WRITE_BYTE_FIELD
8177 8187
8178 } // namespace internal 8188 } // namespace internal
8179 } // namespace v8 8189 } // namespace v8
8180 8190
8181 #endif // V8_OBJECTS_INL_H_ 8191 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | test/mjsunit/es6/debug-promises/throw-finally-caught-all.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698