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

Unified Diff: src/compiler.h

Issue 959203002: CpuProfiler: replace raw position with SourcePosition for DeoptReason (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: unnecessary changes were removed Created 5 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 side-by-side diff with in-line comments
Download patch
Index: src/compiler.h
diff --git a/src/compiler.h b/src/compiler.h
index 8ef2e0a95b3ca19813347b7de738f1a1ae6a1cfe..a6351ec42e496d08f0ff292b1822aed412e0330b 100644
--- a/src/compiler.h
+++ b/src/compiler.h
@@ -39,7 +39,7 @@ struct OffsetRange {
// script start.
class SourcePosition {
public:
- SourcePosition(const SourcePosition& other) : value_(other.value_) {}
+ explicit SourcePosition(uint32_t value) : value_(value) {}
static SourcePosition Unknown() { return SourcePosition(kNoPosition); }
@@ -72,8 +72,6 @@ class SourcePosition {
// Offset from the start of the inlined function.
typedef BitField<uint32_t, 9, 23> PositionField;
- explicit SourcePosition(uint32_t value) : value_(value) {}
-
friend class HPositionInfo;
friend class LCodeGenBase;

Powered by Google App Engine
This is Rietveld 408576698