| 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 397 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 | 408 |
| 409 void JSGeneratorObject::JSGeneratorObjectVerify() { | 409 void JSGeneratorObject::JSGeneratorObjectVerify() { |
| 410 // In an expression like "new g()", there can be a point where a generator | 410 // In an expression like "new g()", there can be a point where a generator |
| 411 // object is allocated but its fields are all undefined, as it hasn't yet been | 411 // object is allocated but its fields are all undefined, as it hasn't yet been |
| 412 // initialized by the generator. Hence these weak checks. | 412 // initialized by the generator. Hence these weak checks. |
| 413 VerifyObjectField(kFunctionOffset); | 413 VerifyObjectField(kFunctionOffset); |
| 414 VerifyObjectField(kContextOffset); | 414 VerifyObjectField(kContextOffset); |
| 415 VerifyObjectField(kReceiverOffset); | 415 VerifyObjectField(kReceiverOffset); |
| 416 VerifyObjectField(kOperandStackOffset); | 416 VerifyObjectField(kOperandStackOffset); |
| 417 VerifyObjectField(kContinuationOffset); | 417 VerifyObjectField(kContinuationOffset); |
| 418 VerifyObjectField(kStackHandlerIndexOffset); |
| 418 } | 419 } |
| 419 | 420 |
| 420 | 421 |
| 421 void JSModule::JSModuleVerify() { | 422 void JSModule::JSModuleVerify() { |
| 422 VerifyObjectField(kContextOffset); | 423 VerifyObjectField(kContextOffset); |
| 423 VerifyObjectField(kScopeInfoOffset); | 424 VerifyObjectField(kScopeInfoOffset); |
| 424 CHECK(context()->IsUndefined() || | 425 CHECK(context()->IsUndefined() || |
| 425 Context::cast(context())->IsModuleContext()); | 426 Context::cast(context())->IsModuleContext()); |
| 426 } | 427 } |
| 427 | 428 |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1107 for (int i = 0; i < number_of_transitions(); ++i) { | 1108 for (int i = 0; i < number_of_transitions(); ++i) { |
| 1108 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; | 1109 if (!CheckOneBackPointer(current_map, GetTarget(i))) return false; |
| 1109 } | 1110 } |
| 1110 return true; | 1111 return true; |
| 1111 } | 1112 } |
| 1112 | 1113 |
| 1113 | 1114 |
| 1114 #endif // DEBUG | 1115 #endif // DEBUG |
| 1115 | 1116 |
| 1116 } } // namespace v8::internal | 1117 } } // namespace v8::internal |
| OLD | NEW |