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

Side by Side Diff: Source/bindings/v8/SerializedScriptValue.cpp

Issue 24118003: Pass isolate to v8::Undefined() function (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 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 | Annotate | Revision Log
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 1361 matching lines...) Expand 10 before | Expand all | Expand 10 after
1372 // calls to pushObjectReference. 1372 // calls to pushObjectReference.
1373 if (referenceTableSize != creator.objectReferenceCount()) 1373 if (referenceTableSize != creator.objectReferenceCount())
1374 return false; 1374 return false;
1375 return true; 1375 return true;
1376 } 1376 }
1377 case InvalidTag: 1377 case InvalidTag:
1378 return false; 1378 return false;
1379 case PaddingTag: 1379 case PaddingTag:
1380 return true; 1380 return true;
1381 case UndefinedTag: 1381 case UndefinedTag:
1382 *value = v8::Undefined(); 1382 *value = v8::Undefined(m_isolate);
1383 break; 1383 break;
1384 case NullTag: 1384 case NullTag:
1385 *value = v8NullWithCheck(m_isolate); 1385 *value = v8NullWithCheck(m_isolate);
1386 break; 1386 break;
1387 case TrueTag: 1387 case TrueTag:
1388 *value = v8BooleanWithCheck(true, m_isolate); 1388 *value = v8BooleanWithCheck(true, m_isolate);
1389 break; 1389 break;
1390 case FalseTag: 1390 case FalseTag:
1391 *value = v8BooleanWithCheck(false, m_isolate); 1391 *value = v8BooleanWithCheck(false, m_isolate);
1392 break; 1392 break;
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
2534 v8::V8::AdjustAmountOfExternalAllocatedMemory(-m_externallyAllocatedMemo ry); 2534 v8::V8::AdjustAmountOfExternalAllocatedMemory(-m_externallyAllocatedMemo ry);
2535 } 2535 }
2536 } 2536 }
2537 2537
2538 uint32_t SerializedScriptValue::wireFormatVersion() 2538 uint32_t SerializedScriptValue::wireFormatVersion()
2539 { 2539 {
2540 return WebCore::wireFormatVersion; 2540 return WebCore::wireFormatVersion;
2541 } 2541 }
2542 2542
2543 } // namespace WebCore 2543 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/ScriptPreprocessor.cpp ('k') | Source/bindings/v8/V8AbstractEventListener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698