OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/objects.h" | 5 #include "src/objects.h" |
6 | 6 |
7 #include "src/bootstrapper.h" | 7 #include "src/bootstrapper.h" |
8 #include "src/disasm.h" | 8 #include "src/disasm.h" |
9 #include "src/disassembler.h" | 9 #include "src/disassembler.h" |
10 #include "src/field-type.h" | 10 #include "src/field-type.h" |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 next_link()->IsTransitionArray()); | 416 next_link()->IsTransitionArray()); |
417 } | 417 } |
418 | 418 |
419 | 419 |
420 void JSGeneratorObject::JSGeneratorObjectVerify() { | 420 void JSGeneratorObject::JSGeneratorObjectVerify() { |
421 // In an expression like "new g()", there can be a point where a generator | 421 // In an expression like "new g()", there can be a point where a generator |
422 // object is allocated but its fields are all undefined, as it hasn't yet been | 422 // object is allocated but its fields are all undefined, as it hasn't yet been |
423 // initialized by the generator. Hence these weak checks. | 423 // initialized by the generator. Hence these weak checks. |
424 VerifyObjectField(kFunctionOffset); | 424 VerifyObjectField(kFunctionOffset); |
425 VerifyObjectField(kContextOffset); | 425 VerifyObjectField(kContextOffset); |
426 VerifyObjectField(kReceiverOffset); | |
427 VerifyObjectField(kOperandStackOffset); | 426 VerifyObjectField(kOperandStackOffset); |
428 VerifyObjectField(kContinuationOffset); | 427 VerifyObjectField(kContinuationOffset); |
429 } | 428 } |
430 | 429 |
431 | 430 |
432 void JSModule::JSModuleVerify() { | 431 void JSModule::JSModuleVerify() { |
433 VerifyObjectField(kContextOffset); | 432 VerifyObjectField(kContextOffset); |
434 VerifyObjectField(kScopeInfoOffset); | 433 VerifyObjectField(kScopeInfoOffset); |
435 CHECK(context()->IsUndefined() || | 434 CHECK(context()->IsUndefined() || |
436 Context::cast(context())->IsModuleContext()); | 435 Context::cast(context())->IsModuleContext()); |
(...skipping 879 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1316 | 1315 |
1317 // Both are done at the same time. | 1316 // Both are done at the same time. |
1318 CHECK_EQ(new_it.done(), old_it.done()); | 1317 CHECK_EQ(new_it.done(), old_it.done()); |
1319 } | 1318 } |
1320 | 1319 |
1321 | 1320 |
1322 #endif // DEBUG | 1321 #endif // DEBUG |
1323 | 1322 |
1324 } // namespace internal | 1323 } // namespace internal |
1325 } // namespace v8 | 1324 } // namespace v8 |
OLD | NEW |