| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 514 VerifyObjectField(kInstanceClassNameOffset); | 514 VerifyObjectField(kInstanceClassNameOffset); |
| 515 VerifyObjectField(kFunctionDataOffset); | 515 VerifyObjectField(kFunctionDataOffset); |
| 516 VerifyObjectField(kScriptOffset); | 516 VerifyObjectField(kScriptOffset); |
| 517 VerifyObjectField(kDebugInfoOffset); | 517 VerifyObjectField(kDebugInfoOffset); |
| 518 } | 518 } |
| 519 | 519 |
| 520 | 520 |
| 521 void JSGlobalProxy::JSGlobalProxyVerify() { | 521 void JSGlobalProxy::JSGlobalProxyVerify() { |
| 522 CHECK(IsJSGlobalProxy()); | 522 CHECK(IsJSGlobalProxy()); |
| 523 JSObjectVerify(); | 523 JSObjectVerify(); |
| 524 VerifyObjectField(JSGlobalProxy::kContextOffset); | 524 VerifyObjectField(JSGlobalProxy::kNativeContextOffset); |
| 525 // Make sure that this object has no properties, elements. | 525 // Make sure that this object has no properties, elements. |
| 526 CHECK_EQ(0, properties()->length()); | 526 CHECK_EQ(0, properties()->length()); |
| 527 CHECK(HasFastObjectElements()); | 527 CHECK(HasFastObjectElements()); |
| 528 CHECK_EQ(0, FixedArray::cast(elements())->length()); | 528 CHECK_EQ(0, FixedArray::cast(elements())->length()); |
| 529 } | 529 } |
| 530 | 530 |
| 531 | 531 |
| 532 void JSGlobalObject::JSGlobalObjectVerify() { | 532 void JSGlobalObject::JSGlobalObjectVerify() { |
| 533 CHECK(IsJSGlobalObject()); | 533 CHECK(IsJSGlobalObject()); |
| 534 JSObjectVerify(); | 534 JSObjectVerify(); |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1014 FixedArray* proto_transitions = GetPrototypeTransitions(); | 1014 FixedArray* proto_transitions = GetPrototypeTransitions(); |
| 1015 MemsetPointer(proto_transitions->data_start(), | 1015 MemsetPointer(proto_transitions->data_start(), |
| 1016 GetHeap()->the_hole_value(), | 1016 GetHeap()->the_hole_value(), |
| 1017 proto_transitions->length()); | 1017 proto_transitions->length()); |
| 1018 } | 1018 } |
| 1019 | 1019 |
| 1020 | 1020 |
| 1021 #endif // DEBUG | 1021 #endif // DEBUG |
| 1022 | 1022 |
| 1023 } } // namespace v8::internal | 1023 } } // namespace v8::internal |
| OLD | NEW |