| OLD | NEW |
| 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 7133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7144 // this through. Encoded in the 'flags' field. | 7144 // this through. Encoded in the 'flags' field. |
| 7145 inline v8::ScriptOriginOptions origin_options(); | 7145 inline v8::ScriptOriginOptions origin_options(); |
| 7146 inline void set_origin_options(ScriptOriginOptions origin_options); | 7146 inline void set_origin_options(ScriptOriginOptions origin_options); |
| 7147 | 7147 |
| 7148 DECLARE_CAST(Script) | 7148 DECLARE_CAST(Script) |
| 7149 | 7149 |
| 7150 // If script source is an external string, check that the underlying | 7150 // If script source is an external string, check that the underlying |
| 7151 // resource is accessible. Otherwise, always return true. | 7151 // resource is accessible. Otherwise, always return true. |
| 7152 inline bool HasValidSource(); | 7152 inline bool HasValidSource(); |
| 7153 | 7153 |
| 7154 static Handle<Object> GetNameOrSourceURL(Handle<Script> script); | 7154 Object* GetNameOrSourceURL(); |
| 7155 | 7155 |
| 7156 // Set eval origin for stack trace formatting. | 7156 // Set eval origin for stack trace formatting. |
| 7157 static void SetEvalOrigin(Handle<Script> script, | 7157 static void SetEvalOrigin(Handle<Script> script, |
| 7158 Handle<SharedFunctionInfo> outer, | 7158 Handle<SharedFunctionInfo> outer, |
| 7159 int eval_position); | 7159 int eval_position); |
| 7160 // Retrieve source position from where eval was called. | 7160 // Retrieve source position from where eval was called. |
| 7161 int GetEvalPosition(); | 7161 int GetEvalPosition(); |
| 7162 | 7162 |
| 7163 // Init line_ends array with source code positions of line ends. | 7163 // Init line_ends array with source code positions of line ends. |
| 7164 static void InitLineEnds(Handle<Script> script); | 7164 static void InitLineEnds(Handle<Script> script); |
| (...skipping 4843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12008 } | 12008 } |
| 12009 return value; | 12009 return value; |
| 12010 } | 12010 } |
| 12011 }; | 12011 }; |
| 12012 | 12012 |
| 12013 | 12013 |
| 12014 } // NOLINT, false-positive due to second-order macros. | 12014 } // NOLINT, false-positive due to second-order macros. |
| 12015 } // NOLINT, false-positive due to second-order macros. | 12015 } // NOLINT, false-positive due to second-order macros. |
| 12016 | 12016 |
| 12017 #endif // V8_OBJECTS_H_ | 12017 #endif // V8_OBJECTS_H_ |
| OLD | NEW |