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

Side by Side Diff: Source/bindings/core/v8/NPV8Object.cpp

Issue 556823003: Revert "Revert of [oilpan]: optimize the way we allocate persistent handles in wrappers. (patchset … (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: review feedback Created 6 years, 3 months 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
« no previous file with comments | « no previous file | Source/bindings/core/v8/V8DOMWrapper.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2004, 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2007, 2008, 2009 Google, Inc. All rights reserved. 3 * Copyright (C) 2007, 2008, 2009 Google, Inc. All rights reserved.
4 * Copyright (C) 2014 Opera Software ASA. All rights reserved. 4 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "platform/UserGestureIndicator.h" 43 #include "platform/UserGestureIndicator.h"
44 #include "wtf/OwnPtr.h" 44 #include "wtf/OwnPtr.h"
45 #include "wtf/StringExtras.h" 45 #include "wtf/StringExtras.h"
46 #include "wtf/text/WTFString.h" 46 #include "wtf/text/WTFString.h"
47 #include <stdio.h> 47 #include <stdio.h>
48 48
49 using namespace blink; 49 using namespace blink;
50 50
51 namespace { 51 namespace {
52 52
53 PersistentNode* createPersistentHandle(ScriptWrappableBase* internalPointer) 53 WrapperPersistentNode* createPersistentHandle(ScriptWrappableBase* internalPoint er)
54 { 54 {
55 ASSERT_NOT_REACHED(); 55 ASSERT_NOT_REACHED();
56 return 0; 56 return 0;
57 } 57 }
58 58
59 } // namespace 59 } // namespace
60 60
61 namespace blink { 61 namespace blink {
62 62
63 const WrapperTypeInfo* npObjectTypeInfo() 63 const WrapperTypeInfo* npObjectTypeInfo()
(...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 622
623 convertV8ObjectToNPVariant(resultObject, npObject, result, isolate); 623 convertV8ObjectToNPVariant(resultObject, npObject, result, isolate);
624 return true; 624 return true;
625 } 625 }
626 626
627 if (NP_CLASS_STRUCT_VERSION_HAS_CTOR(npObject->_class) && npObject->_class-> construct) 627 if (NP_CLASS_STRUCT_VERSION_HAS_CTOR(npObject->_class) && npObject->_class-> construct)
628 return npObject->_class->construct(npObject, arguments, argumentCount, r esult); 628 return npObject->_class->construct(npObject, arguments, argumentCount, r esult);
629 629
630 return false; 630 return false;
631 } 631 }
OLDNEW
« no previous file with comments | « no previous file | Source/bindings/core/v8/V8DOMWrapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698