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
« no previous file with comments | « src/js/messages.js ('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 #include <memory> 9 #include <memory>
10 10
(...skipping 8121 matching lines...) Expand 10 before | Expand all | Expand 10 after
8132 DECL_ACCESSORS(stack_frames, Object) 8132 DECL_ACCESSORS(stack_frames, Object)
8133 8133
8134 // [start_position]: the start position in the script for the error message. 8134 // [start_position]: the start position in the script for the error message.
8135 inline int start_position() const; 8135 inline int start_position() const;
8136 inline void set_start_position(int value); 8136 inline void set_start_position(int value);
8137 8137
8138 // [end_position]: the end position in the script for the error message. 8138 // [end_position]: the end position in the script for the error message.
8139 inline int end_position() const; 8139 inline int end_position() const;
8140 inline void set_end_position(int value); 8140 inline void set_end_position(int value);
8141 8141
8142 int GetLineNumber() const;
8143
8144 // Returns the offset of the given position within the containing line.
8145 int GetColumnNumber() const;
8146
8147 // Returns the source code line containing the given source
8148 // position, or the empty string if the position is invalid.
8149 Handle<String> GetSourceLine() const;
8150
8142 DECLARE_CAST(JSMessageObject) 8151 DECLARE_CAST(JSMessageObject)
8143 8152
8144 // Dispatched behavior. 8153 // Dispatched behavior.
8145 DECLARE_PRINTER(JSMessageObject) 8154 DECLARE_PRINTER(JSMessageObject)
8146 DECLARE_VERIFIER(JSMessageObject) 8155 DECLARE_VERIFIER(JSMessageObject)
8147 8156
8148 // Layout description. 8157 // Layout description.
8149 static const int kTypeOffset = JSObject::kHeaderSize; 8158 static const int kTypeOffset = JSObject::kHeaderSize;
8150 static const int kArgumentsOffset = kTypeOffset + kPointerSize; 8159 static const int kArgumentsOffset = kTypeOffset + kPointerSize;
8151 static const int kScriptOffset = kArgumentsOffset + kPointerSize; 8160 static const int kScriptOffset = kArgumentsOffset + kPointerSize;
(...skipping 2924 matching lines...) Expand 10 before | Expand all | Expand 10 after
11076 } 11085 }
11077 return value; 11086 return value;
11078 } 11087 }
11079 }; 11088 };
11080 11089
11081 11090
11082 } // NOLINT, false-positive due to second-order macros. 11091 } // NOLINT, false-positive due to second-order macros.
11083 } // NOLINT, false-positive due to second-order macros. 11092 } // NOLINT, false-positive due to second-order macros.
11084 11093
11085 #endif // V8_OBJECTS_H_ 11094 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/js/messages.js ('k') | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698