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

Unified Diff: src/objects.h

Issue 1149563011: Verify a bit more about external strings (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/heap/heap-inl.h ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index 582038cca64ea6cd8e8ae83ced0b43ec80968d0a..f5d3cfaef495548eac08ce1c698cd460a7f6b1d4 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -9287,6 +9287,8 @@ class ExternalString: public String {
public:
DECLARE_CAST(ExternalString)
+ inline const void* resource_data() const;
+
// Layout description.
static const int kResourceOffset = POINTER_SIZE_ALIGN(String::kSize);
static const int kShortSize = kResourceOffset + kPointerSize;
@@ -9315,7 +9317,7 @@ class ExternalOneByteString : public ExternalString {
typedef v8::String::ExternalOneByteStringResource Resource;
// The underlying resource.
- inline const Resource* resource();
+ inline const Resource* resource() const;
inline void set_resource(const Resource* buffer);
// Update the pointer cache to the external character array.
@@ -9351,7 +9353,7 @@ class ExternalTwoByteString: public ExternalString {
typedef v8::String::ExternalStringResource Resource;
// The underlying string resource.
- inline const Resource* resource();
+ inline const Resource* resource() const;
inline void set_resource(const Resource* buffer);
// Update the pointer cache to the external character array.
« no previous file with comments | « src/heap/heap-inl.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698