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

Side by Side Diff: src/interpreter/handler-table-builder.h

Issue 2523893003: Reland of [ignition/turbo] Perform liveness analysis on the bytecodes (Closed)
Patch Set: Export handler table for tests Created 4 years 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/v8.gyp » ('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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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_INTERPRETER_HANDLER_TABLE_BUILDER_H_ 5 #ifndef V8_INTERPRETER_HANDLER_TABLE_BUILDER_H_
6 #define V8_INTERPRETER_HANDLER_TABLE_BUILDER_H_ 6 #define V8_INTERPRETER_HANDLER_TABLE_BUILDER_H_
7 7
8 #include "src/handles.h" 8 #include "src/handles.h"
9 #include "src/interpreter/bytecode-register.h" 9 #include "src/interpreter/bytecode-register.h"
10 #include "src/interpreter/bytecodes.h" 10 #include "src/interpreter/bytecodes.h"
11 #include "src/zone/zone-containers.h" 11 #include "src/zone/zone-containers.h"
12 12
13 namespace v8 { 13 namespace v8 {
14 namespace internal { 14 namespace internal {
15 15
16 class HandlerTable; 16 class HandlerTable;
17 class Isolate; 17 class Isolate;
18 18
19 namespace interpreter { 19 namespace interpreter {
20 20
21 // A helper class for constructing exception handler tables for the interpreter. 21 // A helper class for constructing exception handler tables for the interpreter.
22 class HandlerTableBuilder final BASE_EMBEDDED { 22 class V8_EXPORT_PRIVATE HandlerTableBuilder final BASE_EMBEDDED {
23 public: 23 public:
24 explicit HandlerTableBuilder(Zone* zone); 24 explicit HandlerTableBuilder(Zone* zone);
25 25
26 // Builds the actual handler table by copying the current values into a heap 26 // Builds the actual handler table by copying the current values into a heap
27 // object. Any further mutations to the builder won't be reflected. 27 // object. Any further mutations to the builder won't be reflected.
28 Handle<HandlerTable> ToHandlerTable(Isolate* isolate); 28 Handle<HandlerTable> ToHandlerTable(Isolate* isolate);
29 29
30 // Creates a new handler table entry and returns a {hander_id} identifying the 30 // Creates a new handler table entry and returns a {hander_id} identifying the
31 // entry, so that it can be referenced by below setter functions. 31 // entry, so that it can be referenced by below setter functions.
32 int NewHandlerEntry(); 32 int NewHandlerEntry();
(...skipping 20 matching lines...) Expand all
53 ZoneVector<Entry> entries_; 53 ZoneVector<Entry> entries_;
54 54
55 DISALLOW_COPY_AND_ASSIGN(HandlerTableBuilder); 55 DISALLOW_COPY_AND_ASSIGN(HandlerTableBuilder);
56 }; 56 };
57 57
58 } // namespace interpreter 58 } // namespace interpreter
59 } // namespace internal 59 } // namespace internal
60 } // namespace v8 60 } // namespace v8
61 61
62 #endif // V8_INTERPRETER_HANDLER_TABLE_BUILDER_H_ 62 #endif // V8_INTERPRETER_HANDLER_TABLE_BUILDER_H_
OLDNEW
« no previous file with comments | « src/interpreter/control-flow-builders.cc ('k') | src/v8.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698