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

Side by Side Diff: src/objects.h

Issue 1731883003: Encode interpreter::SourcePositionTable as variable-length ints. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Really fix leak. SourcePositionTableBuilder is member of a zone-allocated object. 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/source-position-table.cc ('k') | src/objects.cc » ('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/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 4444 matching lines...) Expand 10 before | Expand all | Expand 10 after
4455 inline void set_interrupt_budget(int interrupt_budget); 4455 inline void set_interrupt_budget(int interrupt_budget);
4456 4456
4457 // Accessors for the constant pool. 4457 // Accessors for the constant pool.
4458 DECL_ACCESSORS(constant_pool, FixedArray) 4458 DECL_ACCESSORS(constant_pool, FixedArray)
4459 4459
4460 // Accessors for handler table containing offsets of exception handlers. 4460 // Accessors for handler table containing offsets of exception handlers.
4461 DECL_ACCESSORS(handler_table, FixedArray) 4461 DECL_ACCESSORS(handler_table, FixedArray)
4462 4462
4463 // Accessors for source position table containing mappings between byte code 4463 // Accessors for source position table containing mappings between byte code
4464 // offset and source position. 4464 // offset and source position.
4465 DECL_ACCESSORS(source_position_table, FixedArray) 4465 DECL_ACCESSORS(source_position_table, ByteArray)
4466 4466
4467 DECLARE_CAST(BytecodeArray) 4467 DECLARE_CAST(BytecodeArray)
4468 4468
4469 // Dispatched behavior. 4469 // Dispatched behavior.
4470 inline int BytecodeArraySize(); 4470 inline int BytecodeArraySize();
4471 4471
4472 inline int instruction_size(); 4472 inline int instruction_size();
4473 4473
4474 int SourcePosition(int offset); 4474 int SourcePosition(int offset);
4475 int SourceStatementPosition(int offset); 4475 int SourceStatementPosition(int offset);
(...skipping 6358 matching lines...) Expand 10 before | Expand all | Expand 10 after
10834 } 10834 }
10835 return value; 10835 return value;
10836 } 10836 }
10837 }; 10837 };
10838 10838
10839 10839
10840 } // NOLINT, false-positive due to second-order macros. 10840 } // NOLINT, false-positive due to second-order macros.
10841 } // NOLINT, false-positive due to second-order macros. 10841 } // NOLINT, false-positive due to second-order macros.
10842 10842
10843 #endif // V8_OBJECTS_H_ 10843 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/interpreter/source-position-table.cc ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698