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

Unified Diff: src/i18n.cc

Issue 2741683004: [rename] Rename internal field to embedder field. (Closed)
Patch Set: [rename] Rename internal field to embedder field. Created 3 years, 9 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.cc ('k') | src/objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/i18n.cc
diff --git a/src/i18n.cc b/src/i18n.cc
index 7c22871ff5e440f771659d44a0db013b34ec2105..c1038498146e6c0791ae1ba2e4aa328ed483d569 100644
--- a/src/i18n.cc
+++ b/src/i18n.cc
@@ -741,7 +741,7 @@ icu::SimpleDateFormat* DateFormat::InitializeDateTimeFormat(
icu::SimpleDateFormat* DateFormat::UnpackDateFormat(
Isolate* isolate,
Handle<JSObject> obj) {
- return reinterpret_cast<icu::SimpleDateFormat*>(obj->GetInternalField(0));
+ return reinterpret_cast<icu::SimpleDateFormat*>(obj->GetEmbedderField(0));
}
void DateFormat::DeleteDateFormat(const v8::WeakCallbackInfo<void>& data) {
@@ -796,7 +796,7 @@ icu::DecimalFormat* NumberFormat::InitializeNumberFormat(
icu::DecimalFormat* NumberFormat::UnpackNumberFormat(
Isolate* isolate,
Handle<JSObject> obj) {
- return reinterpret_cast<icu::DecimalFormat*>(obj->GetInternalField(0));
+ return reinterpret_cast<icu::DecimalFormat*>(obj->GetEmbedderField(0));
}
void NumberFormat::DeleteNumberFormat(const v8::WeakCallbackInfo<void>& data) {
@@ -848,7 +848,7 @@ icu::Collator* Collator::InitializeCollator(
icu::Collator* Collator::UnpackCollator(Isolate* isolate,
Handle<JSObject> obj) {
- return reinterpret_cast<icu::Collator*>(obj->GetInternalField(0));
+ return reinterpret_cast<icu::Collator*>(obj->GetEmbedderField(0));
}
void Collator::DeleteCollator(const v8::WeakCallbackInfo<void>& data) {
@@ -899,7 +899,7 @@ icu::BreakIterator* V8BreakIterator::InitializeBreakIterator(
icu::BreakIterator* V8BreakIterator::UnpackBreakIterator(Isolate* isolate,
Handle<JSObject> obj) {
- return reinterpret_cast<icu::BreakIterator*>(obj->GetInternalField(0));
+ return reinterpret_cast<icu::BreakIterator*>(obj->GetEmbedderField(0));
}
void V8BreakIterator::DeleteBreakIterator(
« no previous file with comments | « src/heap/heap.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698