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/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/disasm.h" | 7 #include "src/disasm.h" |
8 #include "src/disassembler.h" | 8 #include "src/disassembler.h" |
9 #include "src/heap/objects-visiting.h" | 9 #include "src/heap/objects-visiting.h" |
10 #include "src/jsregexp.h" | 10 #include "src/jsregexp.h" |
(...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 | 418 |
419 void JSGeneratorObject::JSGeneratorObjectVerify() { | 419 void JSGeneratorObject::JSGeneratorObjectVerify() { |
420 // In an expression like "new g()", there can be a point where a generator | 420 // In an expression like "new g()", there can be a point where a generator |
421 // object is allocated but its fields are all undefined, as it hasn't yet been | 421 // object is allocated but its fields are all undefined, as it hasn't yet been |
422 // initialized by the generator. Hence these weak checks. | 422 // initialized by the generator. Hence these weak checks. |
423 VerifyObjectField(kFunctionOffset); | 423 VerifyObjectField(kFunctionOffset); |
424 VerifyObjectField(kContextOffset); | 424 VerifyObjectField(kContextOffset); |
425 VerifyObjectField(kReceiverOffset); | 425 VerifyObjectField(kReceiverOffset); |
426 VerifyObjectField(kOperandStackOffset); | 426 VerifyObjectField(kOperandStackOffset); |
427 VerifyObjectField(kContinuationOffset); | 427 VerifyObjectField(kContinuationOffset); |
428 VerifyObjectField(kStackHandlerIndexOffset); | |
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()); |
437 } | 436 } |
438 | 437 |
(...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1271 ? it.rinfo()->target_cell() | 1270 ? it.rinfo()->target_cell() |
1272 : it.rinfo()->target_object(); | 1271 : it.rinfo()->target_object(); |
1273 CHECK(!CanLeak(target, heap, skip_weak_cell)); | 1272 CHECK(!CanLeak(target, heap, skip_weak_cell)); |
1274 } | 1273 } |
1275 } | 1274 } |
1276 | 1275 |
1277 | 1276 |
1278 #endif // DEBUG | 1277 #endif // DEBUG |
1279 | 1278 |
1280 } } // namespace v8::internal | 1279 } } // namespace v8::internal |
OLD | NEW |