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