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

Side by Side Diff: src/messages.h

Issue 1404613002: Check for validity when accessing call site objects in runtime. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 | « no previous file | 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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 Handle<Object> GetMethodName(); 55 Handle<Object> GetMethodName();
56 // Return 1-based line number, including line offset. 56 // Return 1-based line number, including line offset.
57 int GetLineNumber(); 57 int GetLineNumber();
58 // Return 1-based column number, including column offset if first line. 58 // Return 1-based column number, including column offset if first line.
59 int GetColumnNumber(); 59 int GetColumnNumber();
60 bool IsNative(); 60 bool IsNative();
61 bool IsToplevel(); 61 bool IsToplevel();
62 bool IsEval(); 62 bool IsEval();
63 bool IsConstructor(); 63 bool IsConstructor();
64 64
65 bool IsValid() { return !fun_.is_null(); }
66
65 private: 67 private:
66 Isolate* isolate_; 68 Isolate* isolate_;
67 Handle<Object> receiver_; 69 Handle<Object> receiver_;
68 Handle<JSFunction> fun_; 70 Handle<JSFunction> fun_;
69 int pos_; 71 int pos_;
70 }; 72 };
71 73
72 74
73 #define MESSAGE_TEMPLATES(T) \ 75 #define MESSAGE_TEMPLATES(T) \
74 /* Error */ \ 76 /* Error */ \
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( 494 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty(
493 Isolate* isolate, LookupIterator* property_lookup, 495 Isolate* isolate, LookupIterator* property_lookup,
494 Handle<String> default_value); 496 Handle<String> default_value);
495 497
496 List<Handle<JSObject> > visited_; 498 List<Handle<JSObject> > visited_;
497 }; 499 };
498 } // namespace internal 500 } // namespace internal
499 } // namespace v8 501 } // namespace v8
500 502
501 #endif // V8_MESSAGES_H_ 503 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « no previous file | src/messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698