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/messages.h

Issue 1293493004: Unify symbols sharing across native scripts and runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 5 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/macros.py ('k') | src/messages.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 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 // The infrastructure used for (localized) message reporting in V8. 5 // The infrastructure used for (localized) message reporting in V8.
6 // 6 //
7 // Note: there's a big unresolved issue about ownership of the data 7 // Note: there's a big unresolved issue about ownership of the data
8 // structures used by this framework. 8 // structures used by this framework.
9 9
10 #ifndef V8_MESSAGES_H_ 10 #ifndef V8_MESSAGES_H_
(...skipping 29 matching lines...) Expand all
40 private: 40 private:
41 Handle<Script> script_; 41 Handle<Script> script_;
42 int start_pos_; 42 int start_pos_;
43 int end_pos_; 43 int end_pos_;
44 Handle<JSFunction> function_; 44 Handle<JSFunction> function_;
45 }; 45 };
46 46
47 47
48 class CallSite { 48 class CallSite {
49 public: 49 public:
50 CallSite(Handle<Object> receiver, Handle<JSFunction> fun, int pos) 50 CallSite(Isolate* isolate, Handle<JSObject> call_site_obj);
51 : receiver_(receiver), fun_(fun), pos_(pos) {}
52 51
53 Handle<Object> GetFileName(Isolate* isolate); 52 Handle<Object> GetFileName();
54 Handle<Object> GetFunctionName(Isolate* isolate); 53 Handle<Object> GetFunctionName();
55 Handle<Object> GetScriptNameOrSourceUrl(Isolate* isolate); 54 Handle<Object> GetScriptNameOrSourceUrl();
56 Handle<Object> GetMethodName(Isolate* isolate); 55 Handle<Object> GetMethodName();
57 // Return 1-based line number, including line offset. 56 // Return 1-based line number, including line offset.
58 int GetLineNumber(Isolate* isolate); 57 int GetLineNumber();
59 // Return 1-based column number, including column offset if first line. 58 // Return 1-based column number, including column offset if first line.
60 int GetColumnNumber(Isolate* isolate); 59 int GetColumnNumber();
61 bool IsNative(Isolate* isolate); 60 bool IsNative();
62 bool IsToplevel(Isolate* isolate); 61 bool IsToplevel();
63 bool IsEval(Isolate* isolate); 62 bool IsEval();
64 bool IsConstructor(Isolate* isolate); 63 bool IsConstructor();
65 64
66 private: 65 private:
66 Isolate* isolate_;
67 Handle<Object> receiver_; 67 Handle<Object> receiver_;
68 Handle<JSFunction> fun_; 68 Handle<JSFunction> fun_;
69 int pos_; 69 int pos_;
70 }; 70 };
71 71
72 72
73 #define MESSAGE_TEMPLATES(T) \ 73 #define MESSAGE_TEMPLATES(T) \
74 /* Error */ \ 74 /* Error */ \
75 T(None, "") \ 75 T(None, "") \
76 T(CyclicProto, "Cyclic __proto__ value") \ 76 T(CyclicProto, "Cyclic __proto__ value") \
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
481 481
482 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( 482 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty(
483 Isolate* isolate, LookupIterator* property_lookup, 483 Isolate* isolate, LookupIterator* property_lookup,
484 Handle<String> default_value); 484 Handle<String> default_value);
485 485
486 List<Handle<JSObject> > visited_; 486 List<Handle<JSObject> > visited_;
487 }; 487 };
488 } } // namespace v8::internal 488 } } // namespace v8::internal
489 489
490 #endif // V8_MESSAGES_H_ 490 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/macros.py ('k') | src/messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698