OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |