Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium 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 // This file is for functions that are used only by generated code. | 5 // This file is for functions that are used only by generated code. |
| 6 // CAUTION: | 6 // CAUTION: |
| 7 // All functions defined in this file should be used by generated code only. | 7 // All functions defined in this file should be used by generated code only. |
| 8 // If you want to use them from hand-written code, please find appropriate | 8 // If you want to use them from hand-written code, please find appropriate |
| 9 // location and move them to that location. | 9 // location and move them to that location. |
| 10 | 10 |
| 11 #ifndef GeneratedCodeHelper_h | 11 #ifndef GeneratedCodeHelper_h |
| 12 #define GeneratedCodeHelper_h | 12 #define GeneratedCodeHelper_h |
| 13 | 13 |
| 14 #include "bindings/core/v8/SerializedScriptValue.h" | |
|
Yuki
2016/08/10 02:16:34
I'm not sure if it's possible or not, but could yo
lkawai
2016/08/10 05:28:30
Done.
| |
| 14 #include "core/CoreExport.h" | 15 #include "core/CoreExport.h" |
| 15 #include <v8.h> | 16 #include <v8.h> |
| 16 | 17 |
| 17 namespace blink { | 18 namespace blink { |
| 18 | 19 |
| 19 CORE_EXPORT void v8ConstructorAttributeGetter(v8::Local<v8::Name> propertyName, const v8::PropertyCallbackInfo<v8::Value>&); | 20 CORE_EXPORT void v8ConstructorAttributeGetter(v8::Local<v8::Name> propertyName, const v8::PropertyCallbackInfo<v8::Value>&); |
| 20 | 21 |
| 22 CORE_EXPORT v8::Local<v8::Value> v8Deserialize(v8::Isolate*, PassRefPtr<Serializ edScriptValue>); | |
|
haraken
2016/08/10 02:19:36
I'm getting confused about what functions you're p
Yuki
2016/08/10 02:30:16
For hand-written code, value->deserialize() is pre
peria
2016/08/10 02:31:42
The objective of CL is to avoid running needless d
Yuki
2016/08/10 02:37:32
Note that toV8() is ideally supposed to satisfy th
lkawai
2016/08/10 05:28:30
Acknowledged.
| |
| 23 | |
| 21 } // namespace blink | 24 } // namespace blink |
| 22 | 25 |
| 23 #endif // GeneratedCodeHelper_h | 26 #endif // GeneratedCodeHelper_h |
| OLD | NEW |