Line data Source code
1 : // Copyright 2017 the V8 project authors. All rights reserved.
2 : // Use of this source code is governed by a BSD-style license that can be
3 : // found in the LICENSE file.
4 :
5 : #ifndef V8_BUILTINS_BUILTINS_INTL_H_
6 : #define V8_BUILTINS_BUILTINS_INTL_H_
7 :
8 : #include <stdint.h>
9 : #include <vector>
10 :
11 : namespace v8 {
12 : namespace internal {
13 :
14 : struct NumberFormatSpan {
15 : int32_t field_id;
16 : int32_t begin_pos;
17 : int32_t end_pos;
18 :
19 : NumberFormatSpan() {}
20 : NumberFormatSpan(int32_t field_id, int32_t begin_pos, int32_t end_pos)
21 2463 : : field_id(field_id), begin_pos(begin_pos), end_pos(end_pos) {}
22 : };
23 :
24 : std::vector<NumberFormatSpan> FlattenRegionsToParts(
25 : std::vector<NumberFormatSpan>* regions);
26 :
27 : } // namespace internal
28 : } // namespace v8
29 :
30 : #endif // V8_BUILTINS_BUILTINS_H_
|