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

Side by Side Diff: src/objects.h

Issue 2695823003: [debugger] add lcov support to d8. (Closed)
Patch Set: actual fix Created 3 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/debug/debug-coverage.cc ('k') | no next file » | 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 6676 matching lines...) Expand 10 before | Expand all | Expand 10 after
6687 // Specifies whether to add offsets to position infos. 6687 // Specifies whether to add offsets to position infos.
6688 enum OffsetFlag { NO_OFFSET = 0, WITH_OFFSET = 1 }; 6688 enum OffsetFlag { NO_OFFSET = 0, WITH_OFFSET = 1 };
6689 6689
6690 // Retrieves information about the given position, optionally with an offset. 6690 // Retrieves information about the given position, optionally with an offset.
6691 // Returns false on failure, and otherwise writes into the given info object 6691 // Returns false on failure, and otherwise writes into the given info object
6692 // on success. 6692 // on success.
6693 // The static method should is preferable for handlified callsites because it 6693 // The static method should is preferable for handlified callsites because it
6694 // initializes the line ends array, avoiding expensive recomputations. 6694 // initializes the line ends array, avoiding expensive recomputations.
6695 // The non-static version is not allocating and safe for unhandlified 6695 // The non-static version is not allocating and safe for unhandlified
6696 // callsites. 6696 // callsites.
6697 static bool GetPositionInfo(Handle<Script> script, int position, 6697 V8_EXPORT_PRIVATE static bool GetPositionInfo(Handle<Script> script,
6698 PositionInfo* info, OffsetFlag offset_flag); 6698 int position,
6699 PositionInfo* info,
6700 OffsetFlag offset_flag);
6699 bool GetPositionInfo(int position, PositionInfo* info, 6701 bool GetPositionInfo(int position, PositionInfo* info,
6700 OffsetFlag offset_flag) const; 6702 OffsetFlag offset_flag) const;
6701 6703
6702 // Wrappers for GetPositionInfo 6704 // Wrappers for GetPositionInfo
6703 static int GetColumnNumber(Handle<Script> script, int code_offset); 6705 static int GetColumnNumber(Handle<Script> script, int code_offset);
6704 int GetColumnNumber(int code_pos) const; 6706 int GetColumnNumber(int code_pos) const;
6705 static int GetLineNumber(Handle<Script> script, int code_offset); 6707 static int GetLineNumber(Handle<Script> script, int code_offset);
6706 int GetLineNumber(int code_pos) const; 6708 int GetLineNumber(int code_pos) const;
6707 6709
6708 // Get the JS object wrapping the given script; create it if none exists. 6710 // Get the JS object wrapping the given script; create it if none exists.
(...skipping 4840 matching lines...) Expand 10 before | Expand all | Expand 10 after
11549 } 11551 }
11550 }; 11552 };
11551 11553
11552 11554
11553 } // NOLINT, false-positive due to second-order macros. 11555 } // NOLINT, false-positive due to second-order macros.
11554 } // NOLINT, false-positive due to second-order macros. 11556 } // NOLINT, false-positive due to second-order macros.
11555 11557
11556 #include "src/objects/object-macros-undef.h" 11558 #include "src/objects/object-macros-undef.h"
11557 11559
11558 #endif // V8_OBJECTS_H_ 11560 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/debug/debug-coverage.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698