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

Side by Side Diff: src/objects.h

Issue 2205893002: Remove catch prediction from handler table API. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@local_turbofan-remove-catch-prediction
Patch Set: Remove dead code. 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/compiler/code-generator.cc ('k') | src/objects-inl.h » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 4464 matching lines...) Expand 10 before | Expand all | Expand 10 after
4475 inline int GetRangeData(int index) const; 4475 inline int GetRangeData(int index) const;
4476 4476
4477 // Setters for handler table based on ranges. 4477 // Setters for handler table based on ranges.
4478 inline void SetRangeStart(int index, int value); 4478 inline void SetRangeStart(int index, int value);
4479 inline void SetRangeEnd(int index, int value); 4479 inline void SetRangeEnd(int index, int value);
4480 inline void SetRangeHandler(int index, int offset, CatchPrediction pred); 4480 inline void SetRangeHandler(int index, int offset, CatchPrediction pred);
4481 inline void SetRangeData(int index, int value); 4481 inline void SetRangeData(int index, int value);
4482 4482
4483 // Setters for handler table based on return addresses. 4483 // Setters for handler table based on return addresses.
4484 inline void SetReturnOffset(int index, int value); 4484 inline void SetReturnOffset(int index, int value);
4485 inline void SetReturnHandler(int index, int offset, CatchPrediction pred); 4485 inline void SetReturnHandler(int index, int offset);
4486 4486
4487 // Lookup handler in a table based on ranges. 4487 // Lookup handler in a table based on ranges.
4488 int LookupRange(int pc_offset, int* data, CatchPrediction* prediction); 4488 int LookupRange(int pc_offset, int* data, CatchPrediction* prediction);
4489 4489
4490 // Lookup handler in a table based on return addresses. 4490 // Lookup handler in a table based on return addresses.
4491 int LookupReturn(int pc_offset); 4491 int LookupReturn(int pc_offset);
4492 4492
4493 // Returns the conservative catch predication.
4494 inline CatchPrediction GetRangePrediction(int index) const;
4495
4496 // Returns the number of entries in the table. 4493 // Returns the number of entries in the table.
4497 inline int NumberOfRangeEntries() const; 4494 inline int NumberOfRangeEntries() const;
4498 4495
4499 // Returns the required length of the underlying fixed array. 4496 // Returns the required length of the underlying fixed array.
4500 static int LengthForRange(int entries) { return entries * kRangeEntrySize; } 4497 static int LengthForRange(int entries) { return entries * kRangeEntrySize; }
4501 static int LengthForReturn(int entries) { return entries * kReturnEntrySize; } 4498 static int LengthForReturn(int entries) { return entries * kReturnEntrySize; }
4502 4499
4503 DECLARE_CAST(HandlerTable) 4500 DECLARE_CAST(HandlerTable)
4504 4501
4505 #ifdef ENABLE_DISASSEMBLER 4502 #ifdef ENABLE_DISASSEMBLER
(...skipping 6554 matching lines...) Expand 10 before | Expand all | Expand 10 after
11060 } 11057 }
11061 return value; 11058 return value;
11062 } 11059 }
11063 }; 11060 };
11064 11061
11065 11062
11066 } // NOLINT, false-positive due to second-order macros. 11063 } // NOLINT, false-positive due to second-order macros.
11067 } // NOLINT, false-positive due to second-order macros. 11064 } // NOLINT, false-positive due to second-order macros.
11068 11065
11069 #endif // V8_OBJECTS_H_ 11066 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/compiler/code-generator.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698