Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(274)

Side by Side Diff: sky/engine/bindings/core/v8/SerializedScriptValue.cpp

Issue 775803002: Remove heap/Handle usage from v8_inspector (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "sky/engine/bindings/core/v8/custom/V8Int32ArrayCustom.h" 43 #include "sky/engine/bindings/core/v8/custom/V8Int32ArrayCustom.h"
44 #include "sky/engine/bindings/core/v8/custom/V8Int8ArrayCustom.h" 44 #include "sky/engine/bindings/core/v8/custom/V8Int8ArrayCustom.h"
45 #include "sky/engine/bindings/core/v8/custom/V8Uint16ArrayCustom.h" 45 #include "sky/engine/bindings/core/v8/custom/V8Uint16ArrayCustom.h"
46 #include "sky/engine/bindings/core/v8/custom/V8Uint32ArrayCustom.h" 46 #include "sky/engine/bindings/core/v8/custom/V8Uint32ArrayCustom.h"
47 #include "sky/engine/bindings/core/v8/custom/V8Uint8ArrayCustom.h" 47 #include "sky/engine/bindings/core/v8/custom/V8Uint8ArrayCustom.h"
48 #include "sky/engine/bindings/core/v8/custom/V8Uint8ClampedArrayCustom.h" 48 #include "sky/engine/bindings/core/v8/custom/V8Uint8ClampedArrayCustom.h"
49 #include "sky/engine/core/dom/ExceptionCode.h" 49 #include "sky/engine/core/dom/ExceptionCode.h"
50 #include "sky/engine/core/html/ImageData.h" 50 #include "sky/engine/core/html/ImageData.h"
51 #include "sky/engine/core/html/canvas/DataView.h" 51 #include "sky/engine/core/html/canvas/DataView.h"
52 #include "sky/engine/platform/SharedBuffer.h" 52 #include "sky/engine/platform/SharedBuffer.h"
53 #include "sky/engine/platform/heap/Handle.h"
54 #include "sky/engine/public/platform/Platform.h" 53 #include "sky/engine/public/platform/Platform.h"
55 #include "sky/engine/wtf/ArrayBuffer.h" 54 #include "sky/engine/wtf/ArrayBuffer.h"
56 #include "sky/engine/wtf/ArrayBufferContents.h" 55 #include "sky/engine/wtf/ArrayBufferContents.h"
57 #include "sky/engine/wtf/ArrayBufferView.h" 56 #include "sky/engine/wtf/ArrayBufferView.h"
58 #include "sky/engine/wtf/Assertions.h" 57 #include "sky/engine/wtf/Assertions.h"
59 #include "sky/engine/wtf/ByteOrder.h" 58 #include "sky/engine/wtf/ByteOrder.h"
60 #include "sky/engine/wtf/Float32Array.h" 59 #include "sky/engine/wtf/Float32Array.h"
61 #include "sky/engine/wtf/Float64Array.h" 60 #include "sky/engine/wtf/Float64Array.h"
62 #include "sky/engine/wtf/Int16Array.h" 61 #include "sky/engine/wtf/Int16Array.h"
63 #include "sky/engine/wtf/Int32Array.h" 62 #include "sky/engine/wtf/Int32Array.h"
(...skipping 2089 matching lines...) Expand 10 before | Expand all | Expand 10 after
2153 // If the allocated memory was not registered before, then this class is lik ely 2152 // If the allocated memory was not registered before, then this class is lik ely
2154 // used in a context other then Worker's onmessage environment and the prese nce of 2153 // used in a context other then Worker's onmessage environment and the prese nce of
2155 // current v8 context is not guaranteed. Avoid calling v8 then. 2154 // current v8 context is not guaranteed. Avoid calling v8 then.
2156 if (m_externallyAllocatedMemory) { 2155 if (m_externallyAllocatedMemory) {
2157 ASSERT(v8::Isolate::GetCurrent()); 2156 ASSERT(v8::Isolate::GetCurrent());
2158 v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(-m_exte rnallyAllocatedMemory); 2157 v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(-m_exte rnallyAllocatedMemory);
2159 } 2158 }
2160 } 2159 }
2161 2160
2162 } // namespace blink 2161 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/bindings/core/v8/ScriptWrappable.h ('k') | sky/engine/bindings/core/v8/WindowProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698