OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 28 matching lines...) Expand all Loading... |
39 : m_isolate(isolate) | 39 : m_isolate(isolate) |
40 , m_stringCache(adoptPtr(new StringCache())) | 40 , m_stringCache(adoptPtr(new StringCache())) |
41 , m_workerDomDataStore(0) | 41 , m_workerDomDataStore(0) |
42 , m_constructorMode(ConstructorMode::CreateNewObject) | 42 , m_constructorMode(ConstructorMode::CreateNewObject) |
43 , m_recursionLevel(0) | 43 , m_recursionLevel(0) |
44 #ifndef NDEBUG | 44 #ifndef NDEBUG |
45 , m_internalScriptRecursionLevel(0) | 45 , m_internalScriptRecursionLevel(0) |
46 #endif | 46 #endif |
47 , m_gcEventData(adoptPtr(new GCEventData())) | 47 , m_gcEventData(adoptPtr(new GCEventData())) |
48 , m_shouldCollectGarbageSoon(false) | 48 , m_shouldCollectGarbageSoon(false) |
| 49 , m_performingMicrotaskCheckpoint(false) |
49 { | 50 { |
50 } | 51 } |
51 | 52 |
52 V8PerIsolateData::~V8PerIsolateData() | 53 V8PerIsolateData::~V8PerIsolateData() |
53 { | 54 { |
54 } | 55 } |
55 | 56 |
56 V8PerIsolateData* V8PerIsolateData::create(v8::Isolate* isolate) | 57 V8PerIsolateData* V8PerIsolateData::create(v8::Isolate* isolate) |
57 { | 58 { |
58 ASSERT(isolate); | 59 ASSERT(isolate); |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 // obscure and unlikely to be a problem. | 156 // obscure and unlikely to be a problem. |
156 v8::Handle<v8::Value> value = info.Callee()->Get(v8AtomicString(info.GetIsol
ate(), "toString")); | 157 v8::Handle<v8::Value> value = info.Callee()->Get(v8AtomicString(info.GetIsol
ate(), "toString")); |
157 if (!value->IsFunction()) { | 158 if (!value->IsFunction()) { |
158 v8SetReturnValue(info, v8::String::Empty(info.GetIsolate())); | 159 v8SetReturnValue(info, v8::String::Empty(info.GetIsolate())); |
159 return; | 160 return; |
160 } | 161 } |
161 v8SetReturnValue(info, V8ScriptRunner::callInternalFunction(v8::Handle<v8::F
unction>::Cast(value), info.This(), 0, 0, v8::Isolate::GetCurrent())); | 162 v8SetReturnValue(info, V8ScriptRunner::callInternalFunction(v8::Handle<v8::F
unction>::Cast(value), info.This(), 0, 0, v8::Isolate::GetCurrent())); |
162 } | 163 } |
163 | 164 |
164 } // namespace WebCore | 165 } // namespace WebCore |
OLD | NEW |