Shared build fix
R=rossberg@chromium.org BUG= Review URL: https://codereview.chromium.org/14396004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14480 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
f1e9ec2e12
commit
eb6e6f767a
@ -1459,7 +1459,9 @@ Handle<ObjectTemplate> Shell::CreateGlobalTemplate(Isolate* isolate) {
|
|||||||
global_template->Set(String::New("Realm"), realm_template);
|
global_template->Set(String::New("Realm"), realm_template);
|
||||||
|
|
||||||
// Bind the handlers for external arrays.
|
// Bind the handlers for external arrays.
|
||||||
|
#ifndef V8_SHARED
|
||||||
if (!i::FLAG_harmony_typed_arrays) {
|
if (!i::FLAG_harmony_typed_arrays) {
|
||||||
|
#endif // V8_SHARED
|
||||||
PropertyAttribute attr =
|
PropertyAttribute attr =
|
||||||
static_cast<PropertyAttribute>(ReadOnly | DontDelete);
|
static_cast<PropertyAttribute>(ReadOnly | DontDelete);
|
||||||
global_template->Set(PerIsolateData::ArrayBuffer_string(isolate),
|
global_template->Set(PerIsolateData::ArrayBuffer_string(isolate),
|
||||||
@ -1482,7 +1484,9 @@ Handle<ObjectTemplate> Shell::CreateGlobalTemplate(Isolate* isolate) {
|
|||||||
CreateArrayTemplate(Float64Array), attr);
|
CreateArrayTemplate(Float64Array), attr);
|
||||||
global_template->Set(String::New("Uint8ClampedArray"),
|
global_template->Set(String::New("Uint8ClampedArray"),
|
||||||
CreateArrayTemplate(Uint8ClampedArray), attr);
|
CreateArrayTemplate(Uint8ClampedArray), attr);
|
||||||
|
#ifndef V8_SHARED
|
||||||
}
|
}
|
||||||
|
#endif // V8_SHARED
|
||||||
|
|
||||||
#if !defined(V8_SHARED) && !defined(_WIN32) && !defined(_WIN64)
|
#if !defined(V8_SHARED) && !defined(_WIN32) && !defined(_WIN64)
|
||||||
Handle<ObjectTemplate> os_templ = ObjectTemplate::New();
|
Handle<ObjectTemplate> os_templ = ObjectTemplate::New();
|
||||||
@ -1726,7 +1730,7 @@ static char* ReadLine(char* data) {
|
|||||||
static char* ReadWord(char* data) {
|
static char* ReadWord(char* data) {
|
||||||
return ReadToken(data, ' ');
|
return ReadToken(data, ' ');
|
||||||
}
|
}
|
||||||
#endif // V8_SHARED
|
#endif // trueV8_SHARED
|
||||||
|
|
||||||
|
|
||||||
// Reads a file into a v8 string.
|
// Reads a file into a v8 string.
|
||||||
|
Loading…
Reference in New Issue
Block a user