| 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 262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 } | 273 } |
| 274 | 274 |
| 275 InternalRuntimeFlags* Internals::runtimeFlags() const { | 275 InternalRuntimeFlags* Internals::runtimeFlags() const { |
| 276 return m_runtimeFlags.get(); | 276 return m_runtimeFlags.get(); |
| 277 } | 277 } |
| 278 | 278 |
| 279 unsigned Internals::workerThreadCount() const { | 279 unsigned Internals::workerThreadCount() const { |
| 280 return WorkerThread::workerThreadCount(); | 280 return WorkerThread::workerThreadCount(); |
| 281 } | 281 } |
| 282 | 282 |
| 283 String Internals::address(Node* node) { | |
| 284 char buf[32]; | |
| 285 sprintf(buf, "%p", node); | |
| 286 | |
| 287 return String(buf); | |
| 288 } | |
| 289 | |
| 290 GCObservation* Internals::observeGC(ScriptValue scriptValue) { | 283 GCObservation* Internals::observeGC(ScriptValue scriptValue) { |
| 291 v8::Local<v8::Value> observedValue = scriptValue.v8Value(); | 284 v8::Local<v8::Value> observedValue = scriptValue.v8Value(); |
| 292 DCHECK(!observedValue.IsEmpty()); | 285 DCHECK(!observedValue.IsEmpty()); |
| 293 if (observedValue->IsNull() || observedValue->IsUndefined()) { | 286 if (observedValue->IsNull() || observedValue->IsUndefined()) { |
| 294 V8ThrowException::throwTypeError(v8::Isolate::GetCurrent(), | 287 V8ThrowException::throwTypeError(v8::Isolate::GetCurrent(), |
| 295 "value to observe is null or undefined"); | 288 "value to observe is null or undefined"); |
| 296 return nullptr; | 289 return nullptr; |
| 297 } | 290 } |
| 298 | 291 |
| 299 return GCObservation::create(observedValue); | 292 return GCObservation::create(observedValue); |
| (...skipping 2792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3092 | 3085 |
| 3093 void Internals::crash() { | 3086 void Internals::crash() { |
| 3094 CHECK(false) << "Intentional crash"; | 3087 CHECK(false) << "Intentional crash"; |
| 3095 } | 3088 } |
| 3096 | 3089 |
| 3097 void Internals::setIsLowEndDevice(bool isLowEndDevice) { | 3090 void Internals::setIsLowEndDevice(bool isLowEndDevice) { |
| 3098 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); | 3091 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); |
| 3099 } | 3092 } |
| 3100 | 3093 |
| 3101 } // namespace blink | 3094 } // namespace blink |
| OLD | NEW |