Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Side by Side Diff: src/objects-debug.cc

Issue 10690043: Implement proper module linking. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Addressed Michael's comments. Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 ASSERT(!isnan(value) || 364 ASSERT(!isnan(value) ||
365 (BitCast<uint64_t>(value) == 365 (BitCast<uint64_t>(value) ==
366 BitCast<uint64_t>(canonical_not_the_hole_nan_as_double())) || 366 BitCast<uint64_t>(canonical_not_the_hole_nan_as_double())) ||
367 ((BitCast<uint64_t>(value) & Double::kSignMask) != 0)); 367 ((BitCast<uint64_t>(value) & Double::kSignMask) != 0));
368 } 368 }
369 } 369 }
370 } 370 }
371 371
372 372
373 void JSModule::JSModuleVerify() { 373 void JSModule::JSModuleVerify() {
374 Object* v = context(); 374 VerifyObjectField(kContextOffset);
375 if (v->IsHeapObject()) { 375 VerifyObjectField(kScopeInfoOffset);
376 VerifyHeapPointer(v); 376 CHECK(context()->IsUndefined() || context()->IsModuleContext());
377 }
378 CHECK(v->IsUndefined() || v->IsModuleContext());
379 } 377 }
380 378
381 379
382 void JSValue::JSValueVerify() { 380 void JSValue::JSValueVerify() {
383 Object* v = value(); 381 Object* v = value();
384 if (v->IsHeapObject()) { 382 if (v->IsHeapObject()) {
385 VerifyHeapPointer(v); 383 VerifyHeapPointer(v);
386 } 384 }
387 } 385 }
388 386
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
1017 FixedArray* proto_transitions = prototype_transitions(); 1015 FixedArray* proto_transitions = prototype_transitions();
1018 MemsetPointer(proto_transitions->data_start(), 1016 MemsetPointer(proto_transitions->data_start(),
1019 GetHeap()->the_hole_value(), 1017 GetHeap()->the_hole_value(),
1020 proto_transitions->length()); 1018 proto_transitions->length());
1021 } 1019 }
1022 1020
1023 1021
1024 #endif // DEBUG 1022 #endif // DEBUG
1025 1023
1026 } } // namespace v8::internal 1024 } } // namespace v8::internal
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698