|
1 | 1 | /*
|
2 |
| - Copyright (c) 2013, 2017, Oracle and/or its affiliates. All rights reserved. |
| 2 | + Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. |
3 | 3 |
|
4 | 4 | This program is free software; you can redistribute it and/or modify
|
5 | 5 | it under the terms of the GNU General Public License, version 2.0,
|
@@ -225,27 +225,27 @@ struct encoder_stats_t {
|
225 | 225 |
|
226 | 226 | /* Exports to JavaScript
|
227 | 227 | */
|
228 |
| -void GET_read_strings_externalized(Local<String>, const AccessorInfo & info) { |
| 228 | +void GET_read_strings_externalized(V8_PROPERTY_NAME_T, const AccessorInfo & info) { |
229 | 229 | info.GetReturnValue().Set(stats.read_strings_externalized);
|
230 | 230 | }
|
231 | 231 |
|
232 |
| -void GET_read_strings_created(Local<String>, const AccessorInfo & info) { |
| 232 | +void GET_read_strings_created(V8_PROPERTY_NAME_T, const AccessorInfo & info) { |
233 | 233 | info.GetReturnValue().Set(stats.read_strings_created);
|
234 | 234 | }
|
235 | 235 |
|
236 |
| -void GET_read_strings_recoded(Local<String>, const AccessorInfo & info) { |
| 236 | +void GET_read_strings_recoded(V8_PROPERTY_NAME_T, const AccessorInfo & info) { |
237 | 237 | info.GetReturnValue().Set(stats.read_strings_recoded);
|
238 | 238 | }
|
239 | 239 |
|
240 |
| -void GET_externalized_text_writes(Local<String>, const AccessorInfo & info){ |
| 240 | +void GET_externalized_text_writes(V8_PROPERTY_NAME_T, const AccessorInfo & info){ |
241 | 241 | info.GetReturnValue().Set(stats.externalized_text_writes);
|
242 | 242 | }
|
243 | 243 |
|
244 |
| -void GET_direct_writes(Local<String>, const AccessorInfo & info) { |
| 244 | +void GET_direct_writes(V8_PROPERTY_NAME_T, const AccessorInfo & info) { |
245 | 245 | info.GetReturnValue().Set(stats.direct_writes);
|
246 | 246 | }
|
247 | 247 |
|
248 |
| -void GET_recode_writes(Local<String>, const AccessorInfo & info) { |
| 248 | +void GET_recode_writes(V8_PROPERTY_NAME_T, const AccessorInfo & info) { |
249 | 249 | info.GetReturnValue().Set(stats.recode_writes);
|
250 | 250 | }
|
251 | 251 |
|
@@ -280,13 +280,16 @@ void NdbTypeEncoders_initOnLoad(Handle<Object> target) {
|
280 | 280 |
|
281 | 281 | Local<Object> s = Object::New(isolate);
|
282 | 282 | target->Set(NEW_SYMBOL("encoder_stats"), s);
|
283 |
| - DEFINE_JS_ACCESSOR(s, "read_strings_externalized", |
| 283 | + DEFINE_JS_ACCESSOR(isolate, s, "read_strings_externalized", |
284 | 284 | GET_read_strings_externalized);
|
285 |
| - DEFINE_JS_ACCESSOR(s, "read_strings_created", GET_read_strings_created); |
286 |
| - DEFINE_JS_ACCESSOR(s, "read_strings_recoded", GET_read_strings_recoded); |
287 |
| - DEFINE_JS_ACCESSOR(s, "externalized_text_writes", GET_externalized_text_writes); |
288 |
| - DEFINE_JS_ACCESSOR(s, "direct_writes", GET_direct_writes); |
289 |
| - DEFINE_JS_ACCESSOR(s, "recode_writes", GET_recode_writes); |
| 285 | + DEFINE_JS_ACCESSOR(isolate, s, "read_strings_created", |
| 286 | + GET_read_strings_created); |
| 287 | + DEFINE_JS_ACCESSOR(isolate, s, "read_strings_recoded", |
| 288 | + GET_read_strings_recoded); |
| 289 | + DEFINE_JS_ACCESSOR(isolate, s, "externalized_text_writes", |
| 290 | + GET_externalized_text_writes); |
| 291 | + DEFINE_JS_ACCESSOR(isolate, s, "direct_writes", GET_direct_writes); |
| 292 | + DEFINE_JS_ACCESSOR(isolate, s, "recode_writes", GET_recode_writes); |
290 | 293 | }
|
291 | 294 |
|
292 | 295 |
|
|
0 commit comments