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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
375 BitCast<uint64_t>(canonical_not_the_hole_nan_as_double())) || | 375 BitCast<uint64_t>(canonical_not_the_hole_nan_as_double())) || |
376 ((BitCast<uint64_t>(value) & Double::kSignMask) != 0)); | 376 ((BitCast<uint64_t>(value) & Double::kSignMask) != 0)); |
377 } | 377 } |
378 } | 378 } |
379 } | 379 } |
380 | 380 |
381 | 381 |
382 void JSModule::JSModuleVerify() { | 382 void JSModule::JSModuleVerify() { |
383 VerifyObjectField(kContextOffset); | 383 VerifyObjectField(kContextOffset); |
384 VerifyObjectField(kScopeInfoOffset); | 384 VerifyObjectField(kScopeInfoOffset); |
385 CHECK(context()->IsUndefined() || context()->IsModuleContext()); | 385 CHECK(context()->IsUndefined() || |
| 386 Context::cast(context())->IsModuleContext()); |
386 } | 387 } |
387 | 388 |
388 | 389 |
389 void JSValue::JSValueVerify() { | 390 void JSValue::JSValueVerify() { |
390 Object* v = value(); | 391 Object* v = value(); |
391 if (v->IsHeapObject()) { | 392 if (v->IsHeapObject()) { |
392 VerifyHeapPointer(v); | 393 VerifyHeapPointer(v); |
393 } | 394 } |
394 } | 395 } |
395 | 396 |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1014 FixedArray* proto_transitions = GetPrototypeTransitions(); | 1015 FixedArray* proto_transitions = GetPrototypeTransitions(); |
1015 MemsetPointer(proto_transitions->data_start(), | 1016 MemsetPointer(proto_transitions->data_start(), |
1016 GetHeap()->the_hole_value(), | 1017 GetHeap()->the_hole_value(), |
1017 proto_transitions->length()); | 1018 proto_transitions->length()); |
1018 } | 1019 } |
1019 | 1020 |
1020 | 1021 |
1021 #endif // DEBUG | 1022 #endif // DEBUG |
1022 | 1023 |
1023 } } // namespace v8::internal | 1024 } } // namespace v8::internal |
OLD | NEW |