| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 2116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2127 ASSERT(v8Value->IsNumber()); | 2127 ASSERT(v8Value->IsNumber()); |
| 2128 int intValue = v8Value.As<v8::Integer>()->Value(); | 2128 int intValue = v8Value.As<v8::Integer>()->Value(); |
| 2129 return ScriptValue(scriptState(), v8::Integer::New(scriptState()->isolat
e(), intValue + 1)); | 2129 return ScriptValue(scriptState(), v8::Integer::New(scriptState()->isolat
e(), intValue + 1)); |
| 2130 } | 2130 } |
| 2131 }; | 2131 }; |
| 2132 | 2132 |
| 2133 } // namespace | 2133 } // namespace |
| 2134 | 2134 |
| 2135 ScriptPromise Internals::createResolvedPromise(ScriptState* scriptState, ScriptV
alue value) | 2135 ScriptPromise Internals::createResolvedPromise(ScriptState* scriptState, ScriptV
alue value) |
| 2136 { | 2136 { |
| 2137 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scrip
tState); | 2137 RefPtrWillBeRawPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::
create(scriptState); |
| 2138 ScriptPromise promise = resolver->promise(); | 2138 ScriptPromise promise = resolver->promise(); |
| 2139 resolver->resolve(value); | 2139 resolver->resolve(value); |
| 2140 return promise; | 2140 return promise; |
| 2141 } | 2141 } |
| 2142 | 2142 |
| 2143 ScriptPromise Internals::createRejectedPromise(ScriptState* scriptState, ScriptV
alue value) | 2143 ScriptPromise Internals::createRejectedPromise(ScriptState* scriptState, ScriptV
alue value) |
| 2144 { | 2144 { |
| 2145 RefPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::create(scrip
tState); | 2145 RefPtrWillBeRawPtr<ScriptPromiseResolver> resolver = ScriptPromiseResolver::
create(scriptState); |
| 2146 ScriptPromise promise = resolver->promise(); | 2146 ScriptPromise promise = resolver->promise(); |
| 2147 resolver->reject(value); | 2147 resolver->reject(value); |
| 2148 return promise; | 2148 return promise; |
| 2149 } | 2149 } |
| 2150 | 2150 |
| 2151 ScriptPromise Internals::addOneToPromise(ScriptState* scriptState, ScriptPromise
promise) | 2151 ScriptPromise Internals::addOneToPromise(ScriptState* scriptState, ScriptPromise
promise) |
| 2152 { | 2152 { |
| 2153 return promise.then(AddOneFunction::createFunction(scriptState)); | 2153 return promise.then(AddOneFunction::createFunction(scriptState)); |
| 2154 } | 2154 } |
| 2155 | 2155 |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2347 { | 2347 { |
| 2348 return new InternalsIterator; | 2348 return new InternalsIterator; |
| 2349 } | 2349 } |
| 2350 | 2350 |
| 2351 void Internals::forceBlinkGCWithoutV8GC() | 2351 void Internals::forceBlinkGCWithoutV8GC() |
| 2352 { | 2352 { |
| 2353 ThreadState::current()->scheduleGC(ThreadState::ForcedGC); | 2353 ThreadState::current()->scheduleGC(ThreadState::ForcedGC); |
| 2354 } | 2354 } |
| 2355 | 2355 |
| 2356 } // namespace blink | 2356 } // namespace blink |
| OLD | NEW |