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

Side by Side Diff: src/objects.h

Issue 1689113004: Reland of [interpreter] Correctly thread through catch prediction. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/interpreter/control-flow-builders.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 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 4785 matching lines...) Expand 10 before | Expand all | Expand 10 after
4796 // Setters for handler table based on return addresses. 4796 // Setters for handler table based on return addresses.
4797 inline void SetReturnOffset(int index, int value); 4797 inline void SetReturnOffset(int index, int value);
4798 inline void SetReturnHandler(int index, int offset, CatchPrediction pred); 4798 inline void SetReturnHandler(int index, int offset, CatchPrediction pred);
4799 4799
4800 // Lookup handler in a table based on ranges. 4800 // Lookup handler in a table based on ranges.
4801 int LookupRange(int pc_offset, int* data, CatchPrediction* prediction); 4801 int LookupRange(int pc_offset, int* data, CatchPrediction* prediction);
4802 4802
4803 // Lookup handler in a table based on return addresses. 4803 // Lookup handler in a table based on return addresses.
4804 int LookupReturn(int pc_offset, CatchPrediction* prediction); 4804 int LookupReturn(int pc_offset, CatchPrediction* prediction);
4805 4805
4806 // Returns the conservative catch predication.
4807 inline CatchPrediction GetRangePrediction(int index) const;
4808
4806 // Returns the number of entries in the table. 4809 // Returns the number of entries in the table.
4807 inline int NumberOfRangeEntries() const; 4810 inline int NumberOfRangeEntries() const;
4808 4811
4809 // Returns the required length of the underlying fixed array. 4812 // Returns the required length of the underlying fixed array.
4810 static int LengthForRange(int entries) { return entries * kRangeEntrySize; } 4813 static int LengthForRange(int entries) { return entries * kRangeEntrySize; }
4811 static int LengthForReturn(int entries) { return entries * kReturnEntrySize; } 4814 static int LengthForReturn(int entries) { return entries * kReturnEntrySize; }
4812 4815
4813 DECLARE_CAST(HandlerTable) 4816 DECLARE_CAST(HandlerTable)
4814 4817
4815 #ifdef ENABLE_DISASSEMBLER 4818 #ifdef ENABLE_DISASSEMBLER
(...skipping 5989 matching lines...) Expand 10 before | Expand all | Expand 10 after
10805 } 10808 }
10806 return value; 10809 return value;
10807 } 10810 }
10808 }; 10811 };
10809 10812
10810 10813
10811 } // NOLINT, false-positive due to second-order macros. 10814 } // NOLINT, false-positive due to second-order macros.
10812 } // NOLINT, false-positive due to second-order macros. 10815 } // NOLINT, false-positive due to second-order macros.
10813 10816
10814 #endif // V8_OBJECTS_H_ 10817 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/interpreter/control-flow-builders.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698