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

Side by Side Diff: src/objects.h

Issue 2224973002: Move remaining Message functions to C++ (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 4 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
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 8111 matching lines...) Expand 10 before | Expand all | Expand 10 after
8122 DECL_ACCESSORS(stack_frames, Object) 8122 DECL_ACCESSORS(stack_frames, Object)
8123 8123
8124 // [start_position]: the start position in the script for the error message. 8124 // [start_position]: the start position in the script for the error message.
8125 inline int start_position() const; 8125 inline int start_position() const;
8126 inline void set_start_position(int value); 8126 inline void set_start_position(int value);
8127 8127
8128 // [end_position]: the end position in the script for the error message. 8128 // [end_position]: the end position in the script for the error message.
8129 inline int end_position() const; 8129 inline int end_position() const;
8130 inline void set_end_position(int value); 8130 inline void set_end_position(int value);
8131 8131
8132 int GetLineNumber() const;
8133
8134 // Returns the offset of the given position within the containing line.
8135 int GetColumnNumber() const;
8136
8137 // Returns the source code line containing the given source
8138 // position, or the empty string if the position is invalid.
8139 Handle<String> GetSourceLine() const;
8140
8132 DECLARE_CAST(JSMessageObject) 8141 DECLARE_CAST(JSMessageObject)
8133 8142
8134 // Dispatched behavior. 8143 // Dispatched behavior.
8135 DECLARE_PRINTER(JSMessageObject) 8144 DECLARE_PRINTER(JSMessageObject)
8136 DECLARE_VERIFIER(JSMessageObject) 8145 DECLARE_VERIFIER(JSMessageObject)
8137 8146
8138 // Layout description. 8147 // Layout description.
8139 static const int kTypeOffset = JSObject::kHeaderSize; 8148 static const int kTypeOffset = JSObject::kHeaderSize;
8140 static const int kArgumentsOffset = kTypeOffset + kPointerSize; 8149 static const int kArgumentsOffset = kTypeOffset + kPointerSize;
8141 static const int kScriptOffset = kArgumentsOffset + kPointerSize; 8150 static const int kScriptOffset = kArgumentsOffset + kPointerSize;
(...skipping 2925 matching lines...) Expand 10 before | Expand all | Expand 10 after
11067 } 11076 }
11068 return value; 11077 return value;
11069 } 11078 }
11070 }; 11079 };
11071 11080
11072 11081
11073 } // NOLINT, false-positive due to second-order macros. 11082 } // NOLINT, false-positive due to second-order macros.
11074 } // NOLINT, false-positive due to second-order macros. 11083 } // NOLINT, false-positive due to second-order macros.
11075 11084
11076 #endif // V8_OBJECTS_H_ 11085 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698